html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; }
.excel-repeat-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: #2b2434;
  --muted: #746d7b;
  --line: #e8e1f0;
  --shadow: 0 14px 40px rgba(51, 30, 90, .07);
  --shadow-hover: 0 13px 32px rgba(65, 36, 126, .09);
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
.excel-repeat-tool, .excel-repeat-tool * { box-sizing: border-box; }
.excel-repeat-tool button,
.excel-repeat-tool input,
.excel-repeat-tool select { font: inherit; }
.excel-repeat-tool button,
.excel-repeat-tool select { min-height: 44px; }
.excel-repeat-tool button { cursor: pointer; }
.excel-repeat-tool a { color: inherit; }

/* Page Standard v1.0.8 emergency Site Chrome fallback only. */
.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; } }

.page-shell { width: min(1200px, calc(100% - 28px)); margin: 0 auto; }
.hero-section { padding: 54px 14px 0; text-align: center; background: linear-gradient(180deg, #fff 0%, #fdfcff 100%); }
.hero-inner { max-width: 900px; }
.eyebrow,
.section-kicker { display: inline-flex; width: fit-content; padding: 6px 9px; color: var(--purple-700); background: var(--purple-50); border: 1px solid #e5ddf8; border-radius: 999px; font-size: 10.5px; line-height: 1; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.workspace-label { display: inline-block; color: var(--purple-700); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hero-section h1 { max-width: 900px; margin: 14px auto 12px; color: #17151c; font-size: clamp(42px, 4.2vw, 52px); line-height: 1.06; font-weight: 820; letter-spacing: -1.8px; }
.hero-copy { max-width: 720px; margin: 0 auto 28px; color: #6f6877; font-size: 16px; line-height: 1.65; }
.tool-stage { padding: 0 14px 42px; }
.tool-shell { width: min(1200px, 100%); }
.upload-zone,
.workspace { background: #fff; border: 1px solid #e7e2ec; border-radius: 20px; box-shadow: var(--shadow); }
.upload-zone { min-height: 330px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px dashed #d8cdf2; background: linear-gradient(145deg, #fff 0%, #fbf9ff 100%); border-radius: 19px; cursor: pointer; outline: none; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.upload-zone:hover,
.upload-zone:focus-visible,
.upload-zone.is-dragging { border-color: var(--purple-500); background: #f9f6ff; box-shadow: inset 0 0 0 3px rgba(111, 75, 232, .04); }
.upload-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 15px; color: var(--purple-700); background: var(--purple-100); border-radius: 17px; font-size: 28px; font-weight: 850; }
.upload-zone h2 { margin: 0 0 7px; color: var(--purple-950); font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.upload-zone p { margin: 0; color: var(--muted); font-size: 15px; }
.primary-button { min-height: 46px; margin-top: 20px; padding: 0 24px; border: 0; border-radius: 11px; background: var(--purple-600); color: #fff; font-weight: 750; cursor: pointer; box-shadow: 0 8px 18px rgba(111, 75, 232, .2); transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.primary-button:hover:not(:disabled) { background: var(--purple-700); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(93, 53, 204, .25); }
.primary-button:disabled { opacity: .52; cursor: not-allowed; box-shadow: none; }
.upload-note { margin-top: 9px; color: #9a93a0; font-size: 12.5px; }
.trust-row { width: fit-content; margin: 17px auto 0; display: flex; align-items: center; justify-content: center; gap: 26px; color: #716a79; font-size: 13px; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row span::before { content: "✓"; color: var(--purple-600); font-weight: 850; }
.global-error { margin: 14px 0 0; padding: 13px 16px; color: #8d2733; background: #fff6f7; border: 1px solid #f0c9ce; border-radius: 11px; font-size: 13px; line-height: 1.55; }

.workspace { padding: 24px; text-align: left; }
.workspace-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; background: #fbfaff; border: 1px solid #e9e3f2; border-radius: 13px; }
.workspace-topline div { min-width: 0; }
.workspace-topline strong { display: block; max-width: 720px; margin-top: 4px; overflow: hidden; color: #332c3b; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.text-button { min-height: 42px; padding: 0 8px; border: 0; background: transparent; color: var(--purple-700); font-size: 13px; font-weight: 750; }
.controls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 0 16px; }
.field { display: grid; gap: 7px; color: #544b5d; font-size: 12px; font-weight: 750; }
.field-label { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 18px; }
.auto-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; color: var(--purple-700); background: var(--purple-50); border: 1px solid #ded4f6; border-radius: 999px; font-size: 9.5px; line-height: 1; font-style: normal; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.field select { width: 100%; height: 46px; padding: 0 36px 0 12px; color: #3e3745; background: #fff; border: 1px solid #dcd3e7; border-radius: 9px; outline: none; }
.field select:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(111, 75, 232, .1); }

.mode-block { margin: 0 0 16px; padding: 16px; border: 1px solid #e6dff0; border-radius: 13px; background: linear-gradient(145deg, #fff, #fcfaff); }
.mode-block legend { padding: 0 7px; color: #4b4253; font-size: 12px; font-weight: 800; }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.mode-card { min-height: 88px; padding: 13px 12px; display: grid; align-content: start; gap: 5px; border: 1px solid #ded6ea; border-radius: 11px; background: #fff; color: #4f4657; text-align: left; box-shadow: none; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.mode-card strong { color: var(--purple-950); font-size: 13px; line-height: 1.35; }
.mode-card span { color: #827a89; font-size: 11.5px; line-height: 1.45; }
.mode-card:hover { border-color: #cdbfee; background: #faf8ff; }
.mode-card.is-active { border-color: #a994eb; background: #f5f1ff; box-shadow: inset 0 0 0 1px rgba(111,75,232,.08), 0 5px 14px rgba(70,43,125,.05); }
.mode-card.is-active strong { color: var(--purple-800); }
.advanced-panel { margin: 0 0 16px; padding: 15px 16px; border: 1px solid #e4dcf0; border-radius: 12px; background: #faf8ff; }
.advanced-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.advanced-heading strong { color: var(--purple-950); font-size: 13px; }
.advanced-heading span { color: #8a8291; font-size: 11.5px; line-height: 1.45; text-align: right; }
.advanced-grid { display: grid; gap: 11px; }
.date-grid { grid-template-columns: minmax(0, 1.45fr) minmax(140px, .8fr) minmax(100px, .45fr); }
.group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-field { max-width: 360px; }
.field input:not(.check-input) { width: 100%; height: 46px; padding: 0 12px; color: #3e3745; background: #fff; border: 1px solid #dcd3e7; border-radius: 9px; outline: none; }
.field input:not(.check-input):focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(111, 75, 232, .1); }
.advanced-note { margin: 11px 0 0; color: #7e7586; font-size: 11.5px; line-height: 1.55; }

.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #fbfaff; border: 1px solid #e9e3f2; border-radius: 11px; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.check-row:hover { background: #f9f7ff; border-color: #d9cff0; }
.check-row .check-input { -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 20px; width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 1px 0 0; padding: 0; display: grid; place-content: center; background: #fff; border: 1.5px solid #c9bddf; border-radius: 5px; box-shadow: inset 0 1px 2px rgba(55, 35, 89, .04); cursor: pointer; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.check-row .check-input::before { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); transform-origin: center; transition: transform .14s ease; }
.check-row .check-input:checked { background: var(--purple-600); border-color: var(--purple-600); box-shadow: 0 2px 6px rgba(111, 75, 232, .22); }
.check-row .check-input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check-row .check-input:focus-visible { outline: 3px solid rgba(129,95,240,.24); outline-offset: 2px; }
.check-row span { display: grid; gap: 3px; min-width: 0; }
.check-row strong { color: #4a4053; font-size: 13px; line-height: 1.4; }
.check-row small { color: #8e8795; font-size: 11.5px; line-height: 1.45; }
.stats-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat-card { padding: 12px; background: #faf9fc; border: 1px solid #ebe6ef; border-radius: 10px; }
.stat-card span { display: block; color: #857d8c; font-size: 11px; }
.stat-card strong { display: block; margin-top: 3px; color: #493f52; font-size: 20px; }
.status-panel { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.55; }
.status-panel.neutral { color: #5d5566; background: #f8f6ff; border: 1px solid #e5ddf7; }
.status-panel.success { color: #286541; background: #f1fbf5; border: 1px solid #cdebd8; }
.status-panel.error { color: #8a5518; background: #fff8ec; border: 1px solid #edd8b8; }
.status-panel.warning { color: #785014; background: #fff8e7; border: 1px solid #ead2a9; }
.confirm-expand-button { justify-self: start; margin-top: 7px; min-height: 36px; padding: 8px 12px; color: #6c42d8; background: #fff; border: 1px solid #cabaf1; border-radius: 8px; font: inherit; font-weight: 750; cursor: pointer; }
.confirm-expand-button:hover { background: #f8f5ff; border-color: #aa94e8; }
.confirm-expand-button:focus-visible { outline: 3px solid rgba(129,95,240,.24); outline-offset: 2px; }
.status-panel ul { margin: 7px 0 0; padding-left: 20px; }
.preview-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eee9f2; }
.preview-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 10px; }
.preview-heading h3 { margin: 4px 0 0; color: var(--purple-950); font-size: 18px; }
.preview-heading > span { color: #8b8292; font-size: 12px; }
.table-scroll { overflow-x: auto; border: 1px solid #e6dfec; border-radius: 12px; }
.excel-repeat-tool table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.excel-repeat-tool th,
.excel-repeat-tool td { padding: 10px 12px; border-bottom: 1px solid #eee9f4; text-align: left; white-space: nowrap; }
.excel-repeat-tool th { color: #4a4053; background: #f6f2ff; font-weight: 800; }
.excel-repeat-tool tbody tr:last-child td { border-bottom: 0; }
.workspace-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.workspace-actions .primary-button { margin-top: 0; }

.landing-shell { width: min(980px, calc(100% - 28px)); margin: 0 auto; padding: 8px 0 72px; }
.landing-section { margin-top: 52px; text-align: left; }
.landing-section:first-child { margin-top: 34px; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin: 10px 0 9px; color: var(--purple-950); font-size: 28px; line-height: 1.25; letter-spacing: -.45px; }
.section-heading p { max-width: 720px; margin: 12px 0 0; color: #7b7482; font-size: 15px; line-height: 1.7; }
.section-underline { display: block; width: 48px; height: 3px; background: linear-gradient(90deg, var(--purple-700), var(--purple-300)); border-radius: 99px; }
.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.step-card,
.feature-card { position: relative; overflow: hidden; padding: 20px; background: linear-gradient(145deg, #fff, #fdfcff); border: 1px solid #e8e1f0; border-radius: 14px; box-shadow: 0 7px 22px rgba(65, 36, 126, .035); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.step-card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--purple-700), var(--purple-300)); opacity: 0; transition: opacity .18s ease; }
.step-card:hover,
.feature-card:hover { transform: translateY(-3px); border-color: #d5c8ef; box-shadow: var(--shadow-hover); }
.step-card:hover::after { opacity: 1; }
.step-number { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: linear-gradient(135deg, var(--purple-700), var(--purple-500)); border-radius: 11px; box-shadow: 0 5px 12px rgba(93, 53, 204, .18); font-size: 13px; font-weight: 850; }
.step-card h3,
.feature-card h3 { margin: 0 0 8px; color: var(--purple-950); font-size: 16px; line-height: 1.35; }
.step-card p,
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.68; }
.guidance-card { position: relative; overflow: hidden; padding: 24px 26px; background: linear-gradient(135deg, #faf8ff 0%, #fff 78%); border: 1px solid #ddd4f1; border-radius: 16px; box-shadow: 0 10px 28px rgba(67, 38, 125, .055); }
.guidance-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--purple-700), var(--purple-300)); }
.guidance-card p { margin: 0; color: #686071; font-size: 15px; line-height: 1.75; }
.guidance-card p + p { margin-top: 12px; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-card { min-height: 154px; border-color: #e9e2f5; box-shadow: 0 8px 24px rgba(65, 36, 126, .035); }
.feature-card:nth-child(1), .feature-card:nth-child(6) { background: linear-gradient(145deg, #fff, #f6f2ff); }
.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, #fdfcff, #f2edff); }
.feature-decor { position: absolute; top: -26px; right: -26px; width: 72px; height: 72px; border-radius: 50%; background: rgba(129, 95, 240, .08); transition: transform .2s ease, background .2s ease; }
.feature-card:hover .feature-decor { background: rgba(129, 95, 240, .13); transform: scale(1.14); }
.feature-card h3,
.feature-card p { position: relative; z-index: 1; }
.faq-list { border-top: 1px solid #ded6ea; }
.faq-item { position: relative; border-bottom: 1px solid #ded6ea; transition: background .18s ease, box-shadow .18s ease; }
.faq-item:hover { background: #faf8ff; }
.faq-item[open],
.faq-item.is-open { background: #f8f5ff; box-shadow: inset 4px 0 0 var(--purple-500); }
.faq-question { width: 100%; min-height: 60px; padding: 17px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; background: transparent; color: #40364d; text-align: left; font-size: 15px; line-height: 1.45; font-weight: 760; }
.faq-symbol { width: 28px; height: 28px; display: grid; place-items: center; flex: none; color: var(--purple-700); background: var(--purple-100); border-radius: 9px; font-size: 19px; line-height: 1; transition: background .18s ease; }
.faq-item.is-open .faq-symbol { background: #e5ddfb; }
.faq-answer { padding: 0 53px 18px 15px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.related-tool-card { position: relative; min-height: 82px; padding: 15px 15px 15px 19px; display: flex; align-items: center; justify-content: space-between; gap: 14px; overflow: hidden; color: inherit; background: linear-gradient(145deg, #fff, #fbf9ff); border: 1px solid #e2dbea; border-radius: 12px; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.related-tool-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-tool-card:hover { transform: translateY(-2px); border-color: #cfc0ef; background: linear-gradient(145deg, #fff, #f6f2ff); box-shadow: var(--shadow-hover); }
.related-tool-card:hover::before { width: 5px; opacity: 1; }
.related-tool-copy { min-width: 0; }
.related-tool-name { display: block; color: var(--purple-950); font-size: 14px; line-height: 1.35; }
.related-tool-meta { display: block; margin-top: 4px; color: #918998; font-size: 11.5px; }
.related-tool-arrow { width: 32px; height: 32px; display: grid; place-items: center; flex: none; color: var(--purple-700); background: var(--purple-100); border-radius: 9px; font-size: 18px; line-height: 1; transition: transform .18s ease, background .18s ease; }
.related-tool-card:hover .related-tool-arrow { transform: translateX(2px); background: #e5ddfb; }
.related-empty { margin: 0; padding: 18px; color: var(--muted); background: #fbfaff; border: 1px dashed #ded4ec; border-radius: 12px; text-align: center; font-size: 14px; }
.excel-repeat-tool .primary-button:focus-visible,
.excel-repeat-tool .text-button:focus-visible,
.excel-repeat-tool select:focus-visible,
.excel-repeat-tool input:focus-visible,
.excel-repeat-tool .faq-question:focus-visible,
.excel-repeat-tool .related-tool-card:focus-visible,
.excel-repeat-tool .upload-zone:focus-visible { outline: 3px solid rgba(129,95,240,.24); outline-offset: 2px; }

@media (max-width: 920px) {
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date-grid { grid-template-columns: 1fr 1fr; }
  .date-grid .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .page-shell,
  .landing-shell { width: calc(100% - 28px); }
  .hero-section { padding: 32px 14px 0; }
  .hero-section h1 { max-width: 340px; margin-top: 10px; font-size: clamp(32px, 9.5vw, 44px); line-height: 1.06; letter-spacing: -1.25px; }
  .hero-copy { margin-bottom: 22px; font-size: 15px; line-height: 1.6; }
  .tool-stage { padding: 0 14px 30px; }
  .upload-zone { min-height: 300px; padding: 38px 20px; border-radius: 16px; }
  .workspace { padding: 18px; border-radius: 16px; }
  .workspace-topline { align-items: flex-start; flex-direction: column; }
  .controls-grid,
  .mode-grid,
  .advanced-grid,
  .stats-grid,
  .steps-grid,
  .features-grid,
  .related-grid { grid-template-columns: 1fr; }
  .controls-grid { gap: 12px; }
  .mode-block { padding: 14px; }
  .mode-card { min-height: 0; }
  .advanced-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .advanced-heading span { text-align: left; }
  .date-grid .field:first-child { grid-column: auto; }
  .field select { height: 50px; }
  .stats-grid { gap: 8px; }
  .workspace-actions .primary-button { width: 100%; min-height: 50px; }
  .trust-row { display: grid; justify-content: center; gap: 8px 10px; width: fit-content; margin: 16px auto 0; text-align: left; }
  .trust-row span { justify-content: flex-start; }
  .landing-shell { padding-bottom: 56px; }
  .landing-section { margin-top: 42px; }
  .landing-section:first-child { margin-top: 32px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 25px; line-height: 1.25; }
  .guidance-card { padding: 22px 20px; }
  .feature-card { min-height: 0; }
  .faq-question { padding: 16px 12px; }
  .faq-answer { padding: 0 44px 16px 12px; }
  .step-card:hover,
  .feature-card:hover,
  .related-tool-card:hover { transform:none; }
  .related-tool-card:hover .related-tool-arrow { transform:none; }
}
@media (prefers-reduced-motion: reduce) {
  .excel-repeat-tool *,
  .excel-repeat-tool *::before,
  .excel-repeat-tool *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
