/* Shared by the signup funnel (funnel.css) and the old registration styles (users/registrations.css). */
/* Design previews: the user's name is drawn over a static 246x493 image.
   --x / --y / --size are in source-image pixels and converted to percentages so the
   name scales with the image. --nudge is a small per-font correction measured against
   the old Cloudinary text overlay. */

.design-preview {position: relative;display: inline-block;width: 246px;max-width: 100%;container-type: inline-size;}
.design-preview img {display: block;width: 100%;height: auto;}
.design-preview__name {
	--nudge: 0;
	position: absolute;
	top: calc((var(--y) + var(--nudge)) / 493 * 100%);
	/* Softer than the old overlay's 1:1 values (#000, full --size): browser text is
	   crisper than the baked-in overlay was, so it read too heavy next to the mockup. */
	color: #444;
	font-family: 'Open Sans', sans-serif;
	font-size: calc((var(--size) - 2) * var(--fit) * 1px);
	font-size: calc((var(--size) - 2) * var(--fit) / 246 * 100cqw);
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	/* Long names: JS shrinks --fit down to a floor, then the rest is cut with an ellipsis.
	   The padding/negative margin keeps descenders from being clipped by overflow:hidden. */
	--fit: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0.25em 0;
	margin: -0.25em 0;
}
/* On high-DPI screens the 246px design image is upscaled and soft; blur the
   crisp browser text slightly to match it. */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
	.design-preview__name {filter: blur(0.5px);}
}
.design-preview--he .design-preview__name {font-family: 'Heebo', sans-serif;}
/* --max-w: room for the name in source-image px (white card minus padding / up to the share button) */
.design-preview--center .design-preview__name {--max-w: 184;left: calc((246 - var(--max-w)) / 2 / 246 * 100%);right: calc((246 - var(--max-w)) / 2 / 246 * 100%);text-align: center;top: calc((246.5 + var(--y) + var(--nudge)) / 493 * 100%);transform: translateY(-50%);margin: 0;}
/* corner designs keep the name's baseline in place when it shrinks (0.72 ~ cap height) */
.design-preview--corner .design-preview__name {--max-w: 100;--extra-lines: 0;max-width: calc(var(--max-w) / 246 * 100%);top: calc((var(--y) + var(--nudge) + (1 - var(--fit)) * (var(--size) - 2) * 0.72 - var(--extra-lines) * (var(--size) - 2) * var(--fit)) / 493 * 100%);}
/* two lines growing upward, last line on the original baseline (like the real card's .two-lines) */
.design-preview--corner .design-preview__name {text-align: start;}
/* wrap between words only, never at a hyphen inside a name */
.design-preview__word {white-space: nowrap;}
.design-preview--corner .design-preview__name.is-two-lines {--extra-lines: 1;white-space: normal;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;}
.design-preview--en.design-preview--corner .design-preview__name {left: calc(var(--x) / 246 * 100%);}
.design-preview--he.design-preview--corner .design-preview__name {right: calc(var(--x) / 246 * 100%);direction: rtl;}
.design-preview--en.design-preview--center .design-preview__name {--nudge: -1;}
.design-preview--en.design-preview--corner .design-preview__name {--nudge: -1.5;}
.design-preview--he.design-preview--center .design-preview__name {--nudge: 1;}
/*
 * Signup funnel (signup, choose design) and the password pages, on top of marketing.css.
 * Loaded by devise/registrations/_funnel_chrome. Classes are prefixed fn-; tokens come from marketing.css.

 */

/* ---------- Page frame: the sheet fills the screen so short pages keep the footer at the bottom ---------- */

body.mk-page-funnel { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body.mk-page-funnel #mk-main { flex: 1 0 auto; display: flex; flex-direction: column; }
body.mk-page-funnel #mk-main > .fn-body { flex: 1 0 auto; }
/* no "Start free" button in the header here, so the menu button takes its place at the end */
@media (max-width: 1080px) { .mk-page-funnel .mk-menu-btn { margin-inline-start: auto; } }

/* white-label (Forte) header: their logo only */
.fn-wl-logo { display: block; height: 44px; width: auto; }

/* ---------- Dark head: steps, title, lede ---------- */
.fn-head.mk-page-head-photo {
  min-height: 0;
  padding-top: calc(var(--mk-header-h) + clamp(28px, 4vw, 52px));
  padding-bottom: clamp(64px, 7vw, 88px);
}
.fn-head-short.mk-page-head-photo { padding-top: calc(var(--mk-header-h) + clamp(40px, 6vw, 80px)); }
.fn-title { font-size: clamp(32px, 4vw, 52px); text-wrap: balance; }
.fn-head .mk-page-lede { margin-top: 12px; font-size: clamp(17px, 1.4vw, 20px); }

.fn-steps {
  list-style: none; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0;
}
.fn-step { display: flex; align-items: center; gap: 10px; color: var(--mk-text-3); font-size: 14px; font-weight: 500; }
.fn-step + .fn-step::before {
  content: ""; width: clamp(20px, 4vw, 48px); height: 1px; margin-inline: 14px;
  background: var(--mk-line-strong);
}
.fn-step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--mk-line-strong);
  font-size: 13px; font-weight: 600; font-feature-settings: "tnum";
}
.fn-step.is-done { color: var(--mk-text-2); }
.fn-step.is-done .fn-step-num { border-color: transparent; background: var(--mk-blue-soft); color: var(--mk-blue); }
.fn-step.is-done + .fn-step::before { background: var(--mk-blue); opacity: 0.6; }
.fn-step.is-current { color: var(--mk-text); }
.fn-step.is-current .fn-step-num { border-color: var(--mk-blue); background: var(--mk-blue); color: var(--mk-navy); }
@media (max-width: 560px) {
  .fn-step:not(.is-current) .fn-step-label { display: none; }
  .fn-step + .fn-step::before { margin-inline: 10px; }
}

/* ---------- Light sheet ---------- */
.fn-body { padding-bottom: clamp(56px, 8vw, 104px); }
.mk-page-head-photo + .fn-body { padding-top: clamp(40px, 5vw, 64px); }
.fn-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px clamp(32px, 5vw, 72px); align-items: start;
}
@media (max-width: 900px) { .fn-grid { grid-template-columns: minmax(0, 1fr); } }

.fn-card {
  background: var(--mk-raised);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-lg);
  box-shadow: var(--mk-shadow);
  padding: clamp(22px, 3.2vw, 40px);
}

/* ---------- Form ---------- */
.fn-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.fn-form-narrow { max-width: 480px; margin-inline: auto; }
.fn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
@media (max-width: 480px) { .fn-row { grid-template-columns: minmax(0, 1fr); } }
.fn-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fn-field label { margin: 0; font-size: 14px; font-weight: 500; color: var(--mk-text-2); }
.fn-form input[type="text"], .fn-form input[type="email"], .fn-form input[type="tel"],
.fn-form input[type="password"], .fn-form select {
  width: 100%; height: auto; min-height: 50px;
  margin: 0; padding: 13px 16px;
  font: inherit; font-size: 16px; line-height: 1.4;
  color: var(--mk-text);
  caret-color: var(--mk-blue);
  background: var(--mk-ground);
  border: 1px solid var(--mk-line-strong);
  border-radius: 12px;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
/* phone, email and password are typed left to right; keep them aligned with the other fields in RTL */
[dir="rtl"] .fn-form input[dir="ltr"] { text-align: right; }
.fn-form input:focus, .fn-form select:focus { outline: none; border-color: var(--mk-blue); box-shadow: 0 0 0 3px var(--mk-blue-soft); }
.fn-field.is-invalid input, .fn-field.is-invalid select { border-color: #d64545; }
.fn-field.is-invalid input:focus { box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.14); }
.fn-error { color: #c23a3a; font-size: 14px; line-height: 1.4; }
.fn-error:empty { display: none; }
.fn-hint { color: var(--mk-text-3); font-size: 14px; line-height: 1.4; }

.fn-select { position: relative; }
.fn-select select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.fn-select-caret { position: absolute; inset-inline-end: 16px; top: 50%; translate: 0 -50%; color: var(--mk-text-3); pointer-events: none; }

.fn-note { margin: 0; color: var(--mk-text-3); font-size: 14px; line-height: 1.5; }
.fn-note-center { text-align: center; }

/* login page: devise flash (wrong password, signed out...) and the forgot-password link under the field */
.fn-flash {
  padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5;
  background: var(--mk-blue-soft); border: 1px solid rgba(31, 111, 224, 0.25); color: var(--mk-text);
}
.fn-flash-alert, .fn-flash-error { background: rgba(214, 69, 69, 0.07); border-color: rgba(214, 69, 69, 0.25); color: #a82424; }
.fn-forgot { align-self: flex-start; }

/* custom checkbox: the real input stays focusable and clickable on top of the drawn box */
.fn-check { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 0; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--mk-text-2); cursor: pointer; }
.fn-check input { position: absolute; inset-inline-start: 0; top: 1px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.fn-check-box {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-top: 1px; border-radius: 6px;
  background: var(--mk-ground); border: 1px solid var(--mk-line-strong); color: #fff;
  transition: background-color .15s, border-color .15s;
}
.fn-check-box .mk-icon { opacity: 0; transform: scale(0.6); transition: opacity .15s, transform .2s var(--mk-ease); }
.fn-check input:checked + .fn-check-box { background: var(--mk-blue); border-color: var(--mk-blue); }
.fn-check input:checked + .fn-check-box .mk-icon { opacity: 1; transform: none; }
.fn-check input:focus-visible + .fn-check-box { outline: 2px solid var(--mk-blue); outline-offset: 3px; }
.fn-check a { color: var(--mk-blue); text-decoration: underline; text-underline-offset: 3px; }

.fn-captcha:empty { display: none; }
.fn-captcha > div { max-width: 100%; }

.fn-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.fn-actions-center { align-items: center; margin-top: clamp(28px, 4vw, 44px); }
.fn-actions .mk-btn { gap: 10px; }
.fn-actions .mk-btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }

/* devise error list */
.fn-form #error_explanation {
  padding: 14px 16px; border-radius: 12px;
  background: rgba(214, 69, 69, 0.07); border: 1px solid rgba(214, 69, 69, 0.25);
  color: #a82424; font-size: 15px; line-height: 1.5;
}
.fn-form #error_explanation h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: inherit; }
.fn-form #error_explanation ul { margin: 0; padding-inline-start: 18px; }

/* ---------- Signup: beside the form ----------
   Only a filler for the empty space: a tall, pale line drawing (devise/registrations/_side_art) that stretches
   to the form's height and stays quiet - pale strokes, faint fills, no motion. Its lower end fades out. */
.fn-preview { align-self: stretch; display: flex; justify-content: center; padding-block: 8px; }
.fn-art {
  width: 100%; max-width: 420px; height: 100%; max-height: 900px; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
}
.fn-art .a-ring { fill: none; stroke: #e3ebf7; stroke-width: 1.5; }
.fn-art .a-paper, .fn-art .a-dev { fill: #ffffff; stroke: #dbe6f6; stroke-width: 2; }
.fn-art .a-notch, .fn-art .a-line, .fn-art .a-dot { fill: #e6edf8; }
.fn-art .a-cover { fill: #e4eefc; }
.fn-art .a-avatar { fill: #fff3d6; stroke: #ffffff; stroke-width: 6; }
.fn-art .a-ink { fill: #d6e0ef; }
.fn-art .a-btn { fill: #fff0cc; }
.fn-art .a-row { fill: #f3f6fb; }
.fn-art .a-bar { fill: #dbe7f8; }
.fn-art .a-gold { fill: #ffe7b0; }
.fn-art .a-trail { fill: none; stroke: #f5d48a; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.fn-art .a-spark { fill: none; stroke: #f5d48a; stroke-width: 2.5; stroke-linecap: round; }
.fn-art .a-badge { fill: #fff0cc; stroke: #ffffff; stroke-width: 4; }
.fn-art .a-tick { fill: none; stroke: #d9a944; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* phones and narrow tablets: the form alone */
@media (max-width: 900px) { .fn-preview { display: none; } }

/* ---------- Choose design ---------- */
/* two rows, centered: 3 designs on top, 2 under them in the middle (6 columns, each design spans 2) */
.fn-designs {
  margin: 0 auto; padding: 0; border: 0; min-width: 0; max-width: 880px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px);
}
.fn-designs > .fn-design { grid-column: span 2; }
.fn-designs > .fn-design:nth-of-type(4) { grid-column: 2 / span 2; }
.fn-design { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
.fn-design-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.fn-design-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  height: 100%;
  padding: 18px 14px 16px;
  background: var(--mk-raised);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-lg);
  box-shadow: 0 16px 32px -24px rgba(15, 35, 80, 0.25);
  transition: border-color .2s, box-shadow .25s var(--mk-ease), transform .25s var(--mk-ease);
}
.fn-design-shot { display: block; width: 100%; text-align: center; }
.fn-design-shot .design-preview { width: 100%; max-width: 246px; }
.fn-design-name { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--mk-text); }
.fn-radio {
  flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--mk-line-strong); background: var(--mk-raised);
  transition: border-color .2s;
}
.fn-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--mk-blue);
  transform: scale(0); transition: transform .2s var(--mk-ease);
}
@media (hover: hover) {
  .fn-design:hover .fn-design-card { border-color: var(--mk-line-strong); transform: translateY(-3px); box-shadow: var(--mk-shadow); }
}
.fn-design-input:checked + .fn-design-card {
  border-color: var(--mk-blue);
  box-shadow: 0 0 0 3px var(--mk-blue-soft), var(--mk-shadow);
}
.fn-design-input:checked + .fn-design-card .fn-radio { border-color: var(--mk-blue); }
.fn-design-input:checked + .fn-design-card .fn-radio::after { transform: scale(1); }
.fn-design-input:focus-visible + .fn-design-card { outline: 2px solid var(--mk-blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .fn-design-card, .fn-radio::after { transition: none; } }

/* phones: one row that scrolls sideways, a peek of the next design shows there is more */
@media (max-width: 640px) {
  .fn-designs {
    display: flex; gap: 14px;
    margin-inline: calc(var(--mk-gutter) * -1); padding: 6px var(--mk-gutter) 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--mk-gutter);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .fn-designs::-webkit-scrollbar { display: none; }
  .fn-design { flex: 0 0 64%; scroll-snap-align: start; }
  .fn-actions-center .mk-btn { width: 100%; }
}

/* ---------- Step 3 (cards/create_card): new header, photo head with steps + title, and footer around the old React editor ----------
   That page has no body.mk, so the .mk wrappers set the font, and a few rules undo the old registration styles. */
.fn-step3-top, .create-card .mk-footer {
  font-family: var(--mk-font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* the marketing pages get border-box from bootstrap, which this page doesn't load */
.create-card .mk, .create-card .mk *, .create-card .mk *::before, .create-card .mk *::after { box-sizing: border-box; }
/* header + steps scroll away with the page: stuck to the top they'd take ~120px from a long editing form */
.fn-step3-top { position: relative; }

/* while the React part loads: a white card in the place of the editor, with the spinner in its middle
   (the old loader floated in the middle of the screen, right on the edge of the photo head) */
.create-card #app-loader {
  position: relative; left: auto; top: auto; box-sizing: border-box; overflow: hidden;
  width: calc(100% - 2 * var(--mk-gutter)); max-width: var(--mk-wrap); height: min(520px, 60vh);
  margin: clamp(24px, 4vw, 48px) auto clamp(40px, 6vw, 72px);
  background-color: var(--mk-raised); background-repeat: no-repeat; background-position: center; background-size: 72px;
  border: 1px solid var(--mk-line); border-radius: var(--mk-radius-lg); box-shadow: var(--mk-shadow);
}
/* the light sheet rises over the photo head with rounded top corners, as on steps 1-2 (marketing.css "Surfaces");
   the loader takes the sheet's place until React is in */
.create-card #app-wrap > .row-content:first-child, .create-card #app-loader {
  position: relative; z-index: 1; margin-top: -40px; border-radius: 40px 40px 0 0; background-color: var(--mk-ground);
}
.create-card #app-loader { width: 100%; max-width: none; border: 0; box-shadow: none; margin-bottom: 0; }
@media (max-width: 760px) {
  .create-card #app-wrap > .row-content:first-child, .create-card #app-loader { margin-top: -28px; border-radius: 28px 28px 0 0; }
}
/* no "Start free" button here either, so the menu button goes to the end */
@media (max-width: 1080px) { .fn-step3-top .mk-menu-btn { margin-inline-start: auto; } }
/* rtl-registration.css sets body { direction: ltr } (only the React .container is put back to rtl) */
[dir="rtl"] .create-card .mk { direction: rtl; }
.fn-step3-top .mk-lang { display: none; } /* the card's language is already set; the page always follows it */
.create-card .mk a:visited { color: inherit; }
.create-card .mk .mk-logo, .create-card .mk .mk-logo:visited { color: var(--mk-text); }
.create-card .mk .mk-nav-links a:visited, .create-card .mk .mk-footer-links a:visited { color: var(--mk-text-2); }
/* the header floats over the photo head, as on steps 1-2; the head sits in the .mk wrapper, so its photo rules apply */
.fn-step3-top .mk-page-head-photo { isolation: isolate; }
.create-card #app-wrap > .row-content { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Step 3: the React editor itself, restyled with CSS only ----------
   The components (Material-UI 0.x stepper, uikit/altair forms) are shared with the dashboard and carry inline
   styles, so everything here is scoped to body.create-card and overrides the inline values with !important.
   The Material-UI turquoise is rgb(0, 188, 212); selectors that match it recolor it to the DIBIZ blue.
   No markup or behaviour changes. */
body.create-card { background: var(--mk-ground); }
.create-card #app-wrap .container,
.create-card #app-wrap .container :not(i):not(.material-icons):not([class*="icon"]):not(.ql-editor *):not(svg *) {
  font-family: var(--mk-font) !important;
}
/* the sheet spans the full width (rounded top corners at the screen edges); the content inside is capped */
.create-card #app-wrap > .row-content { max-width: none; width: 100%; margin-inline: 0; }
.create-card #app-wrap > .row-content > .inner { max-width: calc(var(--mk-wrap) + 2 * var(--mk-gutter)); margin-inline: auto; padding-inline: var(--mk-gutter); }
.create-card #page_content, .create-card #page_content_inner { padding: 0 !important; margin: 0 !important; background: none !important; }

/* the React title: replaced by the photo head above (same text) */
.create-card #app-wrap .ttl-block { display: none; }

/* the white sheet holding the stepper */
.create-card #stepper-wrapper {
  background: var(--mk-raised); border: 1px solid var(--mk-line); border-radius: var(--mk-radius-lg);
  box-shadow: var(--mk-shadow); padding: clamp(14px, 2.6vw, 32px) clamp(10px, 2.4vw, 32px);
}
.create-card #stepper-wrapper > div { background: none !important; }

/* step titles: "1 Choose main image (all fields optional)" */
.create-card #stepper-wrapper span[style*="height: 64px"] { font-size: 16px !important; font-weight: 600; color: var(--mk-text) !important; }
.create-card #stepper-wrapper span[style*="height: 64px"][style*="0.26)"] { color: var(--mk-text-3) !important; font-weight: 500; }
.create-card .text-small-stepper { font-size: 13px !important; font-weight: 400; color: var(--mk-text-3) !important; margin-inline-start: 6px; }
/* step circles: current/done blue, upcoming grey-blue */
.create-card #stepper-wrapper svg[style*="fill: rgb(0, 188, 212)"][style*="display: block"] { fill: var(--mk-blue) !important; color: var(--mk-blue) !important; width: 28px !important; height: 28px !important; }
.create-card #stepper-wrapper svg[style*="fill: rgb(158, 158, 158)"][style*="display: block"] { fill: #c5cfdf !important; color: #c5cfdf !important; width: 28px !important; height: 28px !important; }
/* on phones the React page renders its own one-step-at-a-time layout and leaves #stepper-wrapper empty */
.create-card #stepper-wrapper:empty { display: none; }
/* RTL: Material-UI flips the margins but not the line between the step circles */
[dir="rtl"] .create-card #stepper-wrapper div[style*="flex: 1 1 auto"] > span[style*="border-left-style: solid"] {
  border-left-width: 0 !important; border-right: 1px solid var(--mk-line-strong) !important;
}
/* breathing room between a step title and its content (Material-UI pulls the content up by 14px) */
.create-card #stepper-wrapper div[style*="margin-top: -14px"][style*="overflow: hidden"] > div:not(:empty) { padding-top: 20px; }
/* Material Icons are ligatures: until the font loads they show their name ("file_upload") as text.
   create_card.html.erb adds .mi-ready to <html> once the font is in. */
html:not(.mi-ready) .create-card .material-icons { visibility: hidden; }
/* the vertical line between steps */
.create-card #stepper-wrapper span[style*="border-left-style: solid"],
.create-card #stepper-wrapper div[style*="border-left"] { border-color: var(--mk-line-strong) !important; }

/* Material-UI controls: turquoise -> blue */
.create-card #app-wrap svg[style*="fill: rgb(0, 188, 212)"] { fill: var(--mk-blue) !important; }
.create-card #app-wrap hr[style*="border-color: rgb(0, 188, 212)"] { border-color: var(--mk-blue) !important; }
.create-card #app-wrap [style^="color: rgb(0, 188, 212)"],
.create-card #app-wrap [style*="; color: rgb(0, 188, 212)"] { color: var(--mk-blue) !important; }
.create-card #app-wrap [style*="background-color: rgb(0, 188, 212)"] { background-color: var(--mk-blue) !important; }
.create-card #app-wrap [style*="background-color: rgba(0, 188, 212, 0.5)"] { background-color: rgba(31, 111, 224, 0.35) !important; } /* toggle track */

/* text fields: full width (up to a readable line) instead of a fixed 256px */
.create-card #app-wrap div[style*="width: 256px"][style*="height: 72px"] { width: 100% !important; max-width: 460px; }
.create-card #app-wrap div[style*="height: 72px"] label { color: var(--mk-text-3) !important; }
.create-card #app-wrap div[style*="height: 72px"] input { color: var(--mk-text) !important; font-size: 16px !important; }
.create-card #app-wrap div[style*="height: 72px"] hr[style*="1px"] { border-color: var(--mk-line-strong) !important; }
.create-card #app-wrap label[style*="calc(100% - "] { color: var(--mk-text) !important; font-size: 15px !important; }

/* Next / Finish (RaisedButton primary): the gold pill of steps 1-2 */
.create-card #stepper-wrapper div:has(> button[style*="background-color: rgb(0, 188, 212)"]) {
  border-radius: 999px !important; box-shadow: 0 10px 24px -12px rgba(255, 194, 61, 0.7) !important; background: none !important; min-width: 120px !important;
}
.create-card #stepper-wrapper button[style*="background-color: rgb(0, 188, 212)"] {
  background-color: var(--mk-gold) !important; border-radius: 999px !important; height: 46px !important; line-height: 46px !important;
}
.create-card #stepper-wrapper button[style*="background-color: rgb(0, 188, 212)"]:hover { background-color: var(--mk-gold-hover) !important; }
.create-card #stepper-wrapper button[style*="background-color: rgb(0, 188, 212)"] > div { height: 46px !important; border-radius: 999px !important; }
.create-card #stepper-wrapper button[style*="background-color: rgb(0, 188, 212)"] span {
  color: var(--mk-gold-ink) !important; text-transform: none !important; font-size: 16px !important; font-weight: 600 !important;
  padding-inline: 28px !important; line-height: 46px !important;
}
/* disabled Next (while an image uploads) */
.create-card #stepper-wrapper div:has(> button[disabled]) { box-shadow: none !important; border-radius: 999px !important; }
.create-card #stepper-wrapper button[disabled] { border-radius: 999px !important; height: 46px !important; }
/* Back (FlatButton) */
.create-card #stepper-wrapper button:not([style*="background-color: rgb(0, 188, 212)"]):not([disabled]):not(.md-btn) {
  border-radius: 999px !important; height: 46px !important; line-height: 46px !important;
}
.create-card #stepper-wrapper button:not([style*="background-color: rgb(0, 188, 212)"]):not(.md-btn) span {
  color: var(--mk-text-2) !important; text-transform: none !important; font-size: 15px !important; font-weight: 500 !important;
}
.create-card #stepper-wrapper div[style*="margin: 12px 0px"] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 24px 0 8px !important; }
.create-card #stepper-wrapper div[style*="margin: 12px 0px"] > div { margin: 0 !important; }
.create-card .skip-signup-btn, .create-card .skip-signup-btn:visited { color: var(--mk-text-3) !important; font-size: 14px; margin-inline-start: 8px; text-decoration: underline; text-underline-offset: 3px; }
.create-card .skip-signup-btn:hover { color: var(--mk-blue) !important; }

/* phones: the fixed bottom bar (back / dots / next) */
.create-card #mobile-stepper {
  background: rgba(255, 255, 255, 0.96); color: var(--mk-text); border-top: 1px solid var(--mk-line);
  box-shadow: 0 -8px 24px -12px rgba(15, 35, 80, 0.18); padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.create-card #mobile-stepper #next-step, .create-card #mobile-stepper #prev-step { bottom: calc(10px + env(safe-area-inset-bottom)); }
.create-card #mobile-stepper #stepper-dots { vertical-align: middle; }
.create-card #mobile-stepper #stepper-dots div { background: #d3dbe8; }
.create-card #mobile-stepper #stepper-dots div.active { background: var(--mk-blue); }
.create-card #mobile-stepper #next-step button:not([disabled]) { background-color: var(--mk-gold) !important; border-radius: 999px !important; height: 40px !important; line-height: 40px !important; margin: 0 12px !important; }
.create-card #mobile-stepper #next-step button span { color: var(--mk-gold-ink) !important; padding: 0 18px !important; text-transform: none !important; font-weight: 600 !important; font-size: 15px !important; }
.create-card #mobile-stepper #next-step button[disabled] span { color: var(--mk-text-3) !important; }
.create-card #mobile-stepper #prev-step button span { color: var(--mk-text-2) !important; text-transform: none !important; font-size: 15px !important; }
/* keep the end of the page (footer) clear of the fixed bar */
.create-card #app-wrap:has(#mobile-stepper) { padding-bottom: 68px; }

/* main image gallery + upload tile */
.create-card #app-wrap .my-gallery-class img { border-radius: 10px; }
.create-card #app-wrap div:has(> .my-gallery-class) { border-color: var(--mk-line) !important; border-radius: var(--mk-radius) !important; }
.create-card #app-wrap .my-gallery-class .md-btn,
.create-card #app-wrap .my-gallery-class .md-btn .material-icons { color: var(--mk-blue) !important; }
.create-card #app-wrap .my-gallery-class .md-btn { border-radius: 10px; text-transform: none; font-weight: 600; }
.create-card #app-wrap #upload-div { border: 1.5px dashed rgba(31, 111, 224, 0.45) !important; border-radius: 10px; background: var(--mk-blue-soft); }
/* Masonry counts columns by the first tile's outer width (the upload tile). Its border came on top of the
   32% + 1% margin, so at some widths 3 tiles were just over 100% and the gallery fell to 2 columns. */
.create-card #app-wrap #image-bank div { box-sizing: border-box; }
/* 3 columns that always fill the width (style.css caps tiles at 250px, which left an empty strip on wide screens) */
.create-card #app-wrap #image-bank > ul > div { width: 32%; }
/* phones (one column): style.css keeps the 1% margin-left of the 3-column layout on full-width tiles, so they sat
   1% off to the right and were clipped there - the left gap looked bigger than the right one */
@media (max-width: 500px) {
  .create-card #app-wrap #image-bank div { margin-left: 0; margin-right: 0; }
  .create-card #app-wrap #image-bank > ul > div { width: 100%; }
}

/* content editor (Quill) */
.create-card #app-wrap .ql-toolbar.ql-snow { border-color: var(--mk-line-strong); border-radius: var(--mk-radius) var(--mk-radius) 0 0; background: var(--mk-ground); }
.create-card #app-wrap .ql-container.ql-snow { border-color: var(--mk-line-strong); border-radius: 0 0 var(--mk-radius) var(--mk-radius); }
.create-card #app-wrap .ql-editor { min-height: 140px; font-size: 15px; }

/* profile image / logo upload */
.create-card #app-wrap .md-card { border-radius: var(--mk-radius) !important; box-shadow: none !important; border: 1px solid var(--mk-line) !important; }
.create-card #app-wrap .field-section { border-color: var(--mk-line-strong) !important; border-radius: var(--mk-radius); }
.create-card #app-wrap .uk-input-group .md-btn, .create-card #app-wrap .field-section .md-btn {
  border-radius: 999px; box-shadow: none; border: 1px solid var(--mk-line-strong); text-transform: none; font-weight: 600; color: var(--mk-text) !important;
}
/* phones: the uikit input group (field + button side by side) doesn't fit, and the button landed centered on the
   field's underline. Stack them: the field full width, the button under it with a gap, at the start edge. */
@media (max-width: 760px) {
  .create-card #app-wrap .field-section .uk-input-group {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%;
  }
  .create-card #app-wrap .field-section .uk-input-group .md-input-wrapper,
  .create-card #app-wrap .field-section .uk-input-group .md-input,
  .create-card #app-wrap .field-section .uk-input-group .md-input-bar { width: 100% !important; max-width: none; }
  .create-card #app-wrap .field-section .uk-input-group-addon {
    display: block; width: auto; padding: 0; margin: 0; border: 0; background: none; text-align: start;
  }
  .create-card #app-wrap .field-section .uk-input-group-addon .md-btn { margin: 0; }
}

/* live preview */
.create-card .create-card-preview .preview-header { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mk-text-3); border: 0 !important; background: none !important; }
.create-card #preview-iframe-wrapper { overflow: hidden; }
/* the old ripple spinner (admin/style.css, admin/main.css) in the site blues instead of teal + charcoal:
   same SVG, two rings growing and fading one after the other */
.create-card #preview-iframe-wrapper, .create-card #app-loader {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='98' height='98' viewBox='0 0 100 100'%3E%3Cg%3E%3Canimate attributeName='opacity' dur='2s' repeatCount='indefinite' begin='0s' keyTimes='0;0.33;1' values='1;1;0'/%3E%3Ccircle cx='50' cy='50' r='40' stroke='%231f6fe0' fill='none' stroke-width='3' stroke-linecap='round'%3E%3Canimate attributeName='r' dur='2s' repeatCount='indefinite' begin='0s' keyTimes='0;0.33;1' values='0;22;44'/%3E%3C/circle%3E%3C/g%3E%3Cg%3E%3Canimate attributeName='opacity' dur='2s' repeatCount='indefinite' begin='1s' keyTimes='0;0.33;1' values='1;1;0'/%3E%3Ccircle cx='50' cy='50' r='40' stroke='%2391b9f2' fill='none' stroke-width='3' stroke-linecap='round'%3E%3Canimate attributeName='r' dur='2s' repeatCount='indefinite' begin='1s' keyTimes='0;0.33;1' values='0;22;44'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
}
