:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17131f;
  background: #fff;
  --purple-950: #2e155f;
  --purple-900: #3c1d7d;
  --purple-800: #4d28a6;
  --purple-700: #5d35cc;
  --purple-600: #6f4be8;
  --purple-500: #815ff0;
  --purple-400: #9b7cf4;
  --purple-300: #bca9f8;
  --purple-200: #d9cffb;
  --purple-100: #eee9ff;
  --purple-50: #f8f6ff;
  --ink: #17131f;
  --muted: #6d6875;
  --border: #e7e1f0;
  --line: #ebe6f1;
  --panel: #faf9fc;
  --shadow-soft: 0 12px 34px rgba(65, 36, 126, .08);
  --shadow-hover: 0 18px 42px rgba(73, 38, 145, .13);
}

* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; min-width: 320px; background: #fff; color: var(--ink); }
button, input, select { font: inherit; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
.sr-only,
.sr-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Local Motricialy fallback chrome */
.motricialy-fallback-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #ece8f0;
}
.motricialy-fallback-header-inner {
  width: 1200px;
  max-width: 90%;
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.motricialy-fallback-brand {
  color: #6d2fc4;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.motricialy-fallback-desktop-nav { display: flex; align-items: center; gap: 27px; }
.motricialy-fallback-desktop-nav a {
  color: #26222a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.motricialy-fallback-search-link { font-size: 20px !important; line-height: 1; }
.motricialy-fallback-mobile-menu { display: none; position: relative; }
.motricialy-fallback-mobile-menu summary { list-style: none; cursor: pointer; font-weight: 700; }
.motricialy-fallback-mobile-menu summary::-webkit-details-marker { display: none; }
.motricialy-fallback-mobile-menu nav {
  position: absolute;
  z-index: 50;
  top: 42px;
  right: 0;
  min-width: 220px;
  padding: 10px;
  display: grid;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.motricialy-fallback-mobile-menu nav a { padding: 10px 12px; color: #2b2531; text-decoration: none; }

.motricialy-fallback-footer { margin-top: 86px; color: #fff; background: #201b24; }
.motricialy-fallback-footer-grid {
  width: 1200px;
  max-width: 90%;
  margin: 0 auto;
  padding: 58px 0 48px;
  display: grid;
  grid-template-columns: 1.7fr .75fr .85fr 1.2fr;
  gap: 56px;
}
.motricialy-fallback-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.motricialy-fallback-logo-mark-large {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #8a63f1, #5b32c4);
  box-shadow: 0 14px 30px rgba(128, 82, 238, .25);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}
.motricialy-fallback-footer-brand-column p,
.motricialy-fallback-footer-column p { margin: 20px 0 0; color: #bbb4c0; font-size: 15px; line-height: 1.7; }
.motricialy-footer-social { display: flex; gap: 14px; margin-top: 20px; color: #fff; }
.motricialy-fallback-footer-column h2 { margin: 7px 0 21px; color: #fff; font-size: 16px; }
.motricialy-fallback-footer-column > a { display: block; margin: 0 0 14px; color: #d8d2dc; text-decoration: none; font-size: 14px; }
.motricialy-newsletter-faux {
  min-height: 50px;
  margin-top: 16px;
  padding: 0 8px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7d7681;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
}
.motricialy-newsletter-faux b {
  min-width: 42px;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #6f4be8;
  border-radius: 3px;
  font-size: 11px;
}
.motricialy-fallback-footer-bottom {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px 20px;
  color: #9f98a4;
  background: #19151c;
  border-top: 1px solid #312a36;
  font-size: 12px;
  text-align: center;
}
.dynamic-header-mount,
.dynamic-footer-mount { width: 100%; }
.dynamic-header-mount { line-height: normal; }
.dynamic-footer-mount #footer { width: 100%; max-width: none; margin: 0; float: none; clear: both; }

/* Motricialy tool page shell */
.motricialy-tool-page {
  width: 100%;
  padding: 56px 20px 78px;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf9ff 0, #fff 620px);
}
.tool-hero { width: min(1200px, 100%); margin: 0 auto; transition: width .24s ease; }
.tool-hero.workspace-expanded { width: min(1600px, 100%); }
.hero-copy {
  width: min(900px, 100%);
  margin: 0 auto 30px;
  text-align: center;
}
.hero-eyebrow,
.eyebrow {
  display: inline-block;
  color: var(--purple-700);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-eyebrow { margin-bottom: 10px; }
.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 47px;
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: -1.9px;
}
.hero-description {
  max-width: 760px;
  margin: 14px auto 0;
  color: #69636f;
  font-size: 17px;
  line-height: 1.65;
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 0;
  color: #6b6570;
  font-size: 13px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }

.post-tool-trust {
  margin-top: 18px;
}

.trust-row i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--purple-700);
  background: var(--purple-100);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.tool-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7e2ef;
  border-radius: 19px;
  box-shadow: var(--shadow-soft);
  transition: width .24s ease, box-shadow .2s ease;
}
.tool-shell.workspace-wide { width: min(1600px, 100%); box-shadow: 0 14px 40px rgba(57, 34, 101, .09); }
.tool-shell button,
.tool-shell input,
.tool-shell select { font-family: inherit; }
.tool-shell button { cursor: pointer; }
.tool-shell button:focus-visible,
.tool-shell input:focus-visible,
.tool-shell select:focus-visible,
.seo-content a:focus-visible,
.seo-content summary:focus-visible {
  outline: 3px solid rgba(129, 95, 240, .28);
  outline-offset: 3px;
}

/* Initial upload */
.initial-upload-zone {
  min-height: 400px;
  margin: 18px;
  padding: 50px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #fdfcff, #faf8ff);
  border: 2px dashed #d7ceed;
  border-radius: 15px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.initial-upload-zone:hover,
.initial-upload-zone.is-dragging {
  background: #f8f5ff;
  border-color: #b9a9e9;
  box-shadow: inset 0 0 0 1px rgba(111, 75, 232, .08);
}
.upload-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  color: var(--purple-700);
  background: var(--purple-100);
  border-radius: 18px;
  font-size: 30px;
  font-weight: 900;
}
.initial-upload-zone h2 { margin: 8px 0 0; color: #241d2c; font-size: 25px; line-height: 1.3; }
.initial-upload-zone p { max-width: 630px; margin: 10px auto 0; color: #6f6876; font-size: 15px; line-height: 1.65; }
.initial-upload-zone small { margin-top: 15px; color: #8b8491; font-size: 12px; line-height: 1.5; }
.upload-actions { display: flex; gap: 10px; margin-top: 23px; }

.primary-button,
.secondary-button,
.compact-button,
.text-button,
.pager button,
.review-actions button,
.pick-button,
.preset-button {
  border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.primary-button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: var(--purple-700);
  border-color: var(--purple-700);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(93, 53, 204, .2);
  font-weight: 750;
}
.primary-button:hover:not(:disabled) { background: var(--purple-800); transform: translateY(-1px); }
.secondary-button,
.compact-button {
  min-height: 44px;
  padding: 0 14px;
  color: #4b3a5f;
  background: #fff;
  border-color: #d9d1e6;
  border-radius: 9px;
  font-weight: 700;
}
.secondary-button:hover:not(:disabled),
.compact-button:hover:not(:disabled) { background: #faf8ff; border-color: #bfaee0; }
.compact-button { min-height: 38px; padding: 0 11px; font-size: 12px; }
.text-button { min-height: 42px; padding: 0 10px; color: var(--purple-700); background: transparent; border-radius: 8px; font-weight: 700; }
.text-button:hover:not(:disabled) { background: #f3eeff; }
.text-button.danger { color: #a23f5a; }
button:disabled { cursor: not-allowed !important; opacity: .45; transform: none !important; }

/* Workspace */
.workspace-toolbar {
  min-height: 76px;
  padding: 15px 20px 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.workspace-summary { display: flex; align-items: center; gap: 16px; }
.workspace-summary .eyebrow { min-width: max-content; }
.workspace-summary div { display: flex; align-items: baseline; gap: 9px; }
.workspace-summary strong { color: #271f30; font-size: 15px; }
.workspace-summary div span { color: #817a86; font-size: 12px; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tool-messages { padding: 10px 18px; display: grid; gap: 6px; background: #fbf9ff; border-bottom: 1px solid #ebe5f2; }
.initial-messages { margin: -8px 18px 18px; border: 1px solid #ebe5f2; border-radius: 10px; }
.tool-message { padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.tool-message.success { color: #315e46; background: #eef9f2; }
.tool-message.error { color: #8b3348; background: #fff1f4; }
.tool-message.warning { color: #765b27; background: #fff8e8; }
.tool-message.info { color: #5d4382; background: #f2edff; }

.contact-workspace {
  min-height: 720px;
  display: grid;
  grid-template-columns: 340px minmax(520px, 1fr) 330px;
  grid-template-areas: "settings preview review";
  background: #f6f3f8;
}
.settings-panel,
.review-panel { min-width: 0; background: #fdfcff; }
.settings-panel {
  grid-area: settings;
  padding: 23px 21px 25px;
  border-right: 1px solid #e9e3ed;
}
.review-panel {
  grid-area: review;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e9e3ed;
}
.preview-panel {
  grid-area: preview;
  min-width: 0;
  padding: 24px;
  background: #f1eef4;
}
.panel-heading h2,
.review-panel-heading h2,
.preview-heading h2 { margin: 4px 0 0; color: #241d2b; line-height: 1.25; font-size: 20px; }
.panel-heading p,
.review-panel-heading p,
.preview-heading p { margin: 6px 0 0; color: #817986; font-size: 12px; line-height: 1.55; }

.control-block { margin-top: 21px; padding-top: 20px; border-top: 1px solid #ebe6ef; }
.control-block:first-of-type { margin-top: 19px; }
.control-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.control-label strong { color: #3f3548; font-size: 13px; }
.control-label span { color: #9a929f; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset-button {
  min-height: 58px;
  padding: 10px 11px;
  display: grid;
  gap: 2px;
  text-align: left;
  color: #493a5b;
  background: #fff;
  border-color: #ded6e8;
  border-radius: 10px;
}
.preset-button strong { font-size: 12px; }
.preset-button span { color: #8b8292; font-size: 11px; }
.preset-button:hover { border-color: #bca9e8; background: #faf8ff; }
.preset-button.is-active { color: var(--purple-900); background: #f2edff; border-color: #bdaafb; box-shadow: inset 0 0 0 1px rgba(111,75,232,.06); }
.field-grid { display: grid; gap: 10px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; margin-top: 12px; }
.field > span { color: #57505d; font-size: 11px; font-weight: 750; }
.field small { color: #918996; font-size: 10px; line-height: 1.45; }
.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  color: #29232f;
  background: #fff;
  border: 1px solid #dcd5e4;
  border-radius: 9px;
  outline: none;
  font-size: 12px;
}
.field input::placeholder { color: #aaa2ad; }
.field input:focus,
.field select:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(124, 86, 221, .11); }
.checkbox-field {
  min-height: 48px;
  margin-top: 13px;
  padding: 9px 11px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #faf8fd;
  border: 1px solid #e7e1ec;
  border-radius: 9px;
  cursor: pointer;
}
.checkbox-field input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--purple-700); }
.checkbox-field span { display: grid; gap: 2px; }
.checkbox-field b { color: #554b5d; font-size: 11px; }
.checkbox-field small { color: #928a96; font-size: 10px; line-height: 1.4; }
.export-block .export-main { width: 100%; }
.image-export-row { display: grid; grid-template-columns: 100px 1fr; gap: 8px; align-items: end; margin-top: 9px; }
.image-export-row .field { margin: 0; }
.image-export-row .secondary-button { height: 44px; }
.pick-export-row { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick-export-row .secondary-button { width: 100%; padding-inline: 9px; font-size: 11px; }
.export-block p { margin: 9px 0 0; color: #918995; font-size: 10px; line-height: 1.5; }

.preview-heading { min-height: 56px; margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.pager { display: flex; align-items: center; gap: 7px; }
.pager button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #553b72;
  background: #fff;
  border-color: #d8d0df;
  border-radius: 9px;
  font-size: 18px;
}
.pager button:hover:not(:disabled) { background: #faf8ff; border-color: #baa9db; }
.pager span { min-width: 46px; text-align: center; color: #6d6572; font-size: 11px; font-weight: 800; }
.canvas-stage {
  position: relative;
  min-height: 625px;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: auto;
  background: repeating-conic-gradient(#e5e1e8 0 25%, #eeebf0 0 50%) 50%/22px 22px;
  border: 1px solid #dbd4df;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.canvas-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 820px;
  width: auto;
  height: auto;
  background: #fff;
  box-shadow: 0 18px 46px rgba(31, 23, 38, .18);
  transition: opacity .15s ease;
}
.canvas-stage.is-busy canvas { opacity: .55; }
.preview-status {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 11px;
  color: #fff;
  background: rgba(44, 34, 54, .9);
  border-radius: 99px;
  font-size: 11px;
}

.review-panel-heading { padding: 23px 18px 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e9e3ed; }
.review-list { min-height: 0; padding: 10px; display: grid; gap: 8px; overflow: auto; }
.review-card {
  min-height: 86px;
  padding: 8px;
  display: grid;
  grid-template-columns: 68px minmax(0,1fr) auto;
  grid-template-areas: "thumb meta pick" "thumb actions actions";
  gap: 5px 8px;
  align-items: center;
  background: #fff;
  border: 1px solid #e3dce8;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(50, 31, 70, .035);
  cursor: grab;
}
.review-card:active { cursor: grabbing; }
.review-card.is-dragging-card { opacity: .55; }
.review-card.is-picked { background: #fbf9ff; border-color: #cbb9f6; box-shadow: inset 3px 0 0 var(--purple-600); }
.review-thumb { grid-area: thumb; position: relative; width: 68px; height: 68px; overflow: hidden; display: grid; place-items: center; background: #f0edf3; border-radius: 8px; }
.review-thumb img { width: 100%; height: 100%; object-fit: contain; }
.review-thumb span { position: absolute; top: 5px; left: 5px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; color: #fff; background: rgba(34, 27, 41, .8); border-radius: 6px; font-size: 10px; font-weight: 800; }
.review-meta { grid-area: meta; min-width: 0; align-self: end; }
.review-meta strong,
.review-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-meta strong { color: #342b3d; font-size: 11px; }
.review-meta small { margin-top: 3px; color: #978f9c; font-size: 9px; }
.pick-button { grid-area: pick; min-height: 32px; padding: 0 8px; color: #6b527f; background: #faf8fd; border-color: #e2dbe9; border-radius: 8px; font-size: 10px; font-weight: 800; }
.review-card.is-picked .pick-button { color: #fff; background: var(--purple-700); border-color: var(--purple-700); }
.review-actions { grid-area: actions; display: flex; justify-content: flex-end; gap: 5px; }
.review-actions button { width: 34px; height: 30px; display: grid; place-items: center; color: #5f506d; background: #faf9fb; border-color: #e3dce8; border-radius: 7px; }
.review-actions .remove { color: #a43e59; background: #fff8fa; }
.review-actions button:hover:not(:disabled) { background: #f3eff9; border-color: #c8b9dd; }

/* Landing content */
.seo-content { width: min(980px, 100%); margin: 0 auto; }
.seo-section { margin-top: 58px; text-align: left; }
.how-section { margin-top: 50px; }
.section-label {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--purple-800);
  background: var(--purple-100);
  border: 1px solid #e0d7fb;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .08em;
}
.seo-section h2 { margin: 10px 0 0; color: #271c36; font-size: 28px; line-height: 1.22; letter-spacing: -.55px; }
.section-underline { width: 44px; height: 3px; display: block; margin-top: 12px; background: var(--purple-600); border-radius: 99px; }
.section-intro,
.related-tools-intro { max-width: 760px; margin: 17px 0 0; color: #756d7e; font-size: 15px; line-height: 1.72; }
.steps-grid { margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; list-style: none; }
.step-card {
  min-height: 170px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(145deg, #fff, #faf8ff);
  border: 1px solid #e8e2ef;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(67, 40, 114, .04);
}
.step-number {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--purple-500), var(--purple-700));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 7px 16px rgba(104, 65, 191, .18);
}
.step-card strong,
.feature-card strong,
.explainer-point strong { display: block; color: var(--purple-950); font-size: 15px; line-height: 1.35; }
.step-card p,
.feature-card p,
.explainer-point p,
.faq-answer p { margin: 7px 0 0; color: #756e7b; font-size: 15px; line-height: 1.65; }
.feature-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.feature-card {
  position: relative;
  min-height: 178px;
  padding: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e2ef;
  border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:nth-child(1), .feature-card:nth-child(6) { background: linear-gradient(145deg, #fff, #f7f4ff); }
.feature-card:nth-child(2), .feature-card:nth-child(5) { background: linear-gradient(145deg, #fff, #fbf9ff); }
.feature-card:nth-child(3), .feature-card:nth-child(4) { background: linear-gradient(145deg, #fefcff, #f3eeff); }
.feature-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--purple-600); opacity: 0; transition: width .18s ease, opacity .18s ease; }
.feature-card:hover { transform: translateY(-2px); border-color: #d7caef; box-shadow: var(--shadow-hover); }
.feature-card:hover::before { width: 4px; opacity: 1; }
.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  color: var(--purple-800);
  background: var(--purple-100);
  border: 1px solid #e2d9fb;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 900;
}
.explainer-card { margin-top: 24px; padding: 26px; display: grid; gap: 18px; background: linear-gradient(145deg, #f8f5ff, #fdfcff); border: 1px solid #ded5f1; border-radius: 16px; }
.explainer-point { display: grid; grid-template-columns: 30px 1fr; gap: 13px; align-items: start; }
.explainer-point > span { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--purple-700); border-radius: 9px; font-size: 12px; font-weight: 900; }
.explainer-point p { margin-top: 4px; }
.faq-list { margin-top: 23px; border-top: 1px solid #ded7e7; }
.faq details { border-bottom: 1px solid #ded7e7; transition: background .15s ease, box-shadow .15s ease; }
.faq details:hover { background: #faf8ff; }
.faq details[open] { background: #f8f5ff; box-shadow: inset 4px 0 0 var(--purple-600); }
.faq summary {
  min-height: 58px;
  padding: 17px 16px 17px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #34273f;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 750;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--purple-700); font-size: 22px; line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 44px 18px 4px; }
.related-tools-intro { margin-top: 17px; }
.related-tools-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.related-tool-card {
  position: relative;
  min-height: 84px;
  padding: 18px 18px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(145deg, #fff, #fbf9ff);
  border: 1px solid #e3dced;
  border-radius: 13px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.related-tool-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--purple-600); opacity: 0; transition: width .18s ease, opacity .18s ease; }
.related-tool-card:hover { transform: translateY(-2px); border-color: #cfc1ea; box-shadow: var(--shadow-hover); }
.related-tool-card:hover::before { width: 5px; opacity: 1; }
.related-tool-copy { display: grid; gap: 5px; min-width: 0; }
.related-tool-copy strong { color: var(--purple-950); font-size: 15px; line-height: 1.3; }
.related-tool-copy small { color: #8d8494; font-size: 12px; }
.related-tool-arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: var(--purple-800);
  background: var(--purple-100);
  border-radius: 999px;
  font-size: 17px;
  transition: transform .18s ease, background .18s ease;
}
.related-tool-card:hover .related-tool-arrow { transform: translateX(2px); background: #e7defe; }

@media (max-width: 1320px) {
  .contact-workspace { grid-template-columns: 315px minmax(460px, 1fr) 305px; }
  .settings-panel { padding-inline: 18px; }
  .review-panel-heading { padding-inline: 15px; }
  .review-card { grid-template-columns: 62px minmax(0,1fr); grid-template-areas: "thumb meta" "thumb pick" "actions actions"; }
  .review-thumb { width: 62px; height: 62px; }
  .pick-button { justify-self: start; }
}

@media (max-width: 1100px) {
  .contact-workspace {
    grid-template-columns: 320px minmax(0,1fr);
    grid-template-areas: "settings preview" "review review";
  }
  .review-panel { border-left: 0; border-top: 1px solid #e9e3ed; }
  .review-list { max-height: 360px; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .review-card { grid-template-columns: 64px minmax(0,1fr) auto; grid-template-areas: "thumb meta pick" "thumb actions actions"; }
  .canvas-stage { min-height: 560px; }
}

@media (max-width: 900px) {
  .motricialy-fallback-desktop-nav { display: none; }
  .motricialy-fallback-mobile-menu { display: block; }
  .motricialy-fallback-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px 50px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .contact-workspace { grid-template-columns: 1fr; grid-template-areas: "settings" "preview" "review"; }
  .settings-panel { border-right: 0; border-bottom: 1px solid #e9e3ed; }
  .review-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .motricialy-tool-page { padding: 32px 14px 60px; }
  .hero-copy { margin-bottom: 22px; text-align: center; }
  .hero-eyebrow { margin-bottom: 9px; }
  .hero-copy h1 { max-width: 340px; margin-inline: auto; font-size: clamp(32px, 9.5vw, 44px); line-height: 1.06; letter-spacing: -1.3px; }
  .hero-description { max-width: 350px; margin-top: 12px; font-size: 15px; line-height: 1.6; }
  .trust-row { width: fit-content; margin: 16px auto 0; display: grid; justify-content: center; gap: 8px; text-align: left; font-size: 13px; }
  .trust-row span { min-height: 0; }
  .tool-shell { border-radius: 16px; }
  .initial-upload-zone { min-height: 330px; margin: 10px; padding: 28px 18px; border-radius: 13px; }
  .upload-icon { width: 58px; height: 58px; margin-bottom: 14px; border-radius: 16px; }
  .initial-upload-zone h2 { font-size: 22px; }
  .initial-upload-zone p { font-size: 14px; }
  .upload-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .primary-button, .secondary-button { min-height: 50px; }
  .workspace-toolbar { padding: 15px 14px; align-items: flex-start; flex-direction: column; }
  .workspace-summary { width: 100%; display: grid; gap: 6px; }
  .workspace-summary div { justify-content: space-between; }
  .toolbar-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar-actions .text-button { min-height: 44px; }
  .settings-panel, .preview-panel { padding: 17px 14px; }
  .review-panel-heading { padding: 17px 14px 13px; }
  .panel-heading h2, .review-panel-heading h2, .preview-heading h2 { font-size: 18px; }
  .preset-grid { grid-template-columns: 1fr 1fr; }
  .field input, .field select { height: 50px; font-size: 13px; }
  .checkbox-field { min-height: 54px; align-items: center; }
  .image-export-row { grid-template-columns: 105px 1fr; }
  .preview-heading { align-items: flex-start; }
  .pager button { width: 44px; height: 44px; }
  .canvas-stage { min-height: 330px; padding: 12px; border-radius: 10px; }
  .canvas-stage canvas { max-height: 560px; }
  .review-list { max-height: none; padding: 9px; grid-template-columns: 1fr; }
  .review-card { min-height: 94px; grid-template-columns: 70px minmax(0,1fr) auto; grid-template-areas: "thumb meta pick" "thumb actions actions"; }
  .review-thumb { width: 70px; height: 70px; }
  .review-actions button { width: 44px; height: 44px; }
  .pick-button { min-height: 44px; }
  .seo-section { margin-top: 40px; }
  .how-section { margin-top: 30px; }
  .section-label { font-size: 10px; }
  .seo-section h2 { font-size: 24px; line-height: 1.25; }
  .steps-grid, .feature-grid, .related-tools-grid { grid-template-columns: 1fr; gap: 11px; }
  .feature-card { min-height: 0; }
  .feature-card:hover, .related-tool-card:hover { transform: none; }
  .explainer-card { padding: 20px 16px; }
  .faq summary { min-height: 58px; padding-left: 2px; }
  .faq-answer { padding-left: 2px; padding-right: 28px; }
  .motricialy-fallback-footer-grid { width: calc(100% - 28px); max-width: none; padding: 38px 0; grid-template-columns: 1fr; gap: 30px; }
  .motricialy-fallback-header-inner { max-width: calc(100% - 28px); }
  .motricialy-fallback-footer-brand { font-size: 25px; }
  .motricialy-fallback-logo-mark-large { width: 52px; height: 52px; border-radius: 15px; }
}

@media (max-width: 390px) {
  .toolbar-actions { grid-template-columns: 1fr; }
  .field-grid.two { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: 1fr 1fr; }
  .image-export-row, .pick-export-row { grid-template-columns: 1fr; }
  .preview-heading { display: grid; grid-template-columns: 1fr; }
  .pager { justify-content: space-between; }
  .review-card { grid-template-columns: 64px minmax(0,1fr); grid-template-areas: "thumb meta" "thumb pick" "actions actions"; }
  .review-thumb { width: 64px; height: 64px; }
  .pick-button { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .primary-button:hover, .feature-card:hover, .related-tool-card:hover { transform: none !important; }
}

/* v1.3.0 smart layout and review workflow */
.layout-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mode-button {
  min-height: 58px;
  padding: 10px 11px;
  display: grid;
  gap: 2px;
  text-align: left;
  color: #493a5b;
  background: #fff;
  border: 1px solid #ded6e8;
  border-radius: 10px;
  cursor: pointer;
}
.mode-button strong { font-size: 12px; }
.mode-button span { color: #8b8292; font-size: 11px; }
.mode-button:hover { border-color: #bca9e8; background: #faf8ff; }
.mode-button.is-active {
  color: var(--purple-900);
  background: #f2edff;
  border-color: #bdaafb;
  box-shadow: inset 0 0 0 1px rgba(111,75,232,.06);
}
.mode-button.is-active span { color: #6d53a3; }

.progress-strip {
  width: 100%;
  padding: 9px 12px;
  display: grid;
  gap: 7px;
  color: #5d4382;
  background: #f7f3ff;
  border-top: 1px solid #ebe5f2;
  border-bottom: 1px solid #ebe5f2;
  font-size: 11px;
  font-weight: 700;
}
.initial-upload-zone .progress-strip {
  max-width: 460px;
  margin-top: 18px;
  border: 1px solid #e5dcf7;
  border-radius: 9px;
}
.progress-strip progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8e1f4;
  accent-color: var(--purple-600);
}
.progress-strip progress::-webkit-progress-bar { background: #e8e1f4; border-radius: 999px; }
.progress-strip progress::-webkit-progress-value { background: var(--purple-600); border-radius: 999px; }
.export-block .progress-strip { margin-top: 9px; border: 1px solid #e6def3; border-radius: 8px; }
.export-quality-row .field { margin-top: 0; }

.clear-confirm {
  min-height: 42px;
  padding-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #706775;
  background: #fff7f9;
  border: 1px solid #f0d9df;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}
.clear-confirm .text-button { min-height: 36px; padding-inline: 8px; }

.preview-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  background: rgba(255,255,255,.72);
  border: 1px solid #ddd5e4;
  border-radius: 10px;
}
.zoom-controls .compact-button {
  min-height: 34px;
  height: 34px;
  padding-inline: 10px;
  border: 0;
  background: transparent;
}
.zoom-controls .compact-button.is-active { color: var(--purple-900); background: #eee8ff; }
.zoom-icon,
.zoom-value {
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  color: #5c4a6d;
  background: #fff;
  border: 1px solid #dfd7e5;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}
.zoom-value { min-width: 48px; font-size: 10px; }
.zoom-icon:hover,
.zoom-value:hover { background: #f8f5ff; border-color: #c5b6dc; }

.review-toolbar {
  padding: 10px 10px 8px;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #eee9f1;
  background: #fbfafe;
}
.review-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 5px;
}
.filter-button {
  min-height: 34px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #6e6179;
  background: #fff;
  border: 1px solid #e1dbe7;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.filter-button span {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: #f2edf8;
  border-radius: 99px;
  font-size: 9px;
}
.filter-button.is-active { color: var(--purple-900); background: #eee8ff; border-color: #c5b3f2; }
.filter-button.is-active span { color: #fff; background: var(--purple-700); }
.order-select select {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  color: #55495e;
  background: #fff;
  border: 1px solid #ded7e5;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.review-batch-actions {
  padding: 8px 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.review-batch-actions .compact-button { min-height: 34px; font-size: 10px; }
.review-empty {
  min-height: 110px;
  padding: 28px 18px;
  display: grid;
  place-items: center;
  color: #918997;
  text-align: center;
  font-size: 11px;
}
.review-card.is-on-page:not(.is-picked) { border-color: #d3c7e3; box-shadow: inset 3px 0 0 #d4c6ed, 0 3px 10px rgba(50,31,70,.035); }
.review-thumb-button {
  grid-area: thumb;
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.review-thumb-button:focus-visible { outline: 3px solid rgba(129,95,240,.28); outline-offset: 2px; }
.review-thumb { grid-area: auto; }

@media (max-width: 1320px) {
  .review-thumb-button { width: 62px; height: 62px; }
}

@media (max-width: 1100px) {
  .review-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(170px, .55fr); align-items: center; }
  .review-batch-actions { grid-template-columns: repeat(2, minmax(0, 160px)); justify-content: end; }
}

@media (max-width: 620px) {
  .layout-mode-switch { grid-template-columns: 1fr 1fr; }
  .mode-button { min-height: 62px; }
  .clear-confirm { width: 100%; padding: 7px 8px; display: grid; grid-template-columns: 1fr auto auto; }
  .preview-heading { display: grid; grid-template-columns: 1fr; }
  .preview-tools { width: 100%; justify-content: space-between; }
  .zoom-controls { order: 2; }
  .zoom-controls .compact-button,
  .zoom-icon,
  .zoom-value { min-height: 44px; height: 44px; }
  .zoom-icon { min-width: 44px; }
  .zoom-value { min-width: 50px; }
  .review-toolbar { grid-template-columns: 1fr; }
  .filter-button, .order-select select { min-height: 44px; height: 44px; font-size: 11px; }
  .review-batch-actions { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .review-batch-actions .compact-button { min-height: 44px; }
  .review-thumb-button { width: 70px; height: 70px; }
  .progress-strip { font-size: 11px; }
}

@media (max-width: 390px) {
  .layout-mode-switch { grid-template-columns: 1fr; }
  .preview-tools { display: grid; grid-template-columns: 1fr; }
  .zoom-controls { width: 100%; display: grid; grid-template-columns: 1fr 44px 54px 44px; }
  .review-batch-actions { grid-template-columns: 1fr 1fr; }
  .review-thumb-button { width: 64px; height: 64px; }
}

/* v1.3.1: make the active layout mode unmistakable in the live preview. */
.preview-heading > div:first-child > p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.auto-layout-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #ddd4fb;
  border-radius: 999px;
  background: #f7f4ff;
  color: #5d35cc;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
}
.auto-layout-chip.is-manual {
  border-color: #e4dfe8;
  background: #faf9fb;
  color: #6e6674;
}
@media (max-width: 620px) {
  .preview-heading > div:first-child > p { gap: 6px; }
  .auto-layout-chip { min-height: 26px; font-size: 11px; }
}
