/* Production admin polish layer for the compiled Mi Comunidad platform. */
:root {
  --mc-admin-bg: #f4f7fb;
  --mc-admin-surface: #ffffff;
  --mc-admin-surface-soft: #f8fafc;
  --mc-admin-border: #d8e0ea;
  --mc-admin-text: #172033;
  --mc-admin-muted: #667383;
  --mc-admin-primary: #0f2f5f;
  --mc-admin-primary-strong: #0b2448;
  --mc-admin-danger: #b42318;
  --mc-admin-success: #067647;
  --mc-admin-warning: #b54708;
  --mc-admin-info: #175cd3;
}

html {
  letter-spacing: 0;
}

body.mc-platform-ready {
  background: var(--mc-admin-bg);
}

body.mc-platform-ready [data-loc="client/src/pages/Home.tsx:308"],
body.mc-platform-ready [data-loc="client/src/pages/Home.tsx:636"] {
  color: #0b2448 !important;
  background: #f4cf72 !important;
  border: 2px solid #fff1b8 !important;
  box-shadow: 0 10px 24px rgba(4, 20, 42, 0.28) !important;
}

body.mc-platform-ready [data-loc="client/src/pages/Home.tsx:308"]:hover,
body.mc-platform-ready [data-loc="client/src/pages/Home.tsx:308"]:focus-visible,
body.mc-platform-ready [data-loc="client/src/pages/Home.tsx:636"]:hover,
body.mc-platform-ready [data-loc="client/src/pages/Home.tsx:636"]:focus-visible {
  color: #061a34 !important;
  background: #ffe49a !important;
  outline: 3px solid #ffffff !important;
  outline-offset: 3px;
}

[data-mc-login-back] {
  position: fixed;
  z-index: 100001;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  color: #0b2448;
  background: #ffffff;
  border: 2px solid #0f2f5f;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(4, 20, 42, 0.24);
  text-decoration: none;
}

[data-mc-login-back]:hover,
[data-mc-login-back]:focus-visible {
  color: #ffffff;
  background: #0f2f5f;
  outline: 3px solid #f4cf72;
  outline-offset: 3px;
}

[data-mc-login-back] span {
  font-size: 1.3rem;
  line-height: 1;
}

[data-mc-login-back] strong {
  font-size: 0.9rem;
}

body.mc-admin-page {
  color: var(--mc-admin-text);
}

body.mc-auth-gated-page {
  background: var(--mc-admin-bg);
  color: var(--mc-admin-text);
}

body.mc-auth-gated-page #root {
  display: none;
}

[data-mc-auth-gate] {
  display: block;
}

.mc-fallback-navbar {
  position: sticky;
  z-index: 110;
  top: 0;
  color: #172033;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--mc-admin-border);
  box-shadow: 0 6px 18px rgba(15, 31, 61, 0.08);
  backdrop-filter: blur(10px);
}

.mc-fallback-navbar nav {
  display: flex;
  width: min(100%, 72rem);
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.55rem 1rem;
}

.mc-fallback-navbar__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  color: #0f2f5f;
  font-weight: 850;
  text-decoration: none;
}

.mc-fallback-navbar__brand > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  background: #4338ca;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 900;
}

.mc-fallback-navbar__actions {
  display: flex;
  align-items: center;
}

body.mc-route-fallback-page {
  background: var(--mc-admin-bg);
  color: var(--mc-admin-text);
}

body.mc-route-fallback-page #root {
  display: none;
}

.mc-auth-gate {
  min-height: calc(100vh - 4rem);
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--mc-admin-bg);
}

.mc-auth-gate section {
  width: min(100%, 440px);
  padding: 28px;
  background: var(--mc-admin-surface);
  border: 1px solid var(--mc-admin-border);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(15, 31, 61, 0.12);
}

.mc-auth-gate p {
  margin: 0 0 8px;
  color: var(--mc-admin-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mc-auth-gate h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.mc-auth-gate span {
  display: block;
  color: var(--mc-admin-muted);
  line-height: 1.55;
}

.mc-auth-gate div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mc-auth-gate a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--mc-admin-primary);
  border-radius: 8px;
  color: var(--mc-admin-primary);
  font-weight: 800;
  text-decoration: none;
}

.mc-auth-gate a:first-child {
  color: #ffffff;
  background: var(--mc-admin-primary);
}

.mc-route-fallback {
  min-height: calc(100vh - 4rem);
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 48px 20px;
}

.mc-route-fallback__hero {
  max-width: 760px;
  margin-bottom: 24px;
}

.mc-route-fallback__hero p {
  margin: 0 0 8px;
  color: var(--mc-admin-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mc-route-fallback__hero h1 {
  margin: 0 0 12px;
  color: var(--mc-admin-text);
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.mc-route-fallback__hero span {
  display: block;
  color: var(--mc-admin-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.mc-route-fallback__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.mc-route-fallback__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 118px;
  gap: 12px;
  padding: 18px;
  color: var(--mc-admin-text);
  text-decoration: none;
  background: var(--mc-admin-surface);
  border: 1px solid var(--mc-admin-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.08);
}

.mc-route-fallback__item > img {
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  grid-row: 1 / 3;
  object-fit: contain;
  padding: 5px;
  background: #fff;
  border: 1px solid rgba(15, 31, 61, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 31, 61, 0.16);
}

.mc-route-fallback__item:focus-visible,
.mc-route-fallback__item:hover {
  border-color: var(--mc-admin-primary);
  outline: none;
}

.mc-route-fallback__item strong {
  font-size: 1rem;
}

.mc-route-fallback__item span {
  color: var(--mc-admin-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

[data-mc-app-identity] [data-mc-app-logo] {
  width: 52px !important;
  height: 52px !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  padding: 4px !important;
  background: #fff !important;
  border: 1px solid rgba(15, 31, 61, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 14px rgba(8, 20, 38, 0.18) !important;
  filter: none !important;
}

.mc-route-fallback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mc-route-fallback__actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--mc-admin-primary);
  font-weight: 800;
  text-decoration: none;
  background: var(--mc-admin-surface);
  border: 1px solid var(--mc-admin-primary);
  border-radius: 8px;
}

.mc-route-fallback__actions a:first-child {
  color: #ffffff;
  background: var(--mc-admin-primary);
}

.mc-mvp-form-page {
  width: min(100%, 920px);
}

.mc-mvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: var(--mc-admin-surface);
  border: 1px solid var(--mc-admin-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.08);
}

.mc-mvp-form label {
  display: grid;
  gap: 6px;
  color: var(--mc-admin-text);
  font-size: 0.86rem;
  font-weight: 800;
}

.mc-mvp-form input,
.mc-mvp-form select,
.mc-mvp-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--mc-admin-text);
  background: #ffffff;
  border: 1px solid var(--mc-admin-border);
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

.mc-mvp-form textarea {
  resize: vertical;
}

.mc-mvp-form input:focus,
.mc-mvp-form select:focus,
.mc-mvp-form textarea:focus {
  border-color: var(--mc-admin-primary);
  outline: 3px solid rgba(15, 47, 95, 0.14);
}

.mc-mvp-form__wide,
.mc-mvp-form__actions,
.mc-mvp-form__message {
  grid-column: 1 / -1;
}

.mc-mvp-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.mc-mvp-form button,
.mc-mvp-form__actions a,
.mc-inline-action-panel a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  background: var(--mc-admin-primary);
  border: 1px solid var(--mc-admin-primary);
  border-radius: 8px;
}

.mc-mvp-form__actions a {
  color: var(--mc-admin-primary);
  background: #ffffff;
}

.mc-mvp-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.mc-mvp-form__message {
  min-height: 24px;
  margin-top: 4px;
  color: var(--mc-admin-muted);
  font-weight: 700;
}

.mc-mvp-form__message[data-state="success"] {
  color: #067647;
}

.mc-mvp-form__message[data-state="error"] {
  color: var(--mc-admin-danger);
}

.mc-inline-action-panel {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.mc-attention-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.mc-attention-card { display:grid; grid-template-columns:64px 1fr; gap:16px; padding:22px; background:#fff; border:1px solid var(--mc-admin-border); border-radius:14px; box-shadow:0 10px 28px rgba(15,31,61,.08); }
.mc-attention-card > span { display:grid; width:60px; height:60px; place-items:center; border-radius:16px; background:#eef4ff; font-size:2rem; }
.mc-attention-card h2 { margin:0 0 8px; font-size:1.2rem; }
.mc-attention-card p,.mc-attention-card li { color:var(--mc-admin-muted); line-height:1.5; }
.mc-attention-card ul { padding-left:18px; margin:10px 0 16px; }
.mc-attention-card a { display:inline-flex; min-height:42px; align-items:center; padding:0 14px; margin:4px 8px 0 0; border-radius:8px; background:var(--mc-admin-primary); color:#fff; font-weight:800; text-decoration:none; }
.mc-attention-card--panic { border:2px solid #b42318; }
.mc-attention-card--panic > span,.mc-panic-notice { background:#fff1f0; }
.mc-attention-card a.mc-call-911 { background:#b42318; }
.mc-attention-admin-note { display:grid; gap:6px; margin-top:20px; padding:18px; color:#0b2448; background:#edf4ff; border:1px solid #b9cff0; border-radius:10px; }
.mc-panic-notice { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:16px; padding:14px; color:#8a1c13; border:2px solid #b42318; border-radius:10px; }
.mc-panic-notice a { color:#fff; background:#b42318; padding:8px 12px; border-radius:8px; font-weight:900; text-decoration:none; }
.mc-mvp-form button.mc-panic-submit { background:#b42318; border-color:#b42318; }
@media (max-width:720px) { .mc-attention-grid { grid-template-columns:1fr; } .mc-attention-card { grid-template-columns:48px 1fr; padding:16px; } .mc-attention-card > span { width:46px; height:46px; font-size:1.5rem; } }
[data-mc-citizen-attention-access] { position:fixed !important; inset:auto auto max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)) !important; z-index:99990 !important; isolation:isolate; display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr); width:min(calc(100vw - 32px),420px) !important; min-height:0 !important; align-items:stretch; justify-content:stretch; gap:8px !important; margin:0 !important; padding:8px !important; overflow:visible !important; transform:none !important; background:rgba(247,249,252,.96); border:1px solid var(--mc-admin-border); border-radius:16px; box-shadow:0 10px 30px rgba(4,20,42,.24); backdrop-filter:blur(10px); }
[data-mc-citizen-attention-access] a { position:static !important; inset:auto !important; display:flex !important; width:auto !important; min-width:0 !important; max-width:none !important; min-height:52px !important; height:auto !important; align-items:center !important; justify-content:center !important; gap:7px !important; margin:0 !important; padding:10px 14px !important; color:#fff !important; background:#0f2f5f !important; border:2px solid #fff !important; border-radius:10px !important; box-shadow:0 5px 14px rgba(4,20,42,.18) !important; font-weight:900 !important; line-height:1.2 !important; text-align:center !important; text-decoration:none !important; white-space:normal !important; transform:none !important; }
[data-mc-citizen-attention-access] a.mc-global-panic { min-height:52px !important; background:#b42318 !important; font-size:1rem !important; }
[data-mc-citizen-attention-access] a:focus-visible { outline:4px solid #f4cf72; outline-offset:2px; }
@media (max-width:430px) { [data-mc-citizen-attention-access] { inset:auto auto max(10px,env(safe-area-inset-bottom)) 10px !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important; width:calc(100vw - 20px) !important; gap:6px !important; padding:7px !important; } [data-mc-citizen-attention-access] a { min-height:48px !important; padding:7px !important; font-size:.74rem !important; } [data-mc-citizen-attention-access] a.mc-global-panic { min-height:48px !important; font-size:.8rem !important; } }

/* Native AI + SOS controls: separate hit areas, one integrated civic workflow. */
[data-loc="client/src/components/EmergencySOS.tsx:76"] { right:1rem !important; bottom:6rem !important; z-index:55 !important; margin:0 !important; transform:none; }
[data-loc="client/src/components/EmergencySOS.tsx:76"][data-mc-native-sos-replaced] { display:none !important; }
[data-mc-ai-civic-actions] { display:grid; gap:7px; margin:0 0 10px; padding:10px; color:#172033; background:#f7f9fc; border:1px solid #d8e0ea; border-radius:10px; }
[data-mc-ai-civic-actions] strong { font-size:.78rem; line-height:1.3; }
[data-mc-ai-civic-actions] > div { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; }
[data-mc-ai-civic-actions] a { display:flex; min-height:34px; align-items:center; justify-content:center; padding:5px 7px; color:#fff; background:#0f2f5f; border-radius:7px; font-size:.72rem; font-weight:800; line-height:1.2; text-align:center; text-decoration:none; }
[data-mc-ai-civic-actions] small { color:#667383; font-size:.68rem; line-height:1.35; }
@media (max-width:430px) { [data-loc="client/src/components/EmergencySOS.tsx:76"] { right:.75rem !important; bottom:5.75rem !important; } }

[data-mc-floating-panic] { position:fixed; z-index:58; left:max(16px,env(safe-area-inset-left)); bottom:max(82px,calc(env(safe-area-inset-bottom) + 66px)); display:grid; grid-template-columns:auto auto; grid-template-rows:auto auto; min-height:58px; align-items:center; column-gap:8px; padding:8px 16px 8px 12px; color:#fff; background:#b42318; border:3px solid #fff; border-radius:999px; box-shadow:0 10px 28px rgba(90,15,10,.34); text-decoration:none; }
[data-mc-floating-panic] > span { grid-row:1 / 3; font-size:1.45rem; }
[data-mc-floating-panic] strong { font-size:.92rem; line-height:1.1; }
[data-mc-floating-panic] small { color:#ffe7e4; font-size:.67rem; line-height:1.1; }
[data-mc-floating-panic]:hover,[data-mc-floating-panic]:focus-visible { background:#8f1b13; outline:4px solid #f4cf72; outline-offset:2px; }

.mc-municipality-context { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:0 0 24px; padding:12px 16px; color:#0b2448; background:linear-gradient(135deg,#edf4ff,#fff); border:1px solid #b9cff0; border-left:5px solid #0f2f5f; border-radius:10px; }
.mc-municipality-context a { color:#0f2f5f; font-weight:800; text-decoration:none; }
.mc-municipality-context strong { padding:6px 10px; color:#fff; background:#0f2f5f; border-radius:999px; font-size:.78rem; }
body:has([data-loc="client/src/components/SatisfactionWidget.tsx:73"]) [data-mc-floating-panic] { visibility:hidden !important; opacity:0 !important; pointer-events:none !important; }
@media (max-width:430px) { [data-mc-floating-panic] { left:10px; bottom:max(76px,calc(env(safe-area-inset-bottom) + 66px)); min-height:54px; padding:7px 12px 7px 10px; } .mc-municipality-context { align-items:flex-start; flex-direction:column; } }

body.mc-admin-page [data-platform-breadcrumbs] {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.7rem;
  color: var(--mc-admin-muted);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--mc-admin-border);
  border-radius: 8px;
}

body.mc-admin-page [data-platform-breadcrumbs] a {
  color: var(--mc-admin-primary);
  text-decoration: none;
}

body.mc-admin-page [data-platform-breadcrumbs] span:last-child {
  color: var(--mc-admin-text);
}

body.mc-admin-page aside {
  box-shadow: 8px 0 28px rgba(15, 31, 61, 0.18);
}

body.mc-admin-page aside nav a,
body.mc-admin-page aside nav button {
  border-radius: 8px;
}

body.mc-admin-page aside nav a[aria-current="page"],
body.mc-admin-page aside nav a[data-platform-active="true"] {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 3px 0 0 #d7b46a;
}

body.mc-admin-page main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 247, 251, 0) 190px),
    var(--mc-admin-bg);
}

body.mc-admin-page main > div,
body.mc-admin-page main > section {
  max-width: 1480px;
}

body.mc-admin-page h1,
body.mc-admin-page h2,
body.mc-admin-page h3 {
  letter-spacing: 0;
}

body.mc-admin-page [data-slot="card"],
body.mc-admin-page .rounded-xl,
body.mc-admin-page .rounded-lg {
  border-radius: 8px;
}

body.mc-admin-page [data-slot="card"],
body.mc-admin-page .shadow-sm,
body.mc-admin-page .shadow-md {
  border-color: var(--mc-admin-border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

body.mc-admin-page table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

body.mc-admin-page thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--mc-admin-surface-soft);
  color: #475467;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

body.mc-admin-page tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.7);
}

body.mc-admin-page tbody tr:hover {
  background: #eef4ff;
}

body.mc-admin-page th,
body.mc-admin-page td {
  padding: 0.72rem 0.85rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--mc-admin-border);
}

body.mc-admin-page th[data-platform-sortable] {
  cursor: pointer;
  user-select: none;
}

body.mc-admin-page th[data-platform-sortable]::after {
  content: "↕";
  margin-left: 0.4rem;
  color: #98a2b3;
  font-size: 0.7rem;
}

body.mc-admin-page th[aria-sort="ascending"]::after {
  content: "↑";
  color: var(--mc-admin-primary);
}

body.mc-admin-page th[aria-sort="descending"]::after {
  content: "↓";
  color: var(--mc-admin-primary);
}

body.mc-admin-page [data-platform-table-controls] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 0 0.25rem;
  color: var(--mc-admin-muted);
  font-size: 0.8rem;
}

body.mc-admin-page [data-platform-table-controls] button {
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  color: var(--mc-admin-primary);
  background: var(--mc-admin-surface);
  border: 1px solid var(--mc-admin-border);
}

body.mc-admin-page [data-platform-table-controls] button:disabled {
  color: #98a2b3;
  background: #f2f4f7;
}

body.mc-admin-page input,
body.mc-admin-page select,
body.mc-admin-page textarea,
body.mc-admin-page [role="combobox"] {
  border-radius: 8px;
}

body.mc-admin-page button,
body.mc-admin-page a[role="button"] {
  border-radius: 8px;
  letter-spacing: 0;
}

body.mc-admin-page button:disabled,
body.mc-admin-page a[aria-disabled="true"] {
  cursor: not-allowed;
}

body.mc-admin-page [data-platform-status-badge] {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.45rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

body.mc-admin-page [data-platform-status-badge]::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: currentColor;
}

body.mc-admin-page [data-platform-status="success"] {
  color: var(--mc-admin-success);
  background: #ecfdf3;
}

body.mc-admin-page [data-platform-status="warning"] {
  color: var(--mc-admin-warning);
  background: #fffaeb;
}

body.mc-admin-page [data-platform-status="danger"] {
  color: var(--mc-admin-danger);
  background: #fef3f2;
}

body.mc-admin-page [data-platform-status="info"] {
  color: var(--mc-admin-info);
  background: #eff8ff;
}

body.mc-admin-page [data-platform-empty-state] {
  margin: 0.5rem 0;
  padding: 2.25rem 1rem;
  color: var(--mc-admin-muted);
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px dashed var(--mc-admin-border);
  border-radius: 8px;
}

body.mc-admin-page [data-platform-empty-state]::before {
  content: "•";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.75rem;
  color: #98a2b3;
  background: #eef4ff;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
}

body.mc-admin-page [data-platform-loading] {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  background: #eef2f6 !important;
  border-radius: 8px;
}

body.mc-admin-page [data-platform-loading]::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: mc-platform-shimmer 1.35s infinite;
}

@keyframes mc-platform-shimmer {
  to {
    transform: translateX(100%);
  }
}

[data-platform-progress] {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  width: 100%;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

[data-platform-progress]::before {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #0f2f5f, #d7b46a);
  transform: translateX(-100%);
  animation: mc-platform-progress 1s ease-in-out infinite;
}

body:not(.mc-platform-loading) [data-platform-progress] {
  display: none;
}

@keyframes mc-platform-progress {
  50% {
    transform: translateX(80%);
  }

  100% {
    transform: translateX(225%);
  }
}

body.mc-admin-page [data-platform-hidden-placeholder] {
  display: none !important;
}

body.mc-platform-ready [data-platform-map-fallback] {
  min-height: 500px;
  background: #f8fafc;
}

.mc-map-fallback {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: #172033;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(15, 47, 95, 0.08), rgba(215, 180, 106, 0.12)),
    #ffffff;
}

.mc-map-fallback__icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  color: #0f2f5f;
  background: #eef4ff;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mc-map-fallback h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.mc-map-fallback p {
  max-width: 38rem;
  margin: 0;
  color: #667383;
}

.mc-map-fallback__list {
  display: grid;
  width: min(100%, 42rem);
  max-height: 15rem;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow: auto;
  color: #667383;
  font-size: 0.9rem;
}

.mc-map-fallback__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d8e0ea;
  border-radius: 8px;
}

.mc-map-fallback__item strong {
  color: #172033;
}

.mc-map-fallback__item span {
  color: #667383;
  font-size: 0.82rem;
}

.mc-google-map-shell,
.mc-google-map {
  width: 100%;
  height: 500px;
}

.mc-google-map-shell {
  position: relative;
  overflow: hidden;
  background: #e8eef5;
}

.mc-google-map-status {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.45rem 0.7rem;
  color: #fff;
  background: rgba(15, 47, 95, 0.9);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
}

.mc-map-info {
  display: grid;
  max-width: 250px;
  gap: 0.25rem;
  color: #172033;
  font: 0.85rem/1.4 Inter, sans-serif;
}

.mc-map-info strong {
  font-size: 0.95rem;
}

.mc-map-info a {
  color: #7b1e3a;
  font-weight: 800;
}

[data-loc="client/src/pages/municipal/MunicipalHome.tsx:104"] img[data-mc-municipal-hero] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

[data-loc="client/src/pages/Home.tsx:461"][data-mc-municipality-image-slug] {
  background-position: center !important;
  background-size: cover !important;
}

[data-loc="client/src/pages/Home.tsx:461"][data-mc-municipality-image-slug] > svg {
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.48));
}

body.mc-admin-page [data-platform-error-state] {
  color: var(--mc-admin-danger);
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
}

body.mc-platform-ready header a,
body.mc-platform-ready header button,
body.mc-platform-ready nav a,
body.mc-platform-ready nav button,
body.mc-platform-ready footer a,
body.mc-platform-ready footer button,
body.mc-platform-ready a[role="button"],
body.mc-platform-ready button {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
}

body.mc-platform-ready header a,
body.mc-platform-ready nav a,
body.mc-platform-ready footer a {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

body.mc-platform-ready a[href="/"],
body.mc-platform-ready a[href="/admin"],
body.mc-platform-ready a[href="/login"],
body.mc-platform-ready a[href="/privacidad"],
body.mc-platform-ready a[href="/terminos"] {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.mc-global-language {
  position: static;
  z-index: auto;
  display: flex;
  min-height: 2.35rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.3rem 0.2rem 0.55rem;
  color: #312e81;
  background: #ffffff;
  border: 1px solid #a5b4fc;
  border-radius: 999px;
  box-shadow: none;
}

.mc-global-language > strong {
  margin-right: 0.15rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.mc-global-language button {
  display: grid;
  min-width: 2.15rem;
  min-height: 1.95rem;
  place-items: center;
  padding: 0.2rem 0.4rem;
  color: #4338ca;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.mc-global-language button:hover,
.mc-global-language button:focus-visible,
.mc-global-language button.is-active {
  color: #fff;
  background: #4338ca;
  outline: 2px solid #facc15;
  outline-offset: 1px;
}

button[data-loc="client/src/components/LanguageSwitcher.tsx:15"] {
  color: #fff !important;
  background: #4338ca !important;
  border-color: #4338ca !important;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.2);
}

button[data-loc="client/src/components/LanguageSwitcher.tsx:15"]:hover,
button[data-loc="client/src/components/LanguageSwitcher.tsx:15"]:focus-visible {
  color: #fff !important;
  background: #3730a3 !important;
  border-color: #3730a3 !important;
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

button[data-loc="client/src/components/EmergencySOS.tsx:76"] {
  right: max(1rem, env(safe-area-inset-right)) !important;
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
}

button[data-loc="client/src/components/ScrollToTop.tsx:17"] {
  right: max(1.45rem, calc(env(safe-area-inset-right) + 0.45rem)) !important;
  bottom: max(5.75rem, calc(env(safe-area-inset-bottom) + 4.75rem)) !important;
}

.mc-native-language-proxy {
  display: none !important;
}

.mc-header-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #b91c1c;
  border-radius: 0.75rem;
  color: #b91c1c;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.mc-header-logout:hover,
.mc-header-logout:focus-visible {
  color: #fff;
  background: #b91c1c;
}

body.mc-kids-events-route {
  background: #f6f7ff;
}

body.mc-kids-events-route #root {
  display: block !important;
}

body.mc-kids-events-route #root > * {
  min-height: 0 !important;
  background: transparent !important;
}

body.mc-kids-events-route #root > * > :not(nav[data-loc="client/src/pages/apps/KidsSubPage.tsx:15"]):not([data-mc-kids-return]) {
  display: none !important;
}

body.mc-community-managed-section [data-mc-community-shell] > :not(nav):not(footer):not([data-mc-kids-return]):not([data-mc-community-actions]):not([data-mc-community-route]) {
  display: none !important;
}

body.mc-community-managed-section [data-mc-community-shell] {
  min-height: 100dvh;
  background: #f8fafc !important;
}

.mc-kids-return-bar {
  position: sticky;
  z-index: 49;
  top: 3.5rem;
  display: flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem max(1rem, calc((100% - 1240px) / 2));
  color: #4338ca;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #ddd6fe;
  box-shadow: 0 8px 20px rgba(49, 46, 129, 0.1);
  backdrop-filter: blur(10px);
}

.mc-kids-return-bar > a {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  color: #fff;
  background: #4338ca;
  border: 2px solid #4338ca;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
}

.mc-kids-return-bar > a:hover,
.mc-kids-return-bar > a:focus-visible {
  color: #312e81;
  background: #facc15;
  border-color: #facc15;
  outline: 3px solid #a5b4fc;
  outline-offset: 2px;
}

.mc-kids-return-bar > a > span {
  font-size: 1.15rem;
}

.mc-kids-return-bar > span {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 850;
}

.mc-kids-events-page {
  display: grid;
  width: min(100% - 2rem, 1240px);
  min-height: calc(100vh - 3.5rem);
  min-height: calc(100dvh - 3.5rem);
  gap: 1rem;
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
  color: #172033;
}

.mc-kids-events-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  overflow: hidden;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 88% 22%, rgba(250, 204, 21, 0.94) 0 4.5rem, transparent 4.6rem),
    radial-gradient(circle at 76% 86%, rgba(45, 212, 191, 0.7) 0 6rem, transparent 6.1rem),
    linear-gradient(135deg, #4338ca, #7c3aed 58%, #0f766e);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(67, 56, 202, 0.22);
}

.mc-kids-events-hero::after {
  content: "★";
  position: absolute;
  top: 1.2rem;
  right: 2.7rem;
  color: #4338ca;
  font-size: 3.4rem;
  transform: rotate(12deg);
}

.mc-kids-events-hero p,
.mc-kids-events-hero h1,
.mc-kids-events-hero span {
  margin: 0;
}

.mc-kids-events-hero p {
  color: #fde68a;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-kids-events-hero h1 {
  max-width: 760px;
  margin: 0.3rem 0 0.65rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 950;
  line-height: 1;
}

.mc-kids-events-hero > div > span {
  display: block;
  max-width: 760px;
  color: #f5f3ff;
  font-size: 1.02rem;
  line-height: 1.6;
}

.mc-kids-events-stats {
  z-index: 1;
  display: grid;
  width: 180px;
  align-content: end;
  gap: 0.55rem;
}

.mc-kids-events-stats strong {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  color: #312e81;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 13px;
  font-size: 0.78rem;
  font-weight: 900;
}

.mc-kids-events-stats span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  background: #4338ca;
  border-radius: 50%;
  font-size: 0.9rem;
}

.mc-kids-events-toolbar {
  position: sticky;
  z-index: 20;
  top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(49, 46, 129, 0.1);
  backdrop-filter: blur(10px);
}

.mc-kids-events-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mc-kids-events-toolbar button {
  min-height: 2.45rem;
  padding: 0.45rem 0.75rem;
  color: #4338ca;
  background: #eef2ff;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}

.mc-kids-events-toolbar button:hover,
.mc-kids-events-toolbar button:focus-visible,
.mc-kids-events-toolbar button.is-active {
  color: #fff;
  background: #4338ca;
  outline: 3px solid #fde047;
  outline-offset: 1px;
}

.mc-kids-events-toolbar label {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #312e81;
  font-weight: 850;
}

.mc-kids-events-toolbar select {
  min-height: 2.7rem;
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  color: #312e81;
  background: #fff;
  border: 2px solid #818cf8;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
}

.mc-kids-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mc-kids-events-grid article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  box-shadow: 0 9px 25px rgba(49, 46, 129, 0.09);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mc-kids-events-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(49, 46, 129, 0.16);
}

.mc-kids-event-card-art {
  position: relative;
  display: grid;
  min-height: 145px;
  place-items: center;
  overflow: hidden;
}

.mc-kids-event-card-art > span {
  z-index: 2;
  display: grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 4px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
  font-size: 3.1rem;
  transform: rotate(-5deg);
}

.mc-kids-event-card-art i {
  position: absolute;
  width: 3.2rem;
  height: 3.2rem;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 45% 55% 62% 38%;
}

.mc-kids-event-card-art i:nth-of-type(1) {
  top: 15%;
  left: 8%;
}

.mc-kids-event-card-art i:nth-of-type(2) {
  right: 10%;
  bottom: 8%;
  width: 5rem;
  height: 5rem;
}

.mc-kids-event-card-art i:nth-of-type(3) {
  top: 8%;
  right: 28%;
  width: 1.6rem;
  height: 1.6rem;
}

.mc-kids-event-scene--science { background: linear-gradient(135deg, #67e8f9, #818cf8); }
.mc-kids-event-scene--reading { background: linear-gradient(135deg, #fde68a, #fb7185); }
.mc-kids-event-scene--movement { background: linear-gradient(135deg, #86efac, #14b8a6); }
.mc-kids-event-scene--art { background: linear-gradient(135deg, #f9a8d4, #a78bfa); }
.mc-kids-event-scene--nature { background: linear-gradient(135deg, #bef264, #22c55e); }
.mc-kids-event-scene--music { background: linear-gradient(135deg, #fdba74, #f43f5e); }

.mc-kids-event-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.05rem;
}

.mc-kids-event-card-body p,
.mc-kids-event-card-body h2,
.mc-kids-event-card-body dl {
  margin: 0;
}

.mc-kids-event-date {
  color: #6d28d9 !important;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mc-kids-event-card-body h2 {
  color: #312e81;
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.15;
}

.mc-kids-event-card-body > p:not(.mc-kids-event-date) {
  color: #556274;
  line-height: 1.48;
}

.mc-kids-event-card-body dl {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px solid #e2e8f0;
}

.mc-kids-event-card-body dl div {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.25rem;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.4;
}

.mc-kids-event-card-body dt,
.mc-kids-event-card-body dd {
  margin: 0;
}

.mc-kids-event-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.mc-kids-event-card-actions button {
  min-height: 2.65rem;
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: #4338ca;
  border: 0;
  border-radius: 11px;
  font-weight: 900;
  cursor: pointer;
}

.mc-kids-event-card-actions button:hover,
.mc-kids-event-card-actions button:focus-visible {
  background: #0f766e;
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

.mc-kids-event-card-actions span,
.mc-kids-event-card-actions strong {
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: right;
}

.mc-kids-events-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  color: #312e81;
  background: linear-gradient(135deg, #ecfeff, #eef2ff);
  border: 2px solid #a5b4fc;
  border-radius: 18px;
}

.mc-kids-events-footer strong,
.mc-kids-events-footer p {
  margin: 0;
}

.mc-kids-events-footer p {
  margin-top: 0.25rem;
  color: #556274;
  line-height: 1.45;
}

.mc-kids-events-footer small {
  display: block;
  margin-top: 0.45rem;
  color: #854d0e;
  font-weight: 750;
  line-height: 1.4;
}

.mc-kids-events-footer a {
  display: inline-flex;
  min-height: 2.8rem;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.6rem 0.85rem;
  color: #fff;
  background: #4338ca;
  border-radius: 11px;
  font-weight: 900;
  text-decoration: none;
}

.mc-kids-events-status {
  display: block;
  min-height: 0;
  color: #065f46;
  background: #ecfdf5;
  border: 0 solid #6ee7b7;
  border-radius: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.mc-kids-events-status:not(:empty) {
  min-height: 2.8rem;
  padding: 0.7rem 0.85rem;
  border-width: 1px;
}

body.mc-kids-event-open {
  overflow: hidden;
}

.mc-kids-event-overlay {
  position: fixed;
  z-index: 100010;
  inset: 0;
  display: grid;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
}

.mc-kids-event-dialog {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  color: #172033;
  background: #f8fafc;
}

.mc-kids-event-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #4338ca, #0f766e);
}

.mc-kids-event-dialog > header > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mc-kids-event-dialog > header > div > span {
  font-size: 2.4rem;
}

.mc-kids-event-dialog > header p,
.mc-kids-event-dialog > header h2 {
  margin: 0;
}

.mc-kids-event-dialog > header p {
  color: #ccfbf1;
  font-size: 0.75rem;
  font-weight: 850;
}

.mc-kids-event-dialog > header h2 {
  color: #fff;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 950;
}

.mc-kids-event-dialog > header button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.mc-kids-event-dialog-body {
  display: grid;
  width: min(100%, 1100px);
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  margin: 0 auto;
  padding: 1rem;
  overflow: auto;
}

.mc-kids-event-scene {
  display: grid;
  min-height: 270px;
  align-content: center;
  justify-items: center;
  gap: 0.55rem;
  padding: 1.5rem;
  color: #172033;
  text-align: center;
  border-radius: 22px;
}

.mc-kids-event-scene > span {
  font-size: 6rem;
  filter: drop-shadow(0 12px 12px rgba(15, 23, 42, 0.18));
}

.mc-kids-event-scene strong {
  font-size: 1.05rem;
}

.mc-kids-event-scene p {
  margin: 0;
}

.mc-kids-event-details,
.mc-kids-event-checklist {
  padding: 1.15rem;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  box-shadow: 0 7px 20px rgba(49, 46, 129, 0.08);
}

.mc-kids-event-details h3,
.mc-kids-event-details p,
.mc-kids-event-details ul,
.mc-kids-event-checklist h3 {
  margin-top: 0;
}

.mc-kids-event-details h3,
.mc-kids-event-checklist h3 {
  color: #312e81;
  font-weight: 950;
}

.mc-kids-event-details > div > p:last-child,
.mc-kids-event-details li {
  color: #556274;
  line-height: 1.55;
}

.mc-kids-event-details ul {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.mc-kids-event-checklist {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.55rem;
}

.mc-kids-event-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  color: #312e81;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
}

.mc-kids-event-checklist input {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  accent-color: #4338ca;
}

.mc-kids-event-registration {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 1rem;
  align-items: end;
  padding: 1.15rem;
  background: #eef2ff;
  border: 2px solid #a5b4fc;
  border-radius: 18px;
}

.mc-kids-event-registration.is-confirmed {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.mc-kids-event-registration p,
.mc-kids-event-registration h3,
.mc-kids-event-registration span,
.mc-kids-event-registration dl {
  margin: 0;
}

.mc-kids-event-registration p {
  color: #4338ca;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mc-kids-event-registration h3 {
  margin: 0.2rem 0 0.35rem;
  color: #312e81;
  font-weight: 950;
}

.mc-kids-event-registration > div > span {
  display: block;
  color: #556274;
  line-height: 1.45;
}

.mc-kids-event-registration label {
  display: grid;
  gap: 0.4rem;
  color: #312e81;
  font-weight: 900;
}

.mc-kids-event-registration input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.55rem 0.65rem;
  color: #172033;
  background: #fff;
  border: 2px solid #818cf8;
  border-radius: 10px;
  font: inherit;
}

.mc-kids-event-registration dl {
  display: grid;
  gap: 0.45rem;
}

.mc-kids-event-registration dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem;
}

.mc-kids-event-registration dt {
  color: #047857;
  font-weight: 900;
}

.mc-kids-event-registration dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #172033;
  font-weight: 800;
}

.mc-kids-event-registration output {
  grid-column: 1 / -1;
  color: #b42318;
  font-weight: 850;
}

.mc-kids-event-dialog-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.mc-kids-event-dialog-actions button,
.mc-kids-event-dialog-actions a {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border-radius: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.mc-kids-event-dialog-actions button {
  color: #fff;
  background: #4338ca;
  border: 2px solid #4338ca;
}

.mc-kids-event-dialog-actions button.is-registered {
  background: #0f766e;
  border-color: #0f766e;
}

.mc-kids-event-dialog-actions a {
  color: #312e81;
  background: #fff;
  border: 2px solid #a5b4fc;
}

.mc-kids-event-demo-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.7rem 0.8rem;
  color: #854d0e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 11px;
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .mc-kids-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-kids-events-toolbar > div {
    display: none;
  }

  .mc-kids-events-toolbar label {
    display: flex;
    width: 100%;
  }

  .mc-kids-events-toolbar select {
    flex: 1;
  }
}

@media (max-width: 680px) {
  .mc-kids-events-hero {
    grid-template-columns: 1fr;
  }

  .mc-kids-events-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mc-kids-events-stats strong {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }

  .mc-kids-events-grid,
  .mc-kids-event-dialog-body {
    grid-template-columns: 1fr;
  }

  .mc-kids-events-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .mc-kids-events-footer a {
    justify-content: center;
  }

  .mc-kids-event-checklist,
  .mc-kids-event-registration,
  .mc-kids-event-dialog-actions,
  .mc-kids-event-demo-note {
    grid-column: auto;
  }

  .mc-kids-event-registration {
    grid-template-columns: 1fr;
  }

  .mc-kids-event-dialog > header button span {
    display: none;
  }
}

/* Iztacalco presentation-ready section navigation and collection views */
[data-mc-iztacalco-section-header] {
  position: relative;
  z-index: 20;
  color: #fff;
  background: linear-gradient(120deg, #5b1639 0%, #7d2347 48%, #24334f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(47, 15, 32, 0.14);
}

.mc-iztacalco-section-header__inner {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  padding: 0.85rem 0 1rem;
}

.mc-iztacalco-back,
.mc-iztacalco-section-title,
.mc-iztacalco-section-nav a {
  display: inline-flex;
  align-items: center;
}

.mc-iztacalco-back {
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.mc-iztacalco-back:hover,
.mc-iztacalco-back:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(-2px);
}

.mc-iztacalco-section-title {
  gap: 0.65rem;
  margin-left: 0.8rem;
  vertical-align: middle;
}

.mc-iztacalco-section-title > span {
  font-size: 1.7rem;
}

.mc-iztacalco-section-title div {
  display: grid;
  line-height: 1.05;
}

.mc-iztacalco-section-title small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-iztacalco-section-title strong {
  font-size: 1rem;
}

.mc-iztacalco-section-nav {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-bottom: 0.15rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.mc-iztacalco-section-nav a {
  flex: 0 0 auto;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.mc-iztacalco-section-nav a:hover,
.mc-iztacalco-section-nav a:focus-visible,
.mc-iztacalco-section-nav a[aria-current="page"] {
  color: #4a1531;
  background: #fff;
  border-color: #fff;
}

[data-mc-collection-toolbar] {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 1.25fr) minmax(150px, 0.8fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 1.1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.mc-collection-toolbar__label {
  display: grid;
  align-self: center;
}

.mc-collection-toolbar__label strong {
  color: #4a1531;
  font-size: 0.95rem;
}

.mc-collection-toolbar__label span,
.mc-collection-search > span,
.mc-collection-category > span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
}

.mc-collection-search,
.mc-collection-category {
  display: grid;
  gap: 0.3rem;
}

.mc-collection-search input,
.mc-collection-category select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.mc-collection-search input:focus,
.mc-collection-category select:focus {
  outline: 3px solid rgba(125, 35, 71, 0.16);
  border-color: #7d2347;
}

.mc-collection-view {
  display: flex;
  gap: 0.35rem;
}

.mc-collection-view button {
  min-height: 2.65rem;
  padding: 0.5rem 0.7rem;
  color: #5b1639;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.mc-collection-view button:hover,
.mc-collection-view button:focus-visible,
.mc-collection-view button.is-active {
  color: #fff;
  background: #7d2347;
  border-color: #7d2347;
}

[data-mc-collection-table] {
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.mc-collection-table-scroll {
  overflow-x: auto;
}

[data-mc-collection-table] table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

[data-mc-collection-table] th,
[data-mc-collection-table] td {
  padding: 0.8rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

[data-mc-collection-table] th {
  color: #fff;
  background: #4a1531;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-mc-collection-table] td {
  color: #475569;
  font-size: 0.82rem;
}

[data-mc-collection-table] td:first-child {
  color: #1e293b;
}

[data-mc-collection-table] td:nth-child(2) span {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  color: #7d2347;
  background: #fdf2f8;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
}

/* Kid-friendly games landing page and hangman-style word game */
body.mc-kids-games-route {
  background: #fff9ed;
}

body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:50"] {
  position: relative;
  overflow: hidden;
  padding-block: 3.5rem;
  background: linear-gradient(135deg, #7c3aed, #db2777 55%, #f59e0b) !important;
}

body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:50"]::before,
body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:50"]::after {
  position: absolute;
  content: "";
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 45% 55% 62% 38%;
  transform: rotate(22deg);
}

body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:50"]::before {
  top: -110px;
  left: -70px;
}

body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:50"]::after {
  right: -60px;
  bottom: -120px;
}

body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:51"],
body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:52"],
body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:53"] {
  position: relative;
  z-index: 1;
}

body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:55"] {
  background: linear-gradient(180deg, #fff9ed, #f5f3ff);
}

body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:57"] {
  gap: 1.1rem;
}

body.mc-kids-games-route [data-mc-game-ready] {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  background: rgba(255, 255, 255, 0.94);
  border-width: 3px;
  border-radius: 22px;
  box-shadow: 0 12px 0 rgba(91, 33, 182, 0.08), 0 18px 34px rgba(76, 29, 149, 0.12);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.mc-kids-games-route [data-mc-game-ready]:nth-child(3n + 2) {
  transform: rotate(0.8deg);
}

body.mc-kids-games-route [data-mc-game-ready]:nth-child(3n) {
  transform: rotate(-0.8deg);
}

body.mc-kids-games-route [data-mc-game-ready]:hover,
body.mc-kids-games-route [data-mc-game-ready]:focus-visible {
  transform: translateY(-6px) rotate(0);
  box-shadow: 0 16px 0 rgba(91, 33, 182, 0.08), 0 24px 42px rgba(76, 29, 149, 0.18);
}

body.mc-kids-games-route [data-loc="client/src/pages/apps/KidsSubPage.tsx:68"] {
  font-size: 3.8rem;
  filter: drop-shadow(0 5px 0 rgba(91, 33, 182, 0.12));
}

.mc-hangman {
  width: min(100%, 900px);
  margin: 0 auto;
}

.mc-hangman-stage {
  position: relative;
  min-height: 150px;
  margin: 0 auto 0.8rem;
  overflow: hidden;
  background: linear-gradient(#bae6fd 0 62%, #bbf7d0 62% 100%);
  border: 4px solid #7c3aed;
  border-radius: 24px;
}

.mc-hangman-sky {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  font-size: 2rem;
}

.mc-hangman-path {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  left: 1rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  text-align: center;
  font-size: 1.45rem;
}

.mc-hangman-path span.is-missed {
  opacity: 0.55;
  filter: grayscale(0.25);
}

.mc-hangman-friend {
  position: absolute;
  z-index: 1;
  bottom: 2.7rem;
  left: calc(3% + (var(--mc-hangman-step) * 14.5%));
  font-size: 2.6rem;
  filter: drop-shadow(0 4px 2px rgba(15, 23, 42, 0.16));
  transition: left 250ms ease;
}

.mc-hangman-hearts {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.6rem 0;
  font-size: 1.35rem;
}

.mc-hangman-hearts .is-used {
  opacity: 0.2;
  filter: grayscale(1);
}

.mc-hangman-hint {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  color: #4c1d95;
  text-align: center;
  background: #f3e8ff;
  border-radius: 14px;
}

.mc-hangman-word {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.1rem 0;
}

.mc-hangman-word span {
  display: grid;
  width: clamp(2rem, 7vw, 3.2rem);
  min-height: 3rem;
  place-items: center;
  color: #4c1d95;
  background: #fff;
  border-bottom: 4px solid #7c3aed;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 950;
}

.mc-hangman-word span.is-space {
  width: 1rem;
  border: 0;
}

.mc-hangman-keyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.mc-hangman-keyboard button {
  width: 2.75rem;
  min-height: 2.75rem;
  color: #fff;
  background: linear-gradient(145deg, #7c3aed, #6d28d9);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 0 #4c1d95;
  font-weight: 900;
  cursor: pointer;
}

.mc-hangman-keyboard button:hover:not(:disabled),
.mc-hangman-keyboard button:focus-visible:not(:disabled) {
  background: #db2777;
  transform: translateY(-2px);
}

.mc-hangman-keyboard button:disabled {
  color: #64748b;
  background: #e2e8f0;
  box-shadow: 0 2px 0 #cbd5e1;
  cursor: default;
}

@media (max-width: 900px) {
  [data-mc-collection-toolbar] {
    grid-template-columns: 1fr 1fr;
  }

  .mc-collection-toolbar__label,
  .mc-collection-view {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .mc-iztacalco-section-header__inner {
    width: min(100% - 1rem, 1280px);
  }

  .mc-iztacalco-section-title {
    margin-left: 0.35rem;
  }

  [data-mc-collection-toolbar] {
    grid-template-columns: 1fr;
  }

  .mc-collection-toolbar__label,
  .mc-collection-view {
    grid-column: auto;
  }

  .mc-collection-view button {
    flex: 1;
  }

  .mc-hangman-stage {
    min-height: 125px;
  }

  .mc-hangman-friend {
    font-size: 2rem;
  }

  .mc-hangman-keyboard button {
    width: 2.35rem;
    min-height: 2.35rem;
  }
}

.mc-kids-game-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  padding: 0.45rem 0.8rem;
  color: #6b21a8;
  background: #f3e8ff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

[data-mc-game-ready] {
  outline: none;
}

[data-mc-game-ready]:focus-visible {
  box-shadow: 0 0 0 4px rgba(126, 34, 206, 0.3);
}

[data-mc-kids-activity-ready] {
  position: relative;
  outline: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

[data-mc-kids-activity-ready]:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.18);
}

[data-mc-kids-activity-ready]:focus-visible {
  box-shadow: 0 0 0 4px rgba(126, 34, 206, 0.3), 0 12px 30px rgba(76, 29, 149, 0.18);
}

[data-mc-kids-activity-ready].mc-kids-card-complete {
  box-shadow: inset 0 0 0 3px #22c55e;
}

.mc-kids-card-visual {
  width: calc(100% + 2.5rem);
  aspect-ratio: 16 / 9;
  margin: -1.25rem -1.25rem 0.9rem;
  background-image: var(--mc-activity-atlas);
  background-size: var(--mc-activity-atlas-size);
  background-position: var(--mc-activity-atlas-position);
  border-radius: 13px 13px 0 0;
  box-shadow: inset 0 -18px 28px rgba(15, 23, 42, 0.12);
}

body.mc-kids-game-open {
  overflow: hidden;
}

.mc-kids-game-overlay {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: stretch;
  padding: 0;
  background: rgba(30, 12, 52, 0.72);
  backdrop-filter: blur(5px);
}

.mc-kids-game-dialog {
  display: flex;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  flex-direction: column;
  overflow: hidden;
  color: #241234;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

.mc-kids-game-overlay[data-mc-kids-game-dialog="patterns"] .mc-kids-game-dialog,
.mc-kids-game-overlay[data-mc-kids-game-dialog="creative"] .mc-kids-game-dialog {
  width: 100%;
}

.mc-kids-game-dialog > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #7e22ce, #4f46e5);
}

.mc-kids-game-dialog > header > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mc-kids-game-dialog > header > div > span {
  font-size: 2rem;
}

.mc-kids-game-dialog h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.mc-kids-game-dialog [data-game-close] {
  display: inline-flex;
  width: auto;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 850;
  cursor: pointer;
}

.mc-kids-activity-switcher {
  display: flex;
  min-width: min(42vw, 360px);
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.mc-kids-activity-switcher select {
  min-width: 0;
  min-height: 2.5rem;
  flex: 1;
  padding: 0.4rem 2rem 0.4rem 0.6rem;
  color: #312e81;
  background: #fff;
  border: 2px solid #ddd6fe;
  border-radius: 10px;
  font-weight: 800;
}

.mc-kids-game-back span {
  font-size: 0.9rem;
}

.mc-kids-game-body {
  width: min(100%, 1180px);
  flex: 1;
  margin: 0 auto;
  padding: 1.25rem;
  overflow: auto;
}

.mc-compact-panel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
}

.mc-compact-panel-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mc-compact-panel-nav button {
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  color: #3730a3;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-weight: 850;
  cursor: pointer;
}

.mc-compact-panel-nav button:hover,
.mc-compact-panel-nav button:focus-visible,
.mc-compact-panel-nav button.is-active {
  color: #fff;
  background: #4338ca;
  outline: 3px solid #facc15;
  outline-offset: 1px;
}

.mc-compact-panel-nav label {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: #312e81;
  font-size: 0.8rem;
  font-weight: 850;
}

.mc-compact-panel-nav select {
  min-height: 2.6rem;
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  color: #312e81;
  background: #fff;
  border: 2px solid #818cf8;
  border-radius: 10px;
  font-weight: 800;
}

.mc-kids-activity-overlay .mc-kids-game-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}

.mc-kids-activity-overlay .mc-kids-activity-content,
.mc-kids-activity-overlay .mc-music-studio,
.mc-kids-activity-overlay .mc-art-compact-panel.is-active {
  min-height: 0;
  flex: 1;
}

.mc-kids-activity-overlay .mc-kids-compact-panel.is-active,
.mc-kids-activity-overlay .mc-art-compact-panel.is-active,
.mc-kids-activity-overlay .mc-music-studio > [data-compact-panel].is-active {
  overflow: auto;
  overscroll-behavior: contain;
}

.mc-kids-activity-intro,
.mc-kids-activity-content {
  display: grid;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto 1rem;
}

.mc-kids-activity-visual {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(220px, 0.95fr) minmax(220px, 1.05fr);
  gap: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid #c4b5fd;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(76, 29, 149, 0.15);
}

.mc-kids-activity-visual > div {
  min-height: 220px;
  background-image: var(--mc-activity-atlas);
  background-size: var(--mc-activity-atlas-size);
  background-position: var(--mc-activity-atlas-position);
}

.mc-kids-activity-visual figcaption {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  padding: 1rem;
  color: #312e81;
  background: linear-gradient(145deg, #fff, #f5f3ff);
}

.mc-kids-activity-visual figcaption strong {
  font-size: 1.1rem;
  font-weight: 950;
}

.mc-kids-activity-visual figcaption > span {
  color: #5b6473;
  line-height: 1.45;
}

.mc-kids-activity-visual button {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, #7e22ce, #db2777);
  border: 0;
  border-radius: 11px;
  font-weight: 900;
  cursor: pointer;
}

.mc-kids-activity-visual button:hover,
.mc-kids-activity-visual button:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 2px;
  transform: translateY(-1px);
}

.mc-kids-activity-visual output {
  min-height: 2.7rem;
  padding: 0.55rem;
  color: #713f12;
  background: #fef9c3;
  border-radius: 9px;
  font-weight: 800;
  line-height: 1.4;
}

.mc-kids-activity-visual output:empty {
  display: none;
}

.mc-kids-activity-visual.is-compact > div {
  min-height: 170px;
}

.mc-kids-activity-overlay .mc-kids-activity-content {
  width: min(100%, 920px);
  grid-template-rows: auto minmax(0, 1fr);
  margin-bottom: 0;
}

.mc-kids-compact-panel {
  display: grid;
  min-height: 0;
  gap: 0.8rem;
  align-content: start;
}

.mc-kids-compact-panel .mc-kids-activity-lead {
  font-size: 1rem;
}

.mc-kids-activity-intro {
  padding: 1rem 1.1rem;
  color: #312e81;
  background: #eef2ff;
  border: 2px solid #c7d2fe;
  border-radius: 16px;
}

.mc-kids-activity-intro p,
.mc-kids-activity-content p {
  margin: 0;
}

.mc-kids-activity-lead {
  padding: 1.1rem;
  color: #312e81;
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border-left: 5px solid #7e22ce;
  border-radius: 12px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.mc-kids-activity-content section {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(76, 29, 149, 0.08);
}

.mc-kids-activity-content h3 {
  margin: 0 0 0.65rem;
  color: #5b21b6;
  font-size: 1.05rem;
  font-weight: 900;
}

.mc-kids-activity-content ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.mc-kids-activity-answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.mc-kids-activity-answers button {
  min-height: 3.25rem;
  padding: 0.7rem;
  color: #4c1d95;
  background: #faf5ff;
  border: 2px solid #c4b5fd;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mc-kids-activity-answers button:hover,
.mc-kids-activity-answers button:focus-visible {
  color: #fff;
  background: #6d28d9;
  border-color: #6d28d9;
  outline: 3px solid #f4cf72;
  outline-offset: 2px;
}

.mc-kids-activity-answers button.is-correct {
  color: #14532d;
  background: #dcfce7;
  border-color: #22c55e;
}

.mc-kids-activity-answers button.is-wrong {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #f87171;
}

.mc-kids-activity-feedback {
  min-height: 1.5rem;
  margin-top: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-weight: 750;
}

.mc-kids-activity-feedback:empty {
  display: none;
}

.mc-kids-activity-feedback.is-success {
  color: #14532d;
  background: #dcfce7;
}

.mc-kids-activity-feedback.is-try-again {
  color: #7c2d12;
  background: #ffedd5;
}

.mc-kids-activity-mission {
  color: #713f12;
  background: #fef9c3 !important;
  border-color: #fde047 !important;
}

.mc-kids-activity-complete {
  display: flex;
  max-width: 880px;
  justify-content: center;
  margin: 1.2rem auto 2rem;
}

.mc-kids-activity-overlay .mc-kids-activity-complete {
  flex: 0 0 auto;
  margin: 0 auto;
}

.mc-kids-activity-complete button {
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  color: #fff;
  background: #6b21a8;
  border: 0;
  border-radius: 12px;
  font-weight: 850;
  cursor: pointer;
}

.mc-kids-activity-complete button.is-complete {
  color: #14532d;
  background: #dcfce7;
  box-shadow: inset 0 0 0 2px #22c55e;
}

.mc-kids-game-status {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  text-align: center;
  background: #f3e8ff;
  border-radius: 16px;
}

.mc-kids-game-status strong {
  color: #6b21a8;
  font-size: 1.2rem;
}

.mc-memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-width: 500px;
  margin: 0 auto;
}

.mc-memory-grid button {
  min-height: 82px;
  color: #fff;
  background: linear-gradient(145deg, #7e22ce, #4f46e5);
  border: 2px solid #7e22ce;
  border-radius: 14px;
  font-size: 1.8rem;
  font-weight: 900;
  cursor: pointer;
}

.mc-memory-grid button.is-visible {
  color: #241234;
  background: #fff;
}

.mc-kids-game-reset,
.mc-kids-game-next {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin: 1.2rem auto 0;
  padding: 0.65rem 1.1rem;
  color: #fff;
  background: #6b21a8;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mc-kids-quiz-progress {
  height: 0.65rem;
  overflow: hidden;
  background: #ede9fe;
  border-radius: 999px;
}

.mc-kids-quiz-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7e22ce, #4f46e5);
}

.mc-kids-quiz-count {
  margin: 0.4rem 0 1.2rem;
  color: #6b7280;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 800;
}

.mc-kids-quiz-prompt {
  margin: 0 0 1.2rem;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 900;
}

.mc-kids-quiz-options {
  display: grid;
  gap: 0.65rem;
}

.mc-kids-quiz-options button {
  min-height: 3rem;
  padding: 0.7rem 1rem;
  color: #39204e;
  background: #fff;
  border: 2px solid #ddd6fe;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.mc-kids-quiz-options button:hover,
.mc-kids-quiz-options button:focus-visible {
  border-color: #7e22ce;
}

.mc-kids-quiz-options button.is-correct {
  background: #dcfce7;
  border-color: #16a34a;
}

.mc-kids-quiz-options button.is-wrong {
  background: #ffedd5;
  border-color: #ea580c;
}

.mc-kids-quiz-explanation {
  margin: 1rem 0 0;
  color: #166534;
  text-align: center;
  font-weight: 800;
}

.mc-mosaic-palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.mc-mosaic-palette button {
  width: 2.6rem;
  min-height: 2.6rem;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
}

.mc-mosaic-palette button.is-selected {
  border: 4px solid #241234;
}

.mc-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.5rem;
  background: #f1f5f9;
  border-radius: 14px;
}

.mc-mosaic-grid button {
  aspect-ratio: 1;
  min-height: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
}

.mc-puzzle-picker {
  margin: 1rem 0;
}

.mc-puzzle-picker h3 {
  margin: 0 0 0.6rem;
  color: #39204e;
  font-size: 1rem;
  font-weight: 900;
}

.mc-puzzle-pictures,
.mc-puzzle-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.mc-puzzle-pictures button,
.mc-puzzle-levels button {
  min-width: 0;
  padding: 0.5rem;
  color: #39204e;
  background: #faf5ff;
  border: 2px solid #e9d5ff;
  border-radius: 14px;
  cursor: pointer;
}

.mc-puzzle-pictures button:hover,
.mc-puzzle-levels button:hover,
.mc-puzzle-pictures button:focus-visible,
.mc-puzzle-levels button:focus-visible {
  border-color: #7e22ce;
}

.mc-puzzle-pictures button.is-selected,
.mc-puzzle-levels button.is-selected {
  background: #f3e8ff;
  border-color: #7e22ce;
  box-shadow: 0 0 0 2px rgba(126, 34, 206, 0.14);
}

.mc-puzzle-pictures button > span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.45rem;
  background-position: center;
  background-size: cover;
  border-radius: 10px;
}

.mc-puzzle-pictures strong,
.mc-puzzle-pictures small,
.mc-puzzle-levels strong,
.mc-puzzle-levels small {
  display: block;
}

.mc-puzzle-pictures small,
.mc-puzzle-levels small {
  margin-top: 0.2rem;
  color: #6b5a75;
  font-size: 0.75rem;
  line-height: 1.25;
}

.mc-puzzle-levels button {
  padding: 0.75rem;
  text-align: center;
}

.mc-puzzle-choice-summary {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
  margin: 0 auto 1rem;
  padding: 0.5rem 0.8rem 0.5rem 0.5rem;
  color: #39204e;
  background: #f3e8ff;
  border: 2px solid #d8b4fe;
  border-radius: 14px;
}

.mc-puzzle-choice-summary img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 9px;
}

.mc-puzzle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.mc-puzzle-actions .mc-kids-game-reset {
  margin: 0;
}

.mc-puzzle-back {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin: 1.1rem auto 0;
  padding: 0.65rem 1rem;
  color: #6b21a8;
  background: #fff;
  border: 2px solid #c084fc;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mc-puzzle-actions .mc-puzzle-back {
  margin: 0;
}

.mc-puzzle-back:hover,
.mc-puzzle-back:focus-visible {
  color: #fff;
  background: #6b21a8;
  border-color: #6b21a8;
}

.mc-puzzle-reference {
  margin: 0.75rem 0;
  text-align: center;
}

.mc-puzzle-reference summary {
  color: #6b21a8;
  font-weight: 850;
  cursor: pointer;
}

.mc-puzzle-reference img {
  display: block;
  width: min(240px, 100%);
  aspect-ratio: 1;
  margin: 0.65rem auto;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(36, 18, 52, 0.18);
}

.mc-photo-puzzle {
  display: grid;
  gap: 3px;
  width: min(480px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 4px;
  background: #ede9fe;
  border: 3px solid #6b21a8;
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(36, 18, 52, 0.2);
}

.mc-photo-puzzle button {
  position: relative;
  min-width: 0;
  padding: 0;
  background-repeat: no-repeat;
  border: 0;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.mc-photo-puzzle button:hover,
.mc-photo-puzzle button:focus-visible {
  z-index: 1;
  outline: 3px solid #facc15;
  outline-offset: -3px;
}

.mc-photo-puzzle button span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  color: #fff;
  background: rgba(36, 18, 52, 0.82);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.mc-puzzle-blank {
  visibility: hidden;
}

.mc-jigsaw-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.mc-jigsaw-board-panel h3,
.mc-jigsaw-tray-panel h3 {
  margin: 0 0 0.5rem;
  color: #39204e;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
}

.mc-jigsaw-board,
.mc-jigsaw-tray {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 0.55rem;
  border-radius: 16px;
}

.mc-jigsaw-board {
  aspect-ratio: 1;
  gap: 0;
  overflow: visible;
  padding: 1rem;
  background: linear-gradient(145deg, #f3e8ff, #e0e7ff);
  border: 3px solid #7e22ce;
  box-shadow: inset 0 0 20px rgba(126, 34, 206, 0.12);
}

.mc-jigsaw-tray {
  min-height: 180px;
  align-content: start;
  background: #f8fafc;
  border: 3px dashed #94a3b8;
}

.mc-jigsaw-slot,
.mc-jigsaw-piece {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: visible;
  padding: 0;
  background: transparent;
  border-radius: 8px;
}

.mc-jigsaw-slot {
  display: grid;
  place-items: center;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.52);
  border: 2px dashed rgba(124, 58, 237, 0.42);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.mc-jigsaw-slot.is-drop-target,
.mc-jigsaw-slot:focus-visible {
  background: #fef3c7;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.24);
  outline: none;
}

.mc-jigsaw-slot.is-filled {
  background: transparent;
  border-color: transparent;
}

.mc-jigsaw-piece {
  overflow: visible;
  border: 0;
  cursor: grab;
  filter: drop-shadow(0 4px 3px rgba(36, 18, 52, 0.28));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.mc-jigsaw-piece:hover,
.mc-jigsaw-piece:focus-visible,
.mc-jigsaw-piece.is-selected {
  z-index: 2;
  transform: translateY(-4px) scale(1.06);
  filter: drop-shadow(0 7px 5px rgba(107, 33, 168, 0.38));
  outline: 3px solid #facc15;
  outline-offset: 1px;
}

.mc-jigsaw-piece.is-dragging {
  opacity: 0.35;
}

.mc-jigsaw-piece svg,
.mc-jigsaw-slot svg {
  display: block;
  width: 140%;
  height: 140%;
  margin: -20%;
  overflow: visible;
  pointer-events: none;
}

.mc-jigsaw-piece.is-placed {
  width: 100%;
  height: 100%;
  cursor: move;
  filter: none;
}

.mc-jigsaw-piece.is-placed:hover,
.mc-jigsaw-piece.is-placed:focus-visible,
.mc-jigsaw-piece.is-placed.is-selected {
  transform: scale(1.02);
}

.mc-jigsaw-drag-ghost {
  position: fixed;
  z-index: 100010;
  top: 0;
  left: 0;
  margin: 0;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 10px 8px rgba(36, 18, 52, 0.4));
  will-change: transform;
}

.mc-jigsaw-empty {
  grid-column: 1 / -1;
  margin: auto;
  padding: 1rem;
  color: #166534;
  text-align: center;
  font-weight: 900;
}

.mc-puzzle-free-placement {
  display: flex;
  width: min(100%, 720px);
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  color: #3b2351;
  background: #f5f3ff;
  border: 2px solid #c4b5fd;
  border-radius: 14px;
  cursor: pointer;
}

.mc-puzzle-free-placement input {
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  accent-color: #7e22ce;
}

.mc-puzzle-free-placement span,
.mc-puzzle-free-placement strong,
.mc-puzzle-free-placement small {
  display: block;
}

.mc-puzzle-free-placement small {
  margin-top: 0.2rem;
  color: #6b5a79;
  line-height: 1.4;
}

.mc-geography-map {
  width: min(100%, 720px);
  margin: 0.75rem auto 1.1rem;
}

.mc-geography-map svg {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid #c7d2fe;
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(49, 46, 129, 0.16);
}

.mc-geography-map .mc-map-land,
.mc-geography-map .mc-map-mexico {
  fill: #d6dfc7;
  stroke: #82926f;
  stroke-width: 3;
  transition: fill 0.2s ease;
}

.mc-geography-map .mc-map-pacific {
  fill: #bde4fa;
}

.mc-geography-map .is-highlighted {
  fill: #f43f5e;
  stroke: #9f1239;
  stroke-width: 5;
}

.mc-geography-map .mc-map-location {
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 4;
  opacity: 0;
}

.mc-geography-map .mc-map-location.is-highlighted {
  fill: #facc15;
  stroke: #9f1239;
  opacity: 1;
}

.mc-geography-map .mc-map-location-line {
  fill: none;
  stroke: #9f1239;
  stroke-width: 4;
}

.mc-geography-map rect:not(:first-child) {
  fill: #ffffff;
  stroke: #9f1239;
  stroke-width: 3;
}

.mc-geography-map text {
  fill: #172033;
  font-family: inherit;
  font-size: 18px;
  font-weight: 850;
}

.mc-geography-map .mc-map-ocean-label {
  fill: #245a78;
  font-size: 16px;
}

.mc-geography-map .mc-map-country-label {
  fill: #2f4529;
  font-size: 15px;
}

.mc-geography-map figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  color: #4c1d95;
  font-weight: 900;
}

.mc-geography-map figcaption span {
  width: 1rem;
  height: 1rem;
  background: #f43f5e;
  border: 2px solid #9f1239;
  border-radius: 4px;
}

.mc-art-inspiration,
.mc-art-templates {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  padding: 0.9rem;
  background: linear-gradient(135deg, #fff1f2, #faf5ff);
  border: 2px solid #f0abfc;
  border-radius: 16px;
}

.mc-art-inspiration p,
.mc-art-templates p {
  margin: 0;
  color: #86198f;
  font-weight: 900;
}

.mc-art-prompts,
.mc-art-templates > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mc-art-prompts button,
.mc-art-templates button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  color: #701a75;
  background: #fff;
  border: 2px solid #f0abfc;
  border-radius: 11px;
  font-weight: 850;
  cursor: pointer;
}

.mc-art-prompts button:hover,
.mc-art-prompts button:focus-visible,
.mc-art-prompts button.is-selected,
.mc-art-templates button:hover,
.mc-art-templates button:focus-visible,
.mc-art-templates button.is-selected {
  color: #fff;
  background: #a21caf;
  border-color: #a21caf;
  outline: 3px solid #fde047;
  outline-offset: 2px;
}

.mc-art-inspiration output {
  color: #4a044e;
  font-weight: 800;
}

.mc-art-template {
  display: inline-block;
  width: 2.3rem;
  height: 1.5rem;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 5px;
}

.mc-art-template.blank {
  background: #fff;
}

.mc-art-template.canals {
  background: linear-gradient(#bfdbfe 0 50%, #16a34a 50% 57%, #38bdf8 57%);
}

.mc-art-template.sunset {
  background: linear-gradient(#fda4af 0 45%, #fdba74 45% 80%, #7c3aed 80%);
}

.mc-art-template.park {
  background: linear-gradient(#bae6fd 0 55%, #86efac 55%);
}

.mc-art-compact-panel {
  min-height: 0;
}

.mc-art-studio-panel {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.8rem;
}

.mc-art-studio-panel .mc-paint-toolbar {
  grid-row: 1 / span 2;
  align-content: start;
  margin-bottom: 0;
  overflow: auto;
}

.mc-art-studio-panel .mc-paint-canvas-wrap {
  min-height: 0;
}

.mc-art-studio-panel .mc-paint-canvas {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 15rem);
  object-fit: contain;
}

.mc-paint-toolbar {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
}

.mc-paint-tools,
.mc-paint-stamps,
.mc-paint-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mc-paint-stamps strong {
  color: #4a044e;
  font-size: 0.84rem;
}

.mc-paint-stamps button {
  display: grid;
  width: 2.65rem;
  min-height: 2.65rem;
  place-items: center;
  padding: 0;
  background: #fff;
  border: 2px solid #d8b4fe;
  border-radius: 10px;
  font-size: 1.35rem;
  cursor: pointer;
}

.mc-paint-stamps button:hover,
.mc-paint-stamps button:focus-visible,
.mc-paint-stamps button.is-selected {
  background: #f3e8ff;
  border-color: #7e22ce;
  box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.2);
}

.mc-paint-tools button {
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  color: #39204e;
  background: #fff;
  border: 2px solid #d8cbe3;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.mc-paint-tools button:hover,
.mc-paint-tools button:focus-visible,
.mc-paint-tools button.is-selected {
  color: #fff;
  background: #6b21a8;
  border-color: #6b21a8;
}

.mc-paint-colors > button {
  width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #94a3b8;
  cursor: pointer;
}

.mc-paint-colors > button.is-selected {
  box-shadow: 0 0 0 3px #6b21a8;
}

.mc-paint-custom-color,
.mc-paint-size {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #39204e;
  font-size: 0.85rem;
  font-weight: 800;
}

.mc-paint-custom-color input {
  width: 2.6rem;
  height: 2.35rem;
  padding: 0.1rem;
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  cursor: pointer;
}

.mc-paint-size input {
  width: min(260px, 48vw);
  accent-color: #6b21a8;
}

.mc-paint-canvas-wrap {
  overflow: hidden;
  background: #e2e8f0;
  border: 3px solid #64748b;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #fff, 0 10px 24px rgba(15, 23, 42, 0.16);
}

.mc-paint-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 560;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.mc-paint-hint {
  margin: 0.65rem 0 0;
  color: #64748b;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.mc-music-studio {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1rem;
}

.mc-music-studio > [data-compact-panel].is-active {
  min-height: 0;
}

.mc-music-hero,
.mc-music-examples,
.mc-music-pads,
.mc-music-sequencer,
.mc-music-sing {
  padding: 1rem;
  border-radius: 18px;
}

.mc-music-hero {
  display: grid;
  gap: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, #4c1d95, #db2777, #ea580c);
  box-shadow: 0 14px 32px rgba(126, 34, 206, 0.22);
}

.mc-music-hero > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mc-music-hero > div > span {
  font-size: 3rem;
}

.mc-music-hero p,
.mc-music-hero h3,
.mc-music-hero span {
  margin: 0;
}

.mc-music-hero p {
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-music-hero h3 {
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 950;
}

.mc-music-hero output {
  padding: 0.65rem 0.8rem;
  color: #3b0764;
  background: #fff;
  border-radius: 11px;
  font-weight: 850;
}

.mc-music-examples {
  color: #312e81;
  background: #eef2ff;
  border: 2px solid #a5b4fc;
}

.mc-music-examples h3,
.mc-music-pads h3,
.mc-music-sequencer h3,
.mc-music-sing h3 {
  margin: 0 0 0.7rem;
  font-weight: 900;
}

.mc-music-examples > div,
.mc-music-pads > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.mc-music-examples button {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  color: #3730a3;
  background: #fff;
  border: 2px solid #818cf8;
  border-radius: 12px;
  font-weight: 850;
  cursor: pointer;
}

.mc-music-examples button:hover,
.mc-music-examples button:focus-visible {
  color: #fff;
  background: #4338ca;
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

.mc-music-pads {
  color: #831843;
  background: #fdf2f8;
  border: 2px solid #f9a8d4;
}

.mc-music-pads > div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mc-music-pads button {
  display: grid;
  min-height: 7rem;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  color: #831843;
  background: linear-gradient(145deg, #fff, #fce7f3);
  border: 3px solid #f472b6;
  border-radius: 18px;
  box-shadow: 0 7px 0 #be185d;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.mc-music-pads button span {
  font-size: 2.2rem;
}

.mc-music-pads button small {
  color: #9d174d;
}

.mc-music-pads button:hover,
.mc-music-pads button:focus-visible,
.mc-music-pads button.is-hit {
  transform: translateY(5px);
  box-shadow: 0 2px 0 #be185d;
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

.mc-music-sequencer {
  color: #ecfeff;
  background: #083344;
  border: 2px solid #22d3ee;
}

.mc-music-sequencer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.mc-music-sequencer-heading p {
  margin: -0.45rem 0 0.8rem;
  color: #a5f3fc;
}

.mc-music-sequencer-heading label {
  display: grid;
  min-width: 180px;
  gap: 0.3rem;
  color: #cffafe;
  font-weight: 800;
}

.mc-music-sequencer-heading input {
  accent-color: #facc15;
}

.mc-music-grid {
  display: grid;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.mc-music-row {
  display: grid;
  min-width: 660px;
  grid-template-columns: 120px repeat(8, 1fr);
  gap: 0.45rem;
  align-items: center;
}

.mc-music-row > strong {
  color: #cffafe;
}

.mc-music-row button {
  min-height: 3.2rem;
  color: #a5f3fc;
  background: #164e63;
  border: 2px solid #0e7490;
  border-radius: 9px;
  font-weight: 850;
  cursor: pointer;
}

.mc-music-row button.is-active {
  color: #422006;
  background: #facc15;
  border-color: #fef08a;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.55);
}

.mc-music-row button.is-playing {
  outline: 4px solid #fb7185;
  outline-offset: 1px;
  transform: scale(1.04);
}

.mc-music-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.mc-music-controls button {
  min-height: 2.8rem;
  padding: 0.55rem 0.8rem;
  color: #083344;
  background: #cffafe;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.mc-music-controls button:hover,
.mc-music-controls button:focus-visible,
.mc-music-controls button.is-playing {
  color: #422006;
  background: #facc15;
  outline: 3px solid #fb7185;
  outline-offset: 2px;
}

.mc-music-sing {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #713f12;
  background: linear-gradient(135deg, #fef9c3, #ffedd5);
  border: 2px solid #facc15;
}

.mc-music-sing > div:first-child {
  font-size: 3rem;
}

.mc-music-sing h3,
.mc-music-sing p {
  margin: 0;
}

.mc-mvp-form label small {
  display: block;
  margin-top: 0.35rem;
  color: #667085;
  font-size: 0.78rem;
}
.mc-mvp-form [data-mc-keyword-classification] { padding:8px 10px; color:#475467; background:#f2f4f7; border-radius:7px; font-weight:700; line-height:1.4; }
.mc-mvp-form [data-mc-keyword-classification][data-state="detected"] { color:#8a1c13; background:#fff1f0; border:1px solid #f4b8b2; }

.mc-account-delete-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 1.5rem auto;
  padding: 1rem 1.2rem;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 12px;
}

.mc-account-navbar {
  position: sticky;
  z-index: 100;
  top: 0;
  color: #172033;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #d8e0ea;
  box-shadow: 0 6px 18px rgba(15, 31, 61, 0.1);
  backdrop-filter: blur(10px);
}

.mc-account-navbar nav {
  display: flex;
  width: min(100%, 72rem);
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.55rem 1rem;
}

.mc-account-navbar__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  color: #0f2f5f;
  text-decoration: none;
}

.mc-account-navbar__brand > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  background: #4338ca;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 900;
}

.mc-account-navbar__brand strong {
  font-size: 0.95rem;
  white-space: nowrap;
}

.mc-account-navbar__brand small {
  color: #667383;
  font-size: 0.78rem;
  white-space: nowrap;
}

.mc-account-navbar__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.mc-account-navbar__logout {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  color: #b42318;
  background: #ffffff;
  border: 1px solid #fda29b;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.mc-account-navbar__logout:hover,
.mc-account-navbar__logout:focus-visible {
  color: #ffffff;
  background: #b42318;
  border-color: #b42318;
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

.mc-account-navbar__logout:disabled {
  cursor: wait;
  opacity: 0.7;
}

.mc-account-navbar__message {
  display: block;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto 0.55rem;
  color: #b42318;
  font-size: 0.8rem;
  text-align: right;
}

.mc-account-navbar__message[hidden] {
  display: none;
}

.mc-account-delete-panel div {
  display: grid;
  gap: 0.25rem;
}

.mc-account-delete-panel span {
  color: #6b7280;
  font-size: 0.9rem;
}

.mc-account-delete-panel button,
.mc-account-delete-dialog button[type="submit"] {
  min-height: 2.65rem;
  padding: 0.6rem 1rem;
  color: #fff;
  background: #b42318;
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.mc-account-delete-overlay {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 10, 10, 0.72);
}

.mc-account-delete-dialog {
  display: grid;
  width: min(100%, 520px);
  gap: 0.8rem;
  padding: 1.4rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.mc-account-delete-dialog h2,
.mc-account-delete-dialog p {
  margin: 0;
}

.mc-account-delete-dialog label:not(.mc-account-delete-check) {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.mc-account-delete-dialog input:not([type="checkbox"]) {
  min-height: 2.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.mc-account-delete-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.mc-account-delete-dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.mc-account-delete-dialog [data-mc-delete-cancel] {
  min-height: 2.65rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-weight: 700;
}

.mc-account-delete-dialog output[data-state="error"] {
  color: #b42318;
}

.mc-account-delete-dialog output[data-state="success"] {
  color: #067647;
}

.mc-community-action-panel {
  display: grid;
  gap: 0.75rem;
  width: min(100% - 2rem, 72rem);
  margin: 1rem auto;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.mc-community-action-panel > strong {
  color: #312e81;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mc-community-action-panel > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mc-community-action-panel a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  color: #4c1d95;
  background: #f3e8ff;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.mc-community-action-panel a:hover,
.mc-community-action-panel a:focus-visible {
  color: #fff;
  background: #6d28d9;
}

.mc-community-app-overview {
  display: grid;
  width: min(100% - 2rem, 72rem);
  gap: 1rem;
  margin: 1rem auto 2rem;
  padding: 1.15rem;
  color: #172033;
  background: linear-gradient(145deg, #eef2ff, #ecfeff);
  border: 2px solid #a5b4fc;
  border-radius: 20px;
}

.mc-community-app-overview > header p,
.mc-community-app-overview > header h2,
.mc-community-app-overview > header span {
  margin: 0;
}

.mc-community-app-overview > header p {
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-community-app-overview > header h2 {
  margin: 0.25rem 0 0.35rem;
  color: #312e81;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 950;
}

.mc-community-app-overview > header span {
  color: #475569;
  line-height: 1.55;
}

.mc-community-app-overview > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.mc-community-app-overview article {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(49, 46, 129, 0.08);
}

.mc-community-app-overview article > span {
  width: fit-content;
  padding: 0.22rem 0.5rem;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.mc-community-app-overview h3,
.mc-community-app-overview p {
  margin: 0;
}

.mc-community-app-overview h3 {
  color: #312e81;
  font-size: 1.05rem;
  font-weight: 900;
}

.mc-community-app-overview p {
  color: #556274;
  line-height: 1.5;
}

.mc-community-app-overview strong {
  color: #7c2d12;
  font-size: 0.82rem;
}

.mc-community-app-overview a {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.55rem 0.75rem;
  color: #fff;
  background: #4338ca;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
}

.mc-community-app-overview a:hover,
.mc-community-app-overview a:focus-visible {
  background: #0f766e;
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

.mc-community-route-content {
  display: grid;
  width: min(100% - 2rem, 72rem);
  min-height: calc(100dvh - 6rem);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  margin: 1rem auto 2.5rem;
  color: #172033;
}

.mc-community-route-content > [data-compact-panel].is-active {
  min-height: 0;
  align-self: stretch;
  overflow: auto;
  overscroll-behavior: contain;
}

.mc-community-route-hero {
  display: grid;
  gap: 0.55rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  color: #ffffff;
  background: linear-gradient(135deg, #312e81, #6d28d9 58%, #0f766e);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(49, 46, 129, 0.2);
}

.mc-community-route-hero p,
.mc-community-route-hero h1,
.mc-community-route-hero h2,
.mc-community-route-hero span {
  margin: 0;
}

.mc-community-route-hero p {
  color: #ddd6fe;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-community-route-hero h1,
.mc-community-route-hero h2 {
  color: #ffffff;
  font-size: clamp(1.7rem, 5vw, 2.65rem);
  font-weight: 900;
  line-height: 1.08;
}

.mc-community-route-hero span {
  max-width: 54rem;
  color: #f5f3ff;
  font-size: 1.02rem;
  line-height: 1.65;
}

.mc-community-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.mc-community-content-meta strong,
.mc-community-content-meta span {
  width: fit-content;
  padding: 0.3rem 0.55rem;
  color: #312e81;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.mc-community-content-meta strong {
  color: #134e4a;
  background: #ccfbf1;
  font-weight: 900;
}

.mc-community-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.mc-community-info-grid article {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 0.55rem;
  padding: 1.15rem;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(49, 46, 129, 0.08);
}

.mc-community-info-grid article > span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: #ffffff;
  background: #6d28d9;
  border-radius: 999px;
  font-weight: 900;
}

.mc-community-info-grid h3,
.mc-community-info-grid p {
  margin: 0;
}

.mc-community-info-grid h3 {
  color: #312e81;
  font-size: 1.05rem;
  font-weight: 900;
}

.mc-community-info-grid p {
  color: #556274;
  line-height: 1.55;
}

.mc-community-examples {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  background: linear-gradient(135deg, #fff7ed, #fefce8);
  border: 2px solid #fdba74;
  border-radius: 18px;
}

.mc-community-examples-heading p,
.mc-community-examples-heading h3,
.mc-community-examples-heading span {
  margin: 0;
}

.mc-community-examples-heading p {
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-community-examples-heading h3 {
  margin: 0.2rem 0 0.3rem;
  color: #7c2d12;
  font-size: 1.25rem;
  font-weight: 900;
}

.mc-community-examples-heading span {
  color: #854d0e;
  line-height: 1.5;
}

.mc-community-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.mc-community-example-grid article {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(154, 52, 18, 0.08);
}

.mc-community-example-grid h4,
.mc-community-example-grid p {
  margin: 0;
}

.mc-community-example-grid h4 {
  color: #7c2d12;
  font-size: 1.02rem;
  font-weight: 900;
}

.mc-community-example-grid strong {
  color: #9a3412;
  font-size: 0.82rem;
}

.mc-community-example-grid p {
  color: #57534e;
  line-height: 1.5;
}

.mc-community-example-label {
  width: fit-content;
  padding: 0.25rem 0.5rem;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mc-community-example-grid button {
  min-height: 2.6rem;
  margin-top: auto;
  padding: 0.5rem 0.7rem;
  color: #9a3412;
  background: #fff7ed;
  border: 2px solid #fb923c;
  border-radius: 10px;
  font-weight: 850;
  cursor: pointer;
}

.mc-community-example-grid button:hover,
.mc-community-example-grid button:focus-visible,
.mc-community-example-grid button.is-saved {
  color: #fff;
  background: #c2410c;
  border-color: #c2410c;
  outline: 3px solid #fde047;
  outline-offset: 2px;
}

.mc-community-examples output {
  min-height: 1.4rem;
  color: #7c2d12;
  font-weight: 800;
}

.mc-community-plan {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #f5f3ff;
  border: 2px solid #c4b5fd;
  border-radius: 18px;
}

.mc-community-plan > div:first-child {
  align-self: center;
}

.mc-community-plan p,
.mc-community-plan h3,
.mc-community-plan span {
  margin: 0;
}

.mc-community-plan p {
  color: #6d28d9;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mc-community-plan h3 {
  margin: 0.2rem 0 0.35rem;
  color: #312e81;
  font-size: 1.35rem;
  font-weight: 900;
}

.mc-community-plan > div:first-child > span {
  display: block;
  color: #5f536a;
  line-height: 1.5;
}

.mc-community-plan-tasks {
  display: grid;
  gap: 0.55rem;
}

.mc-community-plan-tasks label {
  display: flex;
  min-height: 3rem;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 11px;
  cursor: pointer;
}

.mc-community-plan-tasks label:has(input:checked) {
  background: #ecfdf3;
  border-color: #86efac;
}

.mc-community-plan-tasks input {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  accent-color: #6d28d9;
}

.mc-community-plan-tasks span {
  color: #312e81;
  font-weight: 750;
  line-height: 1.4;
}

.mc-community-plan-progress {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid #d8ccfa;
}

.mc-community-plan-progress output {
  color: #4c1d95;
  font-weight: 850;
}

.mc-community-plan-progress button {
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  color: #4c1d95;
  background: #ffffff;
  border: 1px solid #a78bfa;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.mc-community-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mc-community-route-actions a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  color: #312e81;
  background: #ffffff;
  border: 2px solid #c4b5fd;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
}

.mc-community-route-actions a.primary {
  color: #ffffff;
  background: #5b21b6;
  border-color: #5b21b6;
}

.mc-community-route-actions a:hover,
.mc-community-route-actions a:focus-visible {
  color: #ffffff;
  background: #312e81;
  border-color: #312e81;
  outline: 3px solid #f4cf72;
  outline-offset: 2px;
}

[data-mc-community-control-ready="true"][role="button"] {
  outline: none;
  cursor: pointer;
}

[data-mc-community-control-ready="true"][role="button"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3);
}

.mc-community-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  padding: 0.45rem 0.75rem;
  color: #3730a3;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

body.mc-community-detail-open {
  overflow: hidden;
}

.mc-community-detail-overlay {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: grid;
  place-items: stretch;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
}

.mc-community-detail-dialog {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  color: #172033;
  background: #f8fafc;
}

.mc-community-detail-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #3730a3, #0f766e);
}

.mc-community-detail-dialog > header p,
.mc-community-detail-dialog > header h2 {
  margin: 0;
}

.mc-community-detail-dialog > header p {
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
}

.mc-community-detail-dialog > header h2 {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 900;
}

.mc-community-detail-dialog [data-community-detail-close] {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}

.mc-community-detail-body {
  display: grid;
  width: min(100%, 1100px);
  gap: 1rem;
  margin: 0 auto;
  padding: 1.25rem;
  overflow: auto;
}

.mc-community-detail-summary,
.mc-community-detail-steps,
.mc-community-detail-progress {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.07);
}

.mc-community-detail-summary h3,
.mc-community-detail-steps > h3 {
  margin: 0 0 0.65rem;
  color: #312e81;
  font-size: 1.05rem;
  font-weight: 900;
}

.mc-community-detail-summary p,
.mc-community-detail-summary ul {
  margin-top: 0;
  line-height: 1.6;
}

.mc-community-detail-summary ul {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.mc-community-detail-steps > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.mc-community-detail-steps article {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.9rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
}

.mc-community-detail-steps article > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  background: #4338ca;
  border-radius: 50%;
  font-weight: 900;
}

.mc-community-detail-steps h4,
.mc-community-detail-steps p {
  margin: 0;
}

.mc-community-detail-steps p {
  color: #475569;
  line-height: 1.5;
}

.mc-community-detail-steps label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: #312e81;
  font-weight: 800;
  cursor: pointer;
}

.mc-community-detail-steps input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  accent-color: #4338ca;
}

.mc-community-detail-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mc-community-detail-progress output {
  color: #312e81;
  font-weight: 850;
}

.mc-community-detail-progress button {
  min-height: 2.6rem;
  padding: 0.5rem 0.8rem;
  color: #3730a3;
  background: #fff;
  border: 2px solid #a5b4fc;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.mc-community-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-bottom: 1.5rem;
}

.mc-community-detail-actions a {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  color: #312e81;
  background: #fff;
  border: 2px solid #a5b4fc;
  border-radius: 11px;
  font-weight: 850;
  text-decoration: none;
}

.mc-community-detail-actions a.primary {
  color: #fff;
  background: #4338ca;
  border-color: #4338ca;
}

.mc-community-detail-actions a:hover,
.mc-community-detail-actions a:focus-visible,
.mc-community-detail-progress button:hover,
.mc-community-detail-progress button:focus-visible {
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .mc-compact-panel-nav > div {
    display: none;
  }

  .mc-compact-panel-nav label {
    display: flex;
    width: 100%;
  }

  .mc-compact-panel-nav select {
    min-width: 0;
    flex: 1;
  }

  .mc-account-delete-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .mc-account-navbar nav {
    gap: 0.6rem;
    padding-inline: 0.7rem;
  }

  .mc-account-navbar__brand small {
    display: none;
  }

  .mc-account-navbar__actions {
    gap: 0.35rem;
  }

  .mc-community-info-grid,
  .mc-community-example-grid,
  .mc-community-plan {
    grid-template-columns: 1fr;
  }

  .mc-community-app-overview > div {
    grid-template-columns: 1fr;
  }

  .mc-community-plan-progress {
    align-items: stretch;
    flex-direction: column;
  }

  .mc-community-route-actions {
    display: grid;
  }

  .mc-community-detail-steps > div {
    grid-template-columns: 1fr;
  }

  .mc-community-detail-progress {
    align-items: stretch;
    flex-direction: column;
  }

  .mc-community-detail-actions {
    display: grid;
  }

  .mc-music-examples > div,
  .mc-music-pads > div {
    grid-template-columns: 1fr 1fr;
  }

  .mc-music-sequencer-heading {
    flex-direction: column;
  }

  .mc-music-sequencer-heading label {
    width: 100%;
  }

  .mc-art-studio-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .mc-art-studio-panel .mc-paint-toolbar {
    grid-row: auto;
    max-height: 12rem;
  }

  .mc-art-studio-panel .mc-paint-canvas {
    max-height: calc(100dvh - 25rem);
  }

  .mc-kids-activity-visual {
    grid-template-columns: 1fr;
  }

  .mc-kids-activity-visual > div,
  .mc-kids-activity-visual.is-compact > div {
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  .mc-kids-return-bar {
    top: 3.5rem;
    min-height: 3.2rem;
    padding: 0.35rem 0.65rem;
  }

  .mc-kids-return-bar > span {
    display: none;
  }

  .mc-kids-return-bar > a {
    width: 100%;
    justify-content: center;
  }

  .mc-global-language {
    gap: 0.1rem;
    padding-left: 0.3rem;
  }

  .mc-global-language > span,
  .mc-global-language > strong {
    display: none;
  }

  .mc-account-navbar__brand strong {
    font-size: 0.84rem;
  }

  .mc-account-navbar__logout {
    padding-inline: 0.6rem;
    font-size: 0.76rem;
  }

  [data-mc-login-back] {
    top: max(0.65rem, env(safe-area-inset-top));
    left: max(0.65rem, env(safe-area-inset-left));
    min-height: 2.5rem;
    padding: 0.5rem 0.7rem;
  }

  [data-mc-login-back] strong {
    font-size: 0.78rem;
  }

  .mc-kids-game-dialog {
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .mc-kids-game-body {
    padding: 1rem;
  }

  .mc-memory-grid button {
    min-height: 60px;
    font-size: 1.45rem;
  }

  .mc-puzzle-pictures,
  .mc-puzzle-levels {
    grid-template-columns: 1fr;
  }

  .mc-jigsaw-layout {
    grid-template-columns: 1fr;
  }

  .mc-puzzle-pictures button {
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 0.65rem;
    align-items: center;
    text-align: left;
  }

  .mc-puzzle-pictures button > span {
    grid-row: span 2;
    margin: 0;
  }

  .mc-paint-tools button {
    flex: 1 1 42%;
  }

  .mc-kids-game-dialog > header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  .mc-kids-game-dialog > header > div > span {
    font-size: 1.5rem;
  }

  .mc-kids-game-back span {
    display: none;
  }

  .mc-kids-activity-switcher {
    width: calc(100% - 3.5rem);
    min-width: 0;
    order: 3;
    margin-left: 0;
  }

  .mc-kids-activity-switcher > span {
    display: none;
  }

  .mc-community-detail-dialog [data-community-detail-close] span {
    display: none;
  }

  .mc-kids-activity-answers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.mc-platform-ready header a,
  body.mc-platform-ready header button,
  body.mc-platform-ready nav a,
  body.mc-platform-ready nav button,
  body.mc-platform-ready footer a,
  body.mc-platform-ready footer button,
  body.mc-platform-ready a[role="button"],
  body.mc-platform-ready button {
    min-height: 2.75rem;
  }

  body.mc-admin-page main {
    min-width: 0;
  }

  body.mc-admin-page table {
    min-width: 680px;
  }

  body.mc-admin-page [data-slot="card-content"],
  body.mc-admin-page .p-6 {
    padding: 1rem;
  }

  body.mc-admin-page [data-platform-breadcrumbs] {
    overflow-x: auto;
    white-space: nowrap;
  }

  .mc-mvp-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

/* Full, colorful and easy-to-navigate kids game experience */
body.mc-kids-games-route [data-mc-game-ready] {
  --mc-game-accent: #7c3aed;
  --mc-game-soft: #f3e8ff;
  display: flex;
  min-height: 240px;
  border-color: var(--mc-game-accent);
  background: linear-gradient(155deg, #fff 0 62%, var(--mc-game-soft) 100%);
}

body.mc-kids-games-route [data-mc-game-ready="patterns"] {
  --mc-game-accent: #0f766e;
  --mc-game-soft: #ccfbf1;
}

body.mc-kids-games-route [data-mc-game-ready="memory"] {
  --mc-game-accent: #7c3aed;
  --mc-game-soft: #ede9fe;
}

body.mc-kids-games-route [data-mc-game-ready="math"] {
  --mc-game-accent: #c2410c;
  --mc-game-soft: #ffedd5;
}

body.mc-kids-games-route [data-mc-game-ready="words"] {
  --mc-game-accent: #1d4ed8;
  --mc-game-soft: #dbeafe;
}

body.mc-kids-games-route [data-mc-game-ready="geography"] {
  --mc-game-accent: #15803d;
  --mc-game-soft: #dcfce7;
}

body.mc-kids-games-route [data-mc-game-ready="creative"] {
  --mc-game-accent: #be185d;
  --mc-game-soft: #fce7f3;
}

body.mc-kids-games-route [data-mc-game-ready] [data-loc="client/src/pages/apps/KidsSubPage.tsx:67"] {
  display: flex;
  width: 100%;
  flex-direction: column;
}

body.mc-kids-games-route [data-mc-game-ready] [data-loc="client/src/pages/apps/KidsSubPage.tsx:68"] {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  place-items: center;
  margin-bottom: 0.85rem;
  background: #fff;
  border: 3px solid var(--mc-game-accent);
  border-radius: 24px;
  box-shadow: 0 7px 0 color-mix(in srgb, var(--mc-game-accent) 18%, transparent);
  filter: none;
  font-size: 2.75rem;
}

body.mc-kids-games-route [data-mc-game-ready]:focus-visible {
  outline: 5px solid #facc15;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px #1e3a8a, 0 18px 34px rgba(76, 29, 149, 0.18);
}

body.mc-kids-games-route [data-mc-game-ready] .mc-kids-game-action {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--mc-game-accent);
  border-radius: 14px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--mc-game-accent) 35%, #1f2937);
}

.mc-kids-game-overlay {
  --mc-game-accent: #7c3aed;
  --mc-game-accent-2: #4f46e5;
  --mc-game-soft: #f5f3ff;
}

.mc-kids-game-overlay[data-mc-kids-game-dialog="patterns"] {
  --mc-game-accent: #0f766e;
  --mc-game-accent-2: #0891b2;
  --mc-game-soft: #ecfeff;
}

.mc-kids-game-overlay[data-mc-kids-game-dialog="memory"] {
  --mc-game-accent: #7c3aed;
  --mc-game-accent-2: #db2777;
  --mc-game-soft: #faf5ff;
}

.mc-kids-game-overlay[data-mc-kids-game-dialog="math"] {
  --mc-game-accent: #c2410c;
  --mc-game-accent-2: #f59e0b;
  --mc-game-soft: #fff7ed;
}

.mc-kids-game-overlay[data-mc-kids-game-dialog="words"] {
  --mc-game-accent: #1d4ed8;
  --mc-game-accent-2: #0891b2;
  --mc-game-soft: #eff6ff;
}

.mc-kids-game-overlay[data-mc-kids-game-dialog="geography"] {
  --mc-game-accent: #15803d;
  --mc-game-accent-2: #0f766e;
  --mc-game-soft: #f0fdf4;
}

.mc-kids-game-overlay[data-mc-kids-game-dialog="creative"] {
  --mc-game-accent: #be185d;
  --mc-game-accent-2: #ea580c;
  --mc-game-soft: #fff1f2;
}

.mc-kids-game-dialog > header {
  flex: 0 0 auto;
  padding: 0.85rem clamp(0.85rem, 2vw, 1.5rem);
  background: linear-gradient(125deg, var(--mc-game-accent), var(--mc-game-accent-2));
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.mc-kids-game-heading {
  min-width: 0;
}

.mc-kids-game-dialog > header .mc-kids-game-heading-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(15, 23, 42, 0.18);
  font-size: 2rem;
}

.mc-kids-game-heading > div {
  min-width: 0;
}

.mc-kids-game-heading p {
  margin: 0 0 0.1rem;
  opacity: 0.88;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mc-kids-game-heading [data-game-description] {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.mc-kids-game-dialog [data-game-close] {
  min-height: 48px;
  flex: 0 0 auto;
  padding-inline: 1rem;
  background: #fff;
  color: var(--mc-game-accent);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.18);
}

.mc-kids-game-nav {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 0.55rem clamp(0.75rem, 2vw, 1.5rem) 0.65rem;
  background: #fff;
  border-bottom: 3px solid color-mix(in srgb, var(--mc-game-accent) 25%, #e5e7eb);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

.mc-kids-game-nav > p {
  margin: 0 0 0.35rem;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mc-kids-game-nav-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.mc-kids-game-nav-button {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.6rem;
  color: #334155;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.mc-kids-game-nav-button > span {
  font-size: 1.65rem;
  line-height: 1;
}

.mc-kids-game-nav-button > strong {
  overflow: hidden;
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  line-height: 1.15;
  text-align: left;
  text-overflow: ellipsis;
}

.mc-kids-game-nav-button:hover {
  transform: translateY(-2px);
  border-color: var(--mc-game-accent);
}

.mc-kids-game-nav-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--mc-game-accent), var(--mc-game-accent-2));
  border-color: var(--mc-game-accent);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--mc-game-accent) 35%, #334155);
}

.mc-kids-game-body {
  width: 100%;
  max-width: none;
  padding: clamp(1rem, 3vw, 2rem);
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--mc-game-accent-2) 10%, transparent) 0 80px, transparent 81px),
    linear-gradient(180deg, var(--mc-game-soft), #fff 60%);
}

.mc-kids-game-body > * {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.mc-kids-game-overlay[data-mc-kids-game-dialog="math"] .mc-kids-game-body > *,
.mc-kids-game-overlay[data-mc-kids-game-dialog="words"] .mc-kids-game-body > *,
.mc-kids-game-overlay[data-mc-kids-game-dialog="geography"] .mc-kids-game-body > * {
  max-width: 820px;
}

.mc-kids-game-status {
  padding: 1rem 1.25rem;
  background: #fff;
  border: 3px solid color-mix(in srgb, var(--mc-game-accent) 35%, #fff);
  box-shadow: 0 7px 0 color-mix(in srgb, var(--mc-game-accent) 13%, transparent);
}

.mc-kids-game-status strong {
  color: var(--mc-game-accent);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.mc-memory-grid button,
.mc-kids-quiz-options button,
.mc-kids-game-reset,
.mc-kids-game-next,
.mc-puzzle-back,
.mc-puzzle-pictures button,
.mc-puzzle-levels button,
.mc-paint-tools button {
  min-height: 48px;
}

.mc-memory-grid button {
  border-color: var(--mc-game-accent);
  background: linear-gradient(145deg, var(--mc-game-accent), var(--mc-game-accent-2));
  box-shadow: 0 5px 0 color-mix(in srgb, var(--mc-game-accent) 30%, #334155);
}

.mc-kids-game-reset,
.mc-kids-game-next {
  padding: 0.75rem 1.25rem;
  background: var(--mc-game-accent);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--mc-game-accent) 35%, #334155);
  font-size: 1rem;
}

.mc-kids-quiz-progress {
  height: 0.85rem;
  background: color-mix(in srgb, var(--mc-game-accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--mc-game-accent) 20%, #fff);
}

.mc-kids-quiz-progress span {
  background: linear-gradient(90deg, var(--mc-game-accent), var(--mc-game-accent-2));
}

.mc-kids-quiz-options button {
  padding: 0.85rem 1rem;
  border-width: 3px;
  border-color: color-mix(in srgb, var(--mc-game-accent) 26%, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.08);
  font-size: 1.05rem;
}

.mc-kids-quiz-options button:hover,
.mc-kids-quiz-options button:focus-visible {
  border-color: var(--mc-game-accent);
}

.mc-kids-game-overlay button:focus-visible,
.mc-kids-game-overlay input:focus-visible,
.mc-kids-game-overlay select:focus-visible,
.mc-kids-game-overlay canvas:focus-visible {
  outline: 4px solid #facc15;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px #1e3a8a;
}

@media (min-width: 761px) and (max-width: 1000px) {
  .mc-kids-game-nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mc-kids-game-nav-button {
    min-height: 54px;
  }
}

@media (max-width: 760px) {
  .mc-kids-game-dialog > header {
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.65rem 0.75rem;
  }

  .mc-kids-game-dialog > header .mc-kids-game-heading-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
    font-size: 1.65rem;
  }

  .mc-kids-game-dialog h2 {
    font-size: 1.05rem;
  }

  .mc-kids-game-heading [data-game-description] {
    display: none;
  }

  .mc-kids-game-nav {
    padding-inline: 0.65rem;
  }

  .mc-kids-game-nav-list {
    grid-auto-columns: minmax(145px, 45vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    padding: 0 0.15rem 0.35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
  }

  .mc-kids-game-nav-button {
    min-height: 58px;
    scroll-snap-align: start;
  }

  .mc-kids-game-body {
    padding: 1rem 0.75rem 2rem;
  }
}

@media (max-width: 420px) {
  body.mc-kids-games-route [data-mc-game-ready] {
    min-height: 220px;
  }

  .mc-memory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
  }

  .mc-memory-grid button {
    min-height: 72px;
  }

  .mc-kids-game-nav > p,
  .mc-kids-game-heading p {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mc-kids-games-route [data-mc-game-ready],
  .mc-kids-game-nav-button,
  .mc-memory-grid button,
  .mc-kids-quiz-options button {
    scroll-behavior: auto;
    transition: none;
  }
}
