:root {
  color-scheme: light;
  --ink: #132d3e;
  --muted: #536777;
  --teal: #0f766e;
  --teal-dark: #095d57;
  --teal-pale: #edf8f5;
  --line: #dce5e9;
  --surface: #fff;
  --page: #f7f9fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled, select:disabled { cursor: not-allowed; }
a { color: var(--teal-dark); text-underline-offset: 4px; }
a:hover { color: var(--teal); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #52b9b0; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 20px; line-height: 1.5; letter-spacing: -.025em; }
h3 { font-size: 16px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; border-radius: 10px; color: #fff; background: var(--ink); transform: translateY(-200%); clip-path: inset(50%); }
.skip-link:focus { transform: translateY(0); clip-path: none; }
.site-header { max-width: 1208px; min-height: 88px; margin: auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 760; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 30px; height: 29px; }
.brand-mark span { width: 7px; background: var(--teal); border-radius: 3px; transform: skewY(-13deg); }
.brand-mark span:nth-child(1) { height: 15px; }
.brand-mark span:nth-child(2) { height: 23px; }
.brand-mark span:nth-child(3) { height: 29px; }
.brand-divider { padding: 0 7px; font-size: 19px; color: #9baab4; font-weight: 400; }
.brand-product { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.service-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.service-status::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #8998a3; box-shadow: 0 0 0 4px #e9eef1; }
.service-status[data-state="connected"]::before, .service-status.connected::before { background: #18856b; box-shadow: 0 0 0 4px #e0f2e9; }
.service-status[data-state="disconnected"]::before, .service-status.disconnected::before { background: #b98121; box-shadow: 0 0 0 4px #f8efdb; }
.quiet-link { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 550; }
.quiet-link span { margin-left: 3px; }
main, .site-footer { width: min(1144px, calc(100% - 64px)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: 1fr 360px; align-items: center; gap: 64px; padding: 54px 0 38px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--teal-dark); font-size: 14px; font-weight: 650; letter-spacing: .035em; }
.eyebrow > span { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
h1 { margin-top: 14px; font-size: clamp(34px, 4.2vw, 48px); font-weight: 740; line-height: 1.32; letter-spacing: -.06em; }
.hero-description { margin-top: 20px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-example { position: relative; padding: 25px 28px 21px; background: var(--surface); border: 1px solid #d7e6e3; border-radius: 18px; box-shadow: 0 12px 36px -24px #164f5740; }
.hero-example::after { content: ""; position: absolute; width: 60px; height: 6px; top: -1px; right: 29px; background: var(--teal); border-radius: 0 0 3px 3px; }
.example-label { color: var(--muted); font-size: 14px; }
.example-message { margin: 15px 0 18px; font-size: 20px; font-weight: 600; line-height: 1.7; letter-spacing: -.025em; }
.example-bottom { display: flex; align-items: center; gap: 10px; padding-top: 17px; border-top: 1px dashed var(--line); }
.example-arrow { font-size: 25px; color: var(--teal); line-height: 1; }
.category-chip, .category-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 6px; background: var(--teal-pale); color: var(--teal-dark); font-size: 14px; font-weight: 650; }
.example-caption { margin-left: auto; color: var(--muted); font-size: 14px; }
.steps { display: flex; margin: 0 0 36px; padding: 17px 22px; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: #f0f4f6; }
.steps li { display: flex; align-items: center; flex: 1; gap: 10px; color: #435d6d; font-size: 14px; font-weight: 650; }
.steps li:not(:last-child)::after { content: "→"; margin: 0 auto; color: #9aacb8; font-size: 18px; font-weight: 400; }
.steps li:last-child { flex: .76; }
.step-dot { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border: 1px solid #cfdbe1; border-radius: 50%; background: #fff; color: var(--teal-dark); font-size: 14px; }
.section-intro { display: flex; align-items: baseline; gap: 15px; margin-bottom: 15px; }
.section-intro p { color: var(--muted); font-size: 14px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.preset { display: flex; align-items: center; gap: 13px; min-height: 92px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: left; transition: border-color .16s, background .16s; }
.preset:hover { border-color: #74a9a0; background: #fcfefd; }
.preset[aria-pressed="true"], .preset.active { border-color: var(--teal); background: var(--teal-pale); box-shadow: inset 0 0 0 1px var(--teal); }
.preset > span:nth-child(2) { flex: 1; min-width: 0; }
.preset strong { display: block; margin-bottom: 3px; font-size: 16px; font-weight: 650; }
.preset > span > span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.preset-icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; background: #f1f5f6; color: var(--teal-dark); font-size: 24px; line-height: 1; }
.preset.active .preset-icon, .preset[aria-pressed="true"] .preset-icon { background: #dcefe9; }
.preset-check { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; border: 1px solid #c8d7dd; border-radius: 50%; color: transparent; font-size: 14px; line-height: 1; }
.preset[aria-pressed="true"] .preset-check, .preset.active .preset-check { background: var(--teal); color: #fff; border-color: var(--teal); }
.workbench-grid { display: grid; grid-template-columns: 1.07fr 1fr; gap: 22px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.panel-heading { display: flex; align-items: start; gap: 13px; margin-bottom: 24px; }
.panel-heading p, .run-copy p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.section-number { display: inline-block; padding-top: 4px; color: var(--teal); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mode-switch { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: #f0f4f6; border-radius: 9px; }
.mode-switch button { flex: 1; min-height: 39px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 650; }
.mode-switch button.active, .mode-switch button[aria-pressed="true"] { color: var(--teal-dark); background: #fff; border-color: #dce5e8; box-shadow: 0 1px 3px #17324108; }
label { display: block; margin: 17px 0 8px; font-size: 14px; font-weight: 650; }
.category-panel .panel-heading + label { margin-top: 0; }
textarea, select { display: block; width: 100%; color: var(--ink); background: #fcfdfe; border: 1px solid #c7d4dc; border-radius: 8px; padding: 12px 14px; font-size: 15px; line-height: 1.8; }
textarea { resize: vertical; min-height: 126px; }
textarea::placeholder { color: #697d8a; opacity: 1; }
.short-textarea { min-height: 84px; }
#input-text { min-height: 267px; }
#categories { min-height: 187px; }
select { min-height: 47px; }
.field-help { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.small-tip { display: flex; gap: 9px; margin-top: 16px; padding: 11px 12px; background: #f5f8f9; border-radius: 7px; color: var(--muted); font-size: 14px; }
.small-tip > span { color: var(--teal); }
.file-field { padding: 21px 16px; text-align: center; border: 1px dashed #afc4cf; border-radius: 9px; background: #f8fbfc; }
.file-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #e8f1f2; color: var(--teal); font-size: 23px; }
.file-field p { margin: 8px 0 15px; font-size: 15px; font-weight: 550; }
input[type="file"] { width: 100%; font-size: 14px; color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 12px; border: 1px solid #bacdd5; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.input-preview:not(:empty) { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.input-preview table { min-width: 0; }
.input-preview th, .input-preview td { padding: 8px; font-size: 14px; }
.run-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 23px 26px; background: var(--ink); color: #fff; border-radius: 12px; }
.run-copy { display: flex; align-items: start; gap: 13px; }
.run-copy .section-number { color: #8cdbcb; }
.run-copy h2 { font-size: 18px; }
.run-copy p { color: #c6d5df; }
.run-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; transition: background .16s, border-color .16s; }
.button-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.run-panel .button-primary { background: #8ce1c7; color: #103a37; border-color: #8ce1c7; }
.run-panel .button-primary:hover:not(:disabled) { background: #a7ecd8; border-color: #a7ecd8; }
.button-secondary { border-color: #c9d6dd; background: #fff; color: #294858; }
.button-secondary:hover:not(:disabled) { border-color: #8ba8b4; background: #f4f8f9; }
.run-panel .button-secondary { background: transparent; color: #ecf4f6; border-color: #577181; }
.run-panel .button-secondary:hover:not(:disabled) { background: #244456; border-color: #92a6b3; }
.button:disabled { background: #f1f4f6; border-color: #dce4e8; color: #677d8b; opacity: .75; }
.progress-text { flex-basis: 100%; color: #d4ece8; font-size: 14px; }
.progress-text:empty { display: none; }
.mode-note { margin-top: 14px; padding: 13px 16px; border: 1px solid #c9dfe3; border-left: 3px solid #5d99a5; border-radius: 7px; background: #eef6f8; color: #2d5261; font-size: 14px; line-height: 1.7; }
.mode-note[data-kind="demo"], .mode-note.demo { background: #fff8e9; color: #76521f; border-color: #e8d4a9; }
.error-message { margin-top: 12px; padding: 13px 16px; border: 1px solid #ebc2bd; border-radius: 7px; background: #fff1ee; color: #8f382c; font-size: 14px; overflow-wrap: anywhere; }
.privacy-note { display: flex; align-items: start; gap: 8px; margin: 14px 2px 28px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.privacy-note svg { flex: 0 0 auto; margin-top: 4px; }
.result-panel { padding: 26px 0 0; overflow: hidden; }
.result-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 0 26px; }
.result-header .panel-heading { margin-bottom: 22px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 35px 24px 44px; text-align: center; background: linear-gradient(180deg, #fff, #fcfdfe); }
.empty-icon { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 54px; margin-bottom: 16px; padding: 10px; border: 1px solid #c9d9df; border-radius: 8px; background: #f5f9fa; transform: rotate(-5deg); }
.empty-icon i { height: 4px; border-radius: 2px; background: #c1d4dc; }
.empty-icon i:last-child { width: 65%; background: #8dbcb3; }
.empty-state h3 { font-weight: 600; }
.empty-state p { max-width: 460px; margin-top: 7px; color: var(--muted); font-size: 14px; }
.table-scroll { overflow: auto; width: 100%; }
table { width: 100%; min-width: 710px; border-collapse: collapse; text-align: left; }
th { padding: 12px 18px; background: #f2f6f7; color: #456170; border-block: 1px solid var(--line); font-size: 14px; font-weight: 650; white-space: nowrap; }
td { padding: 16px 18px; border-bottom: 1px solid #e5ecef; vertical-align: top; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
th:first-child, td:first-child { width: 62px; padding-left: 26px; color: var(--muted); font-variant-numeric: tabular-nums; }
th:nth-child(2), td:nth-child(2) { width: 48%; }
th:last-child, td:last-child { padding-right: 26px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfd; }
.status-label, .status-chip { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #edf7f2; color: #266349; font-size: 14px; white-space: nowrap; }
.status-label.error, .status-chip.error { background: #fff0ec; color: #9a402e; }
.status-label.demo, .status-chip.demo { background: #fff5df; color: #7c5b27; }
.result-footnote { padding: 16px 26px; border-top: 1px solid var(--line); color: var(--muted); background: #fcfdfe; font-size: 14px; line-height: 1.7; }
.under-workbench { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; margin-top: 22px; }
.advanced-details { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.advanced-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 17px 20px; color: #395563; font-size: 14px; font-weight: 650; list-style: none; }
.advanced-details summary::-webkit-details-marker { display: none; }
.details-plus { color: #718b98; font-size: 20px; font-weight: 400; line-height: 1; }
.advanced-details[open] .details-plus { transform: rotate(45deg); }
.details-body { padding: 0 20px 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.details-body p + p { margin-top: 10px; }
.details-body .button { margin-top: 14px; }
.details-body h3 { margin-top: 23px; color: var(--ink); font-size: 14px; }
pre { overflow: auto; max-height: 350px; margin: 9px 0 0; padding: 14px; border: 1px solid #dce5e9; border-radius: 7px; color: #3c5261; background: #f4f7f9; font-size: 14px; line-height: 1.65; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer > div { display: flex; gap: 22px; flex: 0 0 auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr 320px; gap: 34px; }
  .preset { gap: 10px; padding: 14px; }
  .preset-icon { display: none; }
  .panel { padding: 22px; }
  .result-panel { padding: 22px 0 0; }
  .run-panel { padding: 22px; }
  .run-actions { margin-left: 27px; }
  .run-panel { gap: 18px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 76px; padding: 18px 22px; gap: 15px; }
  .header-actions { gap: 12px; }
  .header-actions .quiet-link { display: none; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-product, .brand-divider { display: none; }
  main, .site-footer { width: calc(100% - 40px); }
  .hero { padding-top: 34px; grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: 37px; }
  .hero-description { margin-top: 15px; font-size: 16px; }
  .hero-example { padding: 20px 24px; }
  .example-message br { display: none; }
  .example-message { margin-top: 10px; font-size: 18px; }
  .example-bottom { padding-top: 12px; }
  .steps { padding: 14px 12px; margin-bottom: 28px; }
  .steps li { gap: 7px; flex-direction: column; }
  .steps li:last-child { flex: 1; }
  .steps li:not(:last-child)::after { display: none; }
  .section-intro { flex-direction: column; gap: 2px; }
  .preset-grid { gap: 8px; }
  .preset { min-height: 108px; padding: 13px 10px; align-items: start; gap: 3px; }
  .preset strong { font-size: 14px; }
  .preset > span > span { font-size: 14px; }
  .preset-check { width: 14px; height: 14px; font-size: 14px; margin-top: 4px; }
  .workbench-grid { grid-template-columns: 1fr; gap: 16px; }
  .panel { padding: 22px 20px; }
  .panel-heading { margin-bottom: 20px; }
  .run-panel { margin-top: 16px; padding: 22px 20px; }
  .run-actions { width: 100%; margin-left: 0; }
  .run-actions .button { flex: 1; }
  .privacy-note { margin-bottom: 23px; }
  .result-panel { padding: 22px 0 0; }
  .result-header { padding: 0 20px; flex-wrap: wrap; gap: 0; }
  .result-header .panel-heading { margin-bottom: 14px; }
  .result-header > .button { margin: 0 0 20px 27px; }
  .result-footnote { padding: 15px 20px; }
  .empty-state { padding-top: 20px; }
  .under-workbench { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { flex-direction: column; align-items: start; gap: 12px; margin-top: 34px; }
}
@media (max-width: 420px) {
  main, .site-footer { width: calc(100% - 28px); }
  .site-header { padding-inline: 16px; flex-wrap: wrap; }
  .service-status { font-size: 14px; gap: 7px; }
  h1 { font-size: 33px; }
  .desktop-break { display: none; }
  .preset-grid { grid-template-columns: 1fr; }
  .preset { min-height: 72px; align-items: center; gap: 12px; padding: 12px 15px; }
  .preset-icon { display: grid; }
  .preset strong { font-size: 16px; }
  .preset-check { width: 18px; height: 18px; font-size: 14px; margin-top: 0; }
  .steps { padding-inline: 7px; }
  .steps li { font-size: 14px; }
  .run-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
