:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17131f;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; }

/* Emergency fallback only. The shared v14 runtime replaces these mounts with the
   centrally maintained fallback, then with the live WordPress Header/Footer. */
.msc-emergency-header {
  min-height: 74px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.msc-emergency-header-inner {
  width: 1200px;
  max-width: 90%;
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: "Open Sans", Arial, sans-serif;
}
.msc-emergency-brand {
  font-weight: 800;
  font-size: 20px;
  color: #6f4be8;
  text-decoration: none;
}
.msc-emergency-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.msc-emergency-links a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.msc-emergency-footer {
  padding: 28px 5%;
  color: #d7d7d7;
  background: #202020;
  font: 14px/1.6 "Open Sans", Arial, sans-serif;
}
.msc-emergency-footer-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.msc-emergency-footer a { color: #fff; text-decoration: none; }
@media (max-width: 900px) {
  .msc-emergency-links a:not(:first-child) { display: none; }
}

.name-splitter-tool {
  --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: #706a79;
  --soft-muted: #8b8492;
  --border: #e6e1eb;
  --border-purple: #ded5f6;
  --success: #287957;
  --warn: #9a5a11;
  --shadow: 0 12px 34px rgba(63, 36, 118, .075);
  --shadow-hover: 0 13px 32px rgba(65, 36, 126, .09);
  min-height: 60vh;
  color: var(--ink);
  background: #fff;
  overflow: hidden;
}

.name-splitter-tool *,
.name-splitter-tool *::before,
.name-splitter-tool *::after { box-sizing: border-box; }
.name-splitter-tool button,
.name-splitter-tool input,
.name-splitter-tool textarea,
.name-splitter-tool select { font: inherit; }
.name-splitter-tool button { cursor: pointer; }
.name-splitter-tool button:disabled { cursor: not-allowed; }
.name-splitter-tool button:focus-visible,
.name-splitter-tool a:focus-visible,
.name-splitter-tool input:focus-visible,
.name-splitter-tool textarea:focus-visible,
.name-splitter-tool select:focus-visible,
.name-splitter-tool summary:focus-visible,
.name-splitter-tool [role="button"]:focus-visible,
.name-splitter-tool .table-wrap:focus-visible {
  outline: 3px solid rgba(129,95,240,.24);
  outline-offset: 2px;
}

.hero-shell {
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px 28px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fff 78%, #fcfbff 100%);
}
.hero-copy {
  width: min(820px, 100%);
  margin: 0 auto 28px;
}
.eyebrow,
.section-label {
  display: inline-block;
  color: var(--purple-700);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .11em;
}
.hero-copy h1 {
  margin: 10px 0 0;
  color: #18141e;
  font-size: clamp(42px, 5vw, 52px);
  line-height: 1.06;
  font-weight: 820;
  letter-spacing: -1.8px;
}
.hero-copy p {
  width: min(720px, 100%);
  margin: 14px auto 0;
  color: #6e6875;
  font-size: 17px;
  line-height: 1.65;
}
.hero-copy strong { color: #4d4654; font-weight: 750; }

.tool-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 26px;
  text-align: left;
  background: #fff;
  border: 1px solid #e9e5ed;
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: width .2s ease;
}
.tool-card.has-results { width: min(1200px, 100%); }
.input-toolbar,
.result-toolbar,
.input-actions,
.status-bar,
.column-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mode-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mode-group > span,
.textarea-label,
.column-picker label {
  color: #433d49;
  font-size: 14px;
  font-weight: 750;
}
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f5f2f9;
  border-radius: 12px;
}
.segmented button {
  min-height: 40px;
  padding: 0 14px;
  color: #6e6875;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.segmented button:hover { color: var(--purple-800); }
.segmented button.active {
  color: var(--purple-800);
  background: #fff;
  box-shadow: 0 2px 8px rgba(50, 30, 85, .08);
}
.toolbar-actions { display: flex; gap: 4px; }
.ghost-button,
.secondary-button,
.primary-action,
.upload-zone {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 780;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.ghost-button {
  padding: 0 11px;
  color: var(--purple-700);
  background: transparent;
  border: 0;
}
.ghost-button:hover { color: var(--purple-900); background: var(--purple-50); }
.secondary-button {
  padding: 0 15px;
  color: var(--purple-800);
  background: #fff;
  border: 1px solid var(--purple-200);
}
.secondary-button:hover { border-color: var(--purple-300); background: var(--purple-50); }
.primary-action {
  padding: 0 18px;
  color: #fff;
  background: var(--purple-700);
  border: 1px solid var(--purple-700);
  box-shadow: 0 7px 16px rgba(93, 53, 204, .16);
}
.primary-action:hover {
  background: var(--purple-800);
  border-color: var(--purple-800);
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(93, 53, 204, .19);
}
.textarea-label {
  margin: 20px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.textarea-label small { color: #928a99; font-size: 12px; font-weight: 600; }
.name-splitter-tool textarea {
  display: block;
  width: 100%;
  min-height: 205px;
  padding: 16px;
  resize: vertical;
  color: #2e2933;
  background: #fdfcff;
  border: 1px solid #dcd6e2;
  border-radius: 14px;
  outline: none;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: inset 0 1px 3px rgba(37, 20, 60, .025);
}
.name-splitter-tool textarea:focus,
.name-splitter-tool select:focus,
.name-splitter-tool table input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(111, 75, 232, .1);
}
.input-actions {
  justify-content: center;
  margin-top: 14px;
}
.input-actions > span { color: #928a99; font-size: 12px; }
.upload-zone {
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-800);
  background: var(--purple-50);
  border: 1px dashed var(--purple-300);
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--purple-500); background: #faf8ff; }
.column-picker {
  margin-top: 16px;
  padding: 12px 14px;
  justify-content: flex-start;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 12px;
}
.column-picker select {
  min-width: 190px;
  min-height: 40px;
  padding: 0 10px;
  color: #40394a;
  background: #fff;
  border: 1px solid var(--purple-200);
  border-radius: 9px;
}
.column-picker > span {
  max-width: 44%;
  margin-left: auto;
  overflow: hidden;
  color: #817a88;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-bar {
  margin-top: 15px;
  padding: 11px 13px;
  color: #716a78;
  background: #faf9fc;
  border: 1px solid #ece8f1;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.status-bar strong { color: var(--purple-800); white-space: nowrap; }
.result-toolbar {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eeeaf1;
}
.result-toolbar > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.result-toolbar > div:last-child { display: flex; gap: 8px; }
.result-toolbar strong { color: #322b38; font-size: 15px; }
.result-toolbar span { color: #8b8391; font-size: 12px; }
.table-wrap {
  max-height: 460px;
  margin-top: 12px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e3ddec;
  border-radius: 14px;
}
.name-splitter-tool table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.name-splitter-tool th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px;
  color: var(--purple-900);
  background: #f6f2ff;
  border-bottom: 1px solid var(--purple-200);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
}
.name-splitter-tool td {
  padding: 7px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #f0edf3;
}
.original-cell {
  max-width: 200px;
  overflow: hidden;
  color: #5d5663;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.needs-review { background: #fffaf2; }
.name-splitter-tool table input {
  width: 100%;
  min-width: 92px;
  padding: 7px 8px;
  color: #2d2732;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: none;
}
.name-splitter-tool table input:hover { background: #fff; border-color: #e4dded; }
.review-badge,
.ok-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.review-badge { color: var(--warn); background: #fff0dc; }
.ok-badge { color: var(--success); background: #eaf8f1; }
.privacy-note { margin: 10px 2px 0; color: #8b8492; font-size: 12px; }
.trust-row {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 22px;
  color: #706a79;
  font-size: 13px;
}

.landing-content {
  width: min(980px, calc(100% - 40px));
  margin: 28px auto 0;
  padding-bottom: 64px;
}
.seo-section {
  padding: 54px 0;
  border-top: 1px solid #eeeaf4;
}
.seo-section:first-child { border-top: 0; }
.section-heading { max-width: 760px; margin-bottom: 26px; }
.section-heading h2 {
  margin: 8px 0 10px;
  color: var(--purple-950);
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: -.025em;
}
.purple-rule,
.section-underline {
  display: block;
  width: 48px;
  height: 3px;
  margin: 0 0 13px;
  background: var(--purple-600);
  border-radius: 99px;
}
.section-heading p { margin: 0; color: #706a79; font-size: 15px; line-height: 1.7; }
.steps-grid,
.features-grid,
.example-grid,
.related-grid { display: grid; gap: 12px; }
.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-grid article,
.features-grid article {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(145deg, #fff, var(--purple-50));
  border: 1px solid var(--purple-100);
  border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.steps-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--purple-500);
  opacity: 0;
  transition: opacity .18s ease, width .18s ease;
}
.steps-grid article:hover,
.features-grid article:hover {
  transform: translateY(-3px);
  border-color: #d5c8ef;
  box-shadow: var(--shadow-hover);
}
.steps-grid article:hover::before { width: 4px; opacity: .75; }
.step-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-800);
  background: var(--purple-100);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}
.steps-grid h3,
.features-grid h3 {
  position: relative;
  z-index: 1;
  margin: 13px 0 6px;
  color: #392f43;
  font-size: 16px;
  line-height: 1.35;
}
.steps-grid p,
.features-grid p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #746d7b;
  font-size: 15px;
  line-height: 1.65;
}
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features-grid article { min-height: 158px; }
.features-grid article::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  background: rgba(217, 207, 251, .45);
  border-radius: 50%;
  transition: transform .18s ease, background .18s ease;
}
.features-grid article:hover::after { transform: scale(1.14); background: rgba(217, 207, 251, .65); }
.guidance-card {
  padding: 22px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 16px;
}
.example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.example-grid > div {
  padding: 15px;
  background: #fff;
  border: 1px solid #e6def1;
  border-radius: 12px;
}
.example-grid span {
  display: block;
  color: var(--purple-700);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.example-grid code { display: block; margin: 8px 0; color: #342f3a; font-size: 14px; }
.example-grid p,
.guidance-card > p { margin: 0; color: #746d7b; font-size: 15px; line-height: 1.65; }
.faq-list { display: grid; gap: 9px; }
.faq-list details {
  padding: 0 15px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 12px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.faq-list details:hover { background: #faf8ff; border-color: #d5c8ef; }
.faq-list details[open] {
  background: #f8f5ff;
  border-color: #d9cffb;
  box-shadow: inset 4px 0 0 var(--purple-500), 0 8px 18px rgba(71, 43, 128, .05);
}
.faq-list summary {
  position: relative;
  min-height: 58px;
  padding: 17px 38px 17px 0;
  display: flex;
  align-items: center;
  color: #40384a;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 13px;
  right: 5px;
  color: var(--purple-700);
  font-size: 21px;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 38px 18px 0; color: #746d7b; font-size: 15px; line-height: 1.7; }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.related-card {
  position: relative;
  min-height: 78px;
  padding: 15px 15px 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid #e2dbea;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.related-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--purple-500);
  opacity: .3;
  transition: width .18s ease, opacity .18s ease;
}
.related-card:hover { transform: translateY(-2px); border-color: #cfc0ef; box-shadow: var(--shadow-hover); }
.related-card:hover::before { width: 5px; opacity: 1; }
.related-card strong { display: block; color: var(--purple-950); font-size: 14px; line-height: 1.35; }
.related-card small { display: block; margin-top: 4px; color: #918998; font-size: 11.5px; }
.related-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--purple-700);
  background: var(--purple-100);
  border-radius: 9px;
  transition: transform .18s ease, background .18s ease;
}
.related-card:hover .related-arrow { transform: translateX(2px); background: #e5ddfb; }

@media (max-width: 900px) {
  .hero-shell { padding-inline: 20px; }
  .tool-card,
  .tool-card.has-results { width: min(100%, 980px); }
  .input-toolbar,
  .mode-group,
  .result-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { align-self: flex-end; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .hero-shell { padding: 31px 14px 0; }
  .hero-copy { margin-bottom: 22px; }
  .eyebrow { margin-bottom: 0; }
  .hero-copy h1 {
    max-width: 340px;
    margin: 10px auto 0;
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.07;
    letter-spacing: -1.3px;
  }
  .hero-copy p { max-width: 380px; margin-top: 12px; font-size: 15px; line-height: 1.58; }
  .tool-card,
  .tool-card.has-results { width: 100%; padding: 18px; border-radius: 16px; }
  .mode-group { gap: 8px; }
  .segmented button { min-height: 44px; padding: 0 7px; font-size: 12px; }
  .toolbar-actions { width: 100%; justify-content: flex-end; }
  .textarea-label { align-items: flex-start; flex-direction: column; gap: 3px; }
  .name-splitter-tool textarea { min-height: 190px; }
  .input-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .input-actions > span { text-align: center; }
  .primary-action,
  .secondary-button,
  .upload-zone { min-height: 50px; }
  .input-actions .primary-action,
  .input-actions .upload-zone { width: 100%; }
  .column-picker { align-items: stretch; flex-direction: column; gap: 8px; }
  .column-picker select { width: 100%; min-height: 48px; }
  .column-picker > span { width: 100%; max-width: none; margin-left: 0; }
  .status-bar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .result-toolbar { gap: 12px; }
  .result-toolbar > div:last-child { width: 100%; }
  .result-toolbar button { flex: 1; }
  .trust-row {
    width: fit-content;
    margin: 16px auto 0;
    padding: 0 0 31px;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 7px 14px;
    text-align: left;
  }
  .landing-content { width: calc(100% - 28px); margin-top: 0; padding-bottom: 50px; }
  .seo-section { padding: 42px 0; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 24px; line-height: 1.25; }
  .steps-grid,
  .features-grid,
  .example-grid,
  .related-grid { grid-template-columns: 1fr; gap: 11px; }
  .steps-grid article,
  .features-grid article { min-height: 0; padding: 18px; }
  .steps-grid article:hover,
  .features-grid article:hover,
  .related-card:hover { transform:none; }
  .guidance-card { padding: 18px; }
  .faq-list details { padding: 0 12px; }
  .faq-list summary { padding-right: 32px; }
  .faq-list summary::after { right: 10px; }
  .faq-list details p { padding-right: 16px; }
  .msc-emergency-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .name-splitter-tool .tool-card,
  .name-splitter-tool .primary-action,
  .name-splitter-tool .ghost-button,
  .name-splitter-tool .secondary-button,
  .name-splitter-tool .upload-zone,
  .name-splitter-tool .steps-grid article,
  .name-splitter-tool .features-grid article,
  .name-splitter-tool .features-grid article::after,
  .name-splitter-tool .related-card,
  .name-splitter-tool .related-card::before,
  .name-splitter-tool .related-arrow,
  .name-splitter-tool .faq-list details { transition: none !important; }
  .name-splitter-tool .primary-action:hover,
  .name-splitter-tool .steps-grid article:hover,
  .name-splitter-tool .features-grid article:hover,
  .name-splitter-tool .related-card:hover,
  .name-splitter-tool .related-card:hover .related-arrow,
  .name-splitter-tool .features-grid article:hover::after { transform: none !important; }
}
