html:has(.mc-app), body:has(.mc-app) { overflow-x: clip; }
body:has(.mc-app) .wp-site-blocks > header.wp-block-template-part,
body:has(.mc-app) .wp-site-blocks > footer.wp-block-template-part,
body:has(.mc-app) .wp-block-post-title { display: none; }
body:has(.mc-app) .wp-site-blocks,
body:has(.mc-app) .wp-site-blocks > main { padding: 0 !important; }
body:has(.mc-app) .wp-site-blocks > main,
body:has(.mc-app) .wp-block-post-content { margin-block: 0 !important; }
.mc-app, .mc-app * { box-sizing: border-box; }
.mc-app {
  --mc-blue: #087bc4;
  --mc-navy: #123986;
  --mc-yellow: #ffc532;
  --mc-red: #ef3423;
  --mc-ink: #10233e;
  --mc-muted: #627087;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mc-ink);
  position: relative;
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: linear-gradient(180deg, #fff4b8 0, #fffdf3 34%, #f5f8fc 100%);
}
.mc-banner {
  position: relative;
  width: 100%;
  background: var(--mc-yellow);
  box-shadow: 0 12px 42px rgba(109, 77, 0, .2);
  z-index: 2;
}
.mc-banner::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -15px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ff9d18, #fff2a8 38%, #ffb515);
  filter: blur(.2px);
}
.mc-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.mc-content {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 20px 78px;
}
.mc-content::before,
.mc-content::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .32;
  pointer-events: none;
}
.mc-content::before { width: 380px; height: 380px; background: #ffd84d; top: 80px; left: -300px; }
.mc-content::after { width: 320px; height: 320px; background: #9fd7f5; top: 330px; right: -270px; }
.mc-content > * { position: relative; z-index: 1; }
.mc-hero { text-align: center; max-width: 700px; margin: 0 auto 30px; }
.mc-eyebrow { display: inline-block; color: var(--mc-blue); font-size: 13px; font-weight: 900; letter-spacing: .18em; margin-bottom: 8px; }
.mc-hero h1 { color: var(--mc-navy); font-size: clamp(32px, 5vw, 56px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 16px; font-weight: 950; text-shadow: 0 2px 0 rgba(255,255,255,.8); }
.mc-hero p { color: var(--mc-muted); font-size: 17px; line-height: 1.6; margin: 0; }
.mc-register { max-width: 660px; margin: 0 auto 28px; padding: clamp(24px, 5vw, 42px); border: 2px solid rgba(8,123,196,.14); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 22px 60px rgba(14,51,105,.14), 0 5px 0 rgba(255,197,50,.65); text-align: center; }
.mc-register[hidden], .mc-card[hidden], .mc-profile-form[hidden], .mc-register-intro[hidden] { display: none !important; }
.mc-register-badge { display: inline-block; margin-bottom: 8px; color: var(--mc-blue); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.mc-register h2 { margin: 0 0 10px; color: var(--mc-navy); font-size: clamp(26px, 4vw, 38px); line-height: 1.08; }
.mc-register-intro > p { max-width: 510px; margin: 0 auto 22px; color: var(--mc-muted); line-height: 1.55; }
.mc-google-button { display: flex; justify-content: center; min-height: 44px; }
.mc-register-status { min-height: 20px; margin: 12px 0 0; color: var(--mc-muted); font-size: 13px; }
.mc-register-status.is-error, .mc-location-row .is-error { color: #b42318; }
.mc-register-status.is-success, .mc-location-row .is-success { color: #15803d; }
.mc-profile-form { display: grid; gap: 18px; text-align: left; }
.mc-google-profile { display: flex; align-items: center; gap: 13px; padding: 13px; border-radius: 14px; background: #f4f8fc; }
.mc-google-profile img { flex: 0 0 54px; border-radius: 50%; object-fit: cover; }
.mc-google-profile strong, .mc-google-profile span { display: block; }
.mc-google-profile span { margin-top: 3px; color: var(--mc-muted); font-size: 13px; }
.mc-field span { display: block; margin-bottom: 7px; color: var(--mc-ink); font-size: 13px; font-weight: 800; }
.mc-field input { width: 100%; min-height: 48px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 13px; color: var(--mc-ink); background: #fff; font: inherit; }
.mc-field input:focus { outline: 3px solid rgba(8,123,196,.16); border-color: var(--mc-blue); }
.mc-location-row { display: flex; align-items: center; gap: 13px; }
.mc-location-row span { color: var(--mc-muted); font-size: 12px; line-height: 1.35; }
.mc-location-button { flex: 0 0 auto; min-height: 44px; border: 1px solid #b9c7d8; border-radius: 10px; padding: 9px 14px; color: var(--mc-navy); background: #f7fafc; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.mc-location-button:disabled { opacity: .65; cursor: wait; }
.mc-consent { display: flex; align-items: flex-start; gap: 10px; color: #46576d; font-size: 12px; line-height: 1.5; }
.mc-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--mc-blue); }
.mc-register-submit { min-height: 52px; border: 0; border-radius: 10px; padding: 12px 18px; color: #fff; background: linear-gradient(135deg, var(--mc-blue), var(--mc-navy)); font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; box-shadow: 0 8px 22px rgba(8,120,201,.24), 0 3px 0 #e8a700; }
.mc-register-submit:disabled { opacity: .7; cursor: wait; }
.mc-card { background: #fff; border: 2px solid rgba(8,123,196,.14); border-radius: 24px; box-shadow: 0 26px 80px rgba(14, 51, 105, .16), 0 6px 0 rgba(255,197,50,.65); overflow: hidden; }
.mc-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e5eaf0; background: #f8fafc; }
.mc-tab { position: relative; appearance: none; border: 0; background: transparent; color: #718096; min-height: 82px; padding: 14px 20px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.mc-tab:first-child { border-right: 1px solid #e5eaf0; }
.mc-tab small { display: block; font-size: 11px; font-weight: 600; margin-top: 2px; }
.mc-tab.is-active { color: var(--mc-navy); background: linear-gradient(180deg, #fffdf5, #fff); }
.mc-tab.is-active::after { content: ""; position: absolute; height: 4px; background: linear-gradient(90deg, var(--mc-yellow), #ff9d16); left: 0; right: 0; bottom: -1px; }
.mc-tab-icon { display: inline-block; vertical-align: -4px; width: 19px; height: 19px; border: 2px solid currentColor; border-radius: 4px; margin-right: 7px; }
.mc-tab-icon--stories { width: 12px; border-radius: 3px; }
.mc-workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 620px; }
.mc-sidebar { padding: 30px; border-right: 1px solid #e7ebf0; background: #fbfcfd; }
.mc-step { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.mc-step > span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; color: #fff; background: linear-gradient(145deg, var(--mc-blue), var(--mc-navy)); border-radius: 50%; font-size: 13px; font-weight: 850; box-shadow: 0 3px 0 rgba(255,197,50,.9); }
.mc-step strong, .mc-step small { display: block; }
.mc-step strong { font-size: 14px; line-height: 1.3; }
.mc-step small { color: #8a96a7; font-size: 11px; margin-top: 2px; }
.mc-step--upload { margin-top: 28px; }
.mc-frame-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mc-frame-option { appearance: none; border: 2px solid transparent; padding: 5px; border-radius: 10px; background: #fff; cursor: pointer; color: var(--mc-ink); font: inherit; transition: .2s; }
.mc-frame-option span { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background-color: #eef2f5; background-image: linear-gradient(45deg,#e1e6ea 25%,transparent 25%),linear-gradient(-45deg,#e1e6ea 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e1e6ea 75%),linear-gradient(-45deg,transparent 75%,#e1e6ea 75%); background-size: 12px 12px; background-position: 0 0,0 6px,6px -6px,-6px 0; }
.mc-frame-option img { width: 100%; height: 100%; display: block; object-fit: contain; }
.mc-frame-option small { display: block; padding: 6px 2px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.mc-frame-option:hover { border-color: #b5d8ef; }
.mc-frame-option.is-selected { border-color: var(--mc-blue); box-shadow: 0 0 0 3px rgba(8,120,201,.1); }
.mc-upload { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; padding: 12px 16px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--mc-blue), var(--mc-navy)); font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 8px 20px rgba(8,120,201,.25), 0 3px 0 #f1af00; transition: .2s; }
.mc-upload:hover { filter: brightness(1.06); transform: translateY(-1px); }
.mc-upload svg, .mc-download svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc-privacy { display: flex; align-items: flex-start; gap: 7px; color: #8793a3; font-size: 10px; line-height: 1.4; margin: 10px 2px 0; }
.mc-privacy svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mc-editor { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 34px clamp(24px, 5vw, 70px); background: radial-gradient(circle at 50% 30%, #fff 0, #f6f8fb 72%); }
.mc-canvas-wrap { position: relative; width: min(100%, 470px); aspect-ratio: 1; overflow: hidden; border-radius: 5px; background-color: #e7ebef; background-image: linear-gradient(45deg,#d9dee3 25%,transparent 25%),linear-gradient(-45deg,#d9dee3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9dee3 75%),linear-gradient(-45deg,transparent 75%,#d9dee3 75%); background-size: 24px 24px; background-position: 0 0,0 12px,12px -12px,-12px 0; box-shadow: 0 12px 40px rgba(21,45,77,.16); transition: aspect-ratio .25s ease, max-width .25s ease; }
.mc-canvas-wrap:has(canvas[height="1920"]) { width: min(100%, 290px); }
.mc-canvas-wrap canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.mc-canvas-wrap canvas.is-dragging { cursor: grabbing; }
.mc-empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; text-align: center; pointer-events: none; background: rgba(244,247,249,.83); color: #6f7f92; }
.mc-empty[hidden] { display: none; }
.mc-empty svg { width: 48px; height: 48px; margin-bottom: 14px; fill: none; stroke: #9aa8b8; stroke-width: 1.4; stroke-linejoin: round; }
.mc-empty strong { color: #485a70; font-size: 15px; }
.mc-empty span { max-width: 250px; font-size: 12px; line-height: 1.5; margin-top: 6px; }
.mc-controls { display: flex; align-items: center; width: min(100%, 470px); margin-top: 18px; padding: 8px 10px; background: #fff; border: 1px solid #e2e7ed; border-radius: 10px; box-shadow: 0 5px 18px rgba(19,44,75,.07); }
.mc-controls[hidden] { display: none; }
.mc-controls button { border: 0; background: transparent; color: #546276; font: inherit; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.mc-controls input { flex: 1; min-width: 60px; accent-color: var(--mc-blue); }
.mc-divider { height: 22px; width: 1px; background: #dfe4e9; margin: 0 5px; }
.mc-controls .mc-control-text { font-size: 15px; white-space: nowrap; }
.mc-controls .mc-control-text span { font-size: 10px; vertical-align: 2px; }
.mc-download { display: flex; justify-content: center; align-items: center; gap: 10px; width: min(100%, 470px); min-height: 54px; margin-top: 16px; padding: 14px 20px; border: 0; border-radius: 9px; color: var(--mc-navy); background: linear-gradient(135deg, #ffe06b, var(--mc-yellow)); font: inherit; font-size: 15px; font-weight: 950; cursor: pointer; box-shadow: 0 10px 25px rgba(234,171,0,.26), 0 3px 0 #e8a700; transition: .2s; }
.mc-download:not(:disabled):hover { background: #ffd557; transform: translateY(-1px); }
.mc-download:disabled { background: #dfe4e8; color: #939ca7; cursor: not-allowed; box-shadow: none; }
.mc-photo-consent { display: flex; align-items: flex-start; gap: 10px; width: min(100%, 470px); margin-top: 16px; color: #46576d; font-size: 12px; line-height: 1.45; }
.mc-photo-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--mc-blue); }
.mc-photo-consent a { color: var(--mc-blue); font-weight: 700; }
.mc-tip.is-error { color: #b42318; font-weight: 700; }
.mc-modal-open { overflow: hidden; }
.mc-save-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 18px; background: rgba(8,24,45,.82); backdrop-filter: blur(5px); }
.mc-save-modal[hidden] { display: none; }
.mc-save-modal__card { position: relative; width: min(100%, 520px); max-height: calc(100vh - 36px); overflow-y: auto; padding: 24px; border-radius: 18px; background: #fff; color: var(--mc-navy); text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.mc-save-modal__card h2 { margin: 0 34px 8px; font-size: 24px; }
.mc-save-modal__card p { margin: 0 0 16px; color: var(--mc-muted); line-height: 1.5; }
.mc-save-modal__card img { display: block; width: min(100%, 360px); max-height: 56vh; margin: 0 auto 16px; border-radius: 10px; object-fit: contain; background: #eef1f4; box-shadow: 0 8px 25px rgba(19,43,71,.15); -webkit-touch-callout: default; user-select: auto; }
.mc-save-modal__close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #34465a; background: #edf1f5; font-size: 27px; line-height: 1; cursor: pointer; }
.mc-save-modal__share, .mc-save-modal__done { display: block; width: min(100%, 360px); min-height: 48px; margin: 10px auto 0; border: 0; border-radius: 10px; padding: 12px 16px; font: inherit; font-weight: 850; cursor: pointer; }
.mc-save-modal__share { color: #fff; background: var(--mc-blue); }
.mc-save-modal__done { color: var(--mc-navy); background: #edf1f5; }
.mc-tip { color: #8a95a3; font-size: 10px; margin: 9px 0 0; }

@media (max-width: 760px) {
  .mc-content { padding: 42px 12px 52px; }
  .mc-banner { min-height: 175px; overflow: hidden; }
  .mc-banner img { width: auto; max-width: none; height: 175px; position: relative; left: 50%; transform: translateX(-50%); }
  .mc-hero p { font-size: 15px; }
  .mc-register { padding: 24px 18px; border-radius: 18px; }
  .mc-location-row { align-items: stretch; flex-direction: column; }
  .mc-workspace { display: flex; flex-direction: column; }
  .mc-sidebar { padding: 22px; border-right: 0; border-bottom: 1px solid #e7ebf0; }
  .mc-frame-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mc-step--upload { margin-top: 22px; }
  .mc-editor { padding: 28px 18px 34px; }
  .mc-tab { min-height: 72px; }
}

@media (max-width: 430px) {
  .mc-hero h1 { font-size: 34px; }
  .mc-card { border-radius: 16px; }
  .mc-controls .mc-control-text span { display: none; }
}
