.km-page {
  --km-ink: #15151b;
  --km-muted: #555866;
  --km-rule: #e4e5eb;
  --km-blue: #3545db;
  --km-wash: #f6f7fa;
  color: var(--km-ink);
  font-family: Geist, -apple-system, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.km-page [hidden] { display: none !important; }
.asin-public .km-page a:not(.button) { color: var(--km-blue); }
.km-page :is(a, button, summary, select, [role="tabpanel"]):focus-visible { outline: 2px solid var(--km-blue); outline-offset: 3px; }
.km-page .button { min-height: 42px; border-radius: 9px; }
.km-page .button.secondary { border-color: #dedfe7; background: #fff; color: var(--km-ink); }
.km-page .button.secondary:hover:not(:disabled) { border-color: #a7aab9; background: #f9f9fb; }
.km-page .asin-code { margin: 0; }
.km-page .asin-code pre { font-size: .86rem; line-height: 1.55; background: var(--km-wash); border-color: var(--km-rule); }
.km-page .asin-code [data-copy] { margin: .4rem 0 .4rem auto; padding: .3rem .65rem; min-height: 34px; max-width: 100%; font-size: .84rem; }

.km-hero { background: radial-gradient(ellipse at 87% -10%, #e8eaff 0, transparent 57%), #f7f8fa; border-bottom: 1px solid var(--km-rule); }
.km-hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: start; gap: clamp(2rem,5.5vw,5rem); padding-block: clamp(2rem, 4vw, 3.6rem) 2.25rem; }
.km-intro { min-width: 0; }
.km-hero-meta { display: flex; align-items: center; gap: .8rem; font-size: .86rem; }
.km-hero-meta span { font-weight: 650; background: #eceeff; color: #3545bc; border: 1px solid #dcdef7; border-radius: 6px; padding: .15rem .45rem; }
.asin-public .km-hero-meta a { color: var(--km-muted); }
.km-hero h1 { margin: .9rem 0 0; font-size: clamp(2.7rem, 5vw, 4.4rem); line-height: 1.09; letter-spacing: -.045em; font-weight: 640; }
.km-hero h1 strong { font-weight: inherit; color: var(--km-blue); }
.km-intro-copy { max-width: 33rem; margin: 1.05rem 0 0; font-size: 1.06rem; line-height: 1.7; color: var(--km-muted); text-wrap: pretty; }
.km-hero-actions, .km-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.km-hero-actions { margin-top: 1.2rem; }
.km-hero-actions .button { padding-inline: 1rem; }
.km-endpoint {
  display: flex; width: fit-content; max-width: 100%; align-items: center; flex-wrap: wrap; gap: .25rem .65rem;
  margin-top: .9rem; padding: .28rem .38rem .28rem .65rem; border: 1px solid var(--km-rule); border-radius: 8px; background: #fff;
}
.km-endpoint > span { color: var(--km-muted); font-size: .84rem; }
.km-endpoint .asin-code { display: flex; flex-wrap: wrap; gap: .2rem .55rem; align-items: center; }
.km-endpoint .asin-code pre { order: -1; border: 0; background: transparent; padding: .18rem 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.km-endpoint .asin-code [data-copy] { margin: 0; min-height: 31px; background: var(--km-wash); }
.km-access { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.km-access li { display: inline-flex; gap: .3rem; align-items: center; color: var(--km-muted); font-size: .86rem; }
.km-access svg, .km-status svg { width: 15px; height: 15px; color: #168a52; flex: none; }

.km-client-mark { display: inline-grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #15161b; color: #fff; font-size: .84rem; font-weight: 690; }
.km-client-mark svg { width: 66%; height: 66%; }
.km-client-mark:is([data-brand="claude"], [data-brand="claudecode"]) { background: #b95838; }
.km-client-mark[data-brand="n8n"] { background: #c73b62; }
.km-client-mark[data-brand="cherrystudio"] { background: #c8323b; }
.km-client-mark[data-brand="coze"] { background: #4944ce; }
.km-client-mark:is([data-brand="dify"], [data-brand="feishu"], [data-brand="vscode"]) { background: #225ad4; }
.km-client-mark[data-brand="other"] { background: #555762; }
.km-client-strip { margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid var(--km-rule); }
.km-client-strip p { font-size: .88rem; color: var(--km-muted); margin: 0 0 .45rem; }
.km-client-strip ul { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.asin-public .km-client-strip a { display: grid; min-width: 36px; min-height: 36px; place-items: center; border-radius: 8px; }
.km-client-strip .km-client-mark { width: 29px; height: 29px; border-radius: 7px; }
.asin-public .km-client-strip a:hover { background: #e8ebf8; }

.km-lab { border: 1px solid #dfe2ee; border-radius: 18px; background: #fff; box-shadow: 0 20px 48px -29px #292f704f; min-width: 0; overflow: hidden; }
.km-lab-bar, .km-lab-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .65rem .95rem; }
.km-lab-bar { border-bottom: 1px solid var(--km-rule); }
.km-lab-footer { border-top: 1px solid var(--km-rule); background: #fbfbfd; }
.km-lab h2, .km-lab h3 { display: flex; align-items: center; gap: .46rem; margin: 0; font-size: .92rem; font-weight: 620; }
.km-lab-sample { padding: .18rem .45rem; border-radius: 5px; background: #eff1f9; color: #4a5369; font-size: .79rem; }
.km-lab-content { display: grid; gap: .8rem; padding: .9rem .95rem .65rem; }
.km-message { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: .5rem; }
.km-message > span { color: var(--km-muted); font-size: .84rem; padding: .52rem .05rem 0 0; }
.km-message p { margin: 0; padding: .5rem .65rem; background: #f1f2f7; border-radius: 10px 10px 10px 4px; font-size: .91rem; line-height: 1.55; }
.km-lab-code { padding: .65rem .75rem; border: 1px solid #e0e4f5; border-radius: 9px; background: #f6f7ff; font-size: .86rem; }
.km-lab-code > div { display: flex; align-items: center; flex-wrap: wrap; gap: .32rem .5rem; }
.km-lab-code :is(code,b) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.km-lab-code > div code { color: #3c4890; background: #e6e9ff; padding: .06rem .35rem; border-radius: 4px; }
.km-lab-code b { font-weight: 600; }
.km-lab-code dl { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin: .38rem 0 0; font-size: .78rem; }
.km-lab-code dl div { display: flex; gap: .28rem; flex-wrap: wrap; }
.km-lab-code dt { color: var(--km-muted); }
.km-lab-code dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.km-result-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; }
.km-result-heading > span { font-size: .82rem; color: var(--km-muted); }
.km-lab-results { width: 100%; border-collapse: collapse; margin-top: .3rem; table-layout: fixed; font-size: .86rem; }
.km-lab-results :is(th, td) { min-width: 0; vertical-align: middle; border-bottom: 1px solid var(--km-rule); padding: .38rem 0 .38rem .5rem; text-align: right; }
.km-lab-results th:first-child { width: 62%; padding-inline-start: 0; text-align: left; }
.km-lab-results th { position: static; z-index: auto; background: transparent; white-space: normal; }
.km-lab-results tbody tr:nth-child(even), .km-lab-results tbody tr:hover { background: transparent; }
.km-lab-results thead th { font-size: .8rem; font-weight: 520; color: var(--km-muted); }
.km-lab-results tbody th { color: var(--km-ink); font-weight: 520; overflow-wrap: anywhere; }
.km-lab-results tbody tr:last-child :is(th, td) { border-bottom: 0; }
.km-lab-results code { display: block; font-size: .75rem; color: var(--km-muted); }
.km-lab-results td { font-variant-numeric: tabular-nums; }
.km-status { display: flex; align-items: center; gap: .3rem; color: var(--km-muted); font-size: .83rem; }
.km-page .km-demo-button { min-height: 36px; }
.km-demo-button:disabled { opacity: .75; cursor: wait; }

.km-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 0 1.75rem; border: 1px solid var(--km-rule); border-radius: 12px; background: #fff; }
.km-facts > div { padding: .8rem 1rem; }
.km-facts > div + div { border-inline-start: 1px solid var(--km-rule); }
.km-facts dt { font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 620; letter-spacing: -.02em; }
.km-facts dd { margin: .2rem 0 0; color: var(--km-muted); font-size: .85rem; line-height: 1.45; }
.km-toc { display: flex; flex-wrap: wrap; gap: .1rem .55rem; padding: .6rem 0; border-bottom: 1px solid var(--km-rule); font-size: .9rem; }
.asin-public .km-toc a { display: block; padding: .42rem .48rem; border-radius: 6px; color: var(--km-muted); text-decoration: none; }
.asin-public .km-toc a:hover { background: var(--km-wash); color: var(--km-blue); }
.km-section { padding-block: clamp(2.1rem,4.2vw,3.75rem); border-bottom: 1px solid var(--km-rule); }
.km-heading { margin-bottom: 1.25rem; }
.km-heading h2 { font-size: clamp(1.65rem,3vw,2.25rem); font-weight: 600; letter-spacing: -.027em; line-height: 1.23; margin: 0; }
.km-heading p, .km-section p { color: var(--km-muted); line-height: 1.6; margin: .45rem 0 0; }
.km-section h3 { font-size: 1.04rem; margin: 0; font-weight: 600; }
.km-steps, .km-examples, .km-tools, .km-usage { display: grid; gap: .75rem; }
.km-steps { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.km-steps li, .km-examples article, .km-usage article {
  min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 1rem;
  border: 1px solid var(--km-rule); border-radius: 12px; background: #fff;
}
.km-steps li:nth-child(2) { border-color: #b5bffc; box-shadow: 0 0 0 2px #eceeff; }
.km-step-number { display: grid; width: 27px; height: 27px; place-items: center; margin-bottom: .65rem; border-radius: 7px; background: #edf0ff; color: var(--km-blue); font-weight: 650; font-size: .82rem; }
.km-steps li > p { margin-bottom: .85rem; }
.km-steps li > .button, .km-steps li > a { margin-top: auto; }
.km-steps blockquote { margin: 0 0 .85rem; padding: .6rem .7rem; border-inline-start: 2px solid #aebaff; border-radius: 0 7px 7px 0; background: var(--km-wash); font-size: .91rem; }
.km-setup-prompt { width: 100%; }
.km-setup-prompt .asin-code pre, .km-examples pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.km-setup-prompt .asin-code pre { order: -1; font-size: .86rem; }
.km-setup-prompt .asin-code code, .km-examples .asin-code code { font: inherit; }
.km-prompt-links { display: flex; flex-wrap: wrap; gap: .45rem .85rem; font-size: .88rem; }

.km-manual { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.1fr); gap: .85rem; align-items: start; }
.km-manual-aside { position: sticky; top: calc(var(--site-header-height) + 16px); padding: 1rem; border: 1px solid var(--km-rule); border-radius: 12px; background: var(--km-wash); }
.km-manual-aside dl { display: grid; gap: .7rem; margin: .75rem 0 1rem; }
.km-manual-aside dt { font-size: .85rem; color: var(--km-muted); }
.km-manual-aside dd { margin: .2rem 0 0; font-size: .93rem; }
.km-manual-aside pre { order: -1; white-space: pre-wrap; overflow-wrap: anywhere; }
.km-manual-links { display: flex; flex-wrap: wrap; gap: .5rem .8rem; font-size: .9rem; }
.km-clients { border: 1px solid #dedfe7; border-radius: 13px; background: #fff; }
.km-clients details + details { border-top: 1px solid var(--km-rule); }
.km-clients details:target { box-shadow: inset 3px 0 var(--km-blue); }
.km-clients summary {
  list-style: none; display: grid; grid-template-columns: auto minmax(7rem,auto) minmax(0,1fr) auto 16px; align-items: center;
  gap: .55rem; min-height: 52px; padding: .5rem .85rem; cursor: pointer;
}
.km-clients summary::-webkit-details-marker, .km-faq summary::-webkit-details-marker { display: none; }
.km-clients summary:hover, .km-clients details[open] summary { background: #f7f8fb; }
.km-clients details:first-child summary { border-radius: 12px 12px 0 0; }
.km-clients details:last-child:not([open]) summary { border-radius: 0 0 12px 12px; }
.km-clients summary strong { font-size: .96rem; font-weight: 620; }
.km-client-hint { font-size: .83rem; color: var(--km-muted); overflow-wrap: anywhere; }
.km-auth { color: #39435b; background: #eeeff3; font-size: .8rem; border-radius: 6px; padding: .14rem .4rem; }
.km-auth[data-auth="OAuth"] { color: #2a3eb9; background: #eaeefe; }
.km-client-chevron, .km-faq summary svg { width: 16px; height: 16px; flex: none; color: var(--km-muted); }
.km-clients details[open] .km-client-chevron, .km-faq details[open] svg { transform: rotate(180deg); }
.km-client-body { padding: .8rem .85rem .9rem; }
.km-client-steps { display: grid; gap: .75rem; margin: 0; padding-inline-start: 1.45rem; }
.km-client-steps li::marker { color: var(--km-blue); font-weight: 600; }
.km-client-steps p { font-size: .91rem; }
.km-client-steps .asin-code pre { background: #181b27; color: #f0f2fd; border-color: #181b27; }
.km-client-foot { margin: .6rem 0 0 1.45rem; font-size: .86rem; }

.km-examples, .km-tools { grid-template-columns: repeat(3,minmax(0,1fr)); }
.km-examples h3 { overflow-wrap: anywhere; }
.km-examples .asin-code { width: 100%; flex: 1; grid-template-rows: 1fr auto; }
.km-examples .asin-code pre { order: -1; border: 0; padding: .5rem 0 0; line-height: 1.6; background: #fff; }
.km-call { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; align-items: center; margin-top: .8rem; padding: 1rem; border: 1px solid var(--km-rule); border-radius: 12px; background: var(--km-wash); }
.km-tool-controls { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .6rem; margin-bottom: .7rem; }
.km-workflow-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
.km-workflow-tabs button { display: inline-flex; gap: .46rem; align-items: center; min-height: 42px; padding: .28rem .62rem; border: 1px solid #dedfe7; border-radius: 9px; background: #fff; color: var(--km-ink); font: inherit; font-size: .92rem; }
.km-workflow-tabs button:hover { background: #fafaff; }
.km-workflow-tabs button[aria-selected="true"] { border-color: #a2acfa; background: #f0f1ff; }
.km-market-select { display: grid; gap: .2rem; font-size: .82rem; color: var(--km-muted); }
.km-market-select select { max-width: 100%; min-height: 42px; padding: .32rem .4rem; border: 1px solid #dedfe7; border-radius: 8px; background: #fff; color: var(--km-ink); font: inherit; }
.km-task { padding: .95rem; border: 1px solid var(--km-rule); border-radius: 12px; background: var(--km-wash); }
.km-task + .km-task:not([hidden]) { margin-top: .65rem; }
.km-task-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.km-task-head a { font-size: .88rem; }
.km-task-prompt { margin-block: .65rem; }
.km-task-prompt > p { font-size: .86rem; }
.km-task-prompt .asin-code pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: #eef0ff; }
.km-task-prompt .asin-code code { font: inherit; }
.km-page a.km-tool { display: grid; gap: .26rem; min-width: 0; padding: .8rem; border: 1px solid var(--km-rule); border-radius: 9px; background: #fff; text-decoration: none; color: var(--km-ink); }
.km-page a.km-tool:hover { border-color: #a3acff; background: #fafaff; }
.km-tool b { font-weight: 580; }
.km-tool code { color: var(--km-blue); overflow-wrap: anywhere; font-size: .84rem; }
.km-tool small { color: var(--km-muted); font-size: .84rem; }
.km-usage { grid-template-columns: repeat(4,minmax(0,1fr)); }
.km-usage p { flex: 1; margin-bottom: .65rem; }
.km-usage a { font-size: .9rem; }
.km-section#faq { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 1rem 2rem; }
.km-faq details { border-bottom: 1px solid var(--km-rule); min-width: 0; }
.km-faq details:first-child { border-top: 1px solid var(--km-rule); }
.km-faq summary { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .85rem 0; cursor: pointer; font-weight: 560; list-style: none; }
.km-faq p { padding: 0 1rem .8rem 0; margin: 0; }
.km-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 1.9rem 0 3rem; padding: clamp(1.1rem,3vw,1.9rem); background: #181a27; color: #fff; border-radius: 14px; }
.km-end h2 { font-size: clamp(1.35rem,2.5vw,1.85rem); font-weight: 600; margin: 0; }
.km-end p { margin: .36rem 0 0; color: #d1d3e3; line-height: 1.6; }
.asin-public .km-end .button.primary, .asin-public .km-end .button.primary:hover { background: #fff; color: #15151b; }
.asin-public .km-end .button.secondary { border-color: #606578; background: #181a27; color: #fff; }
.asin-public .km-end .button.secondary:hover { background: #272b3b; }
.asin-footer.km-footer { width: min(1200px,calc(100% - 4rem)); display: grid; grid-template-columns: minmax(0,1.35fr) repeat(3,minmax(0,1fr)); gap: 1.3rem 2rem; align-items: start; padding-block: 1.8rem; }
.km-footer p { margin: .6rem 0 0; color: #555866; line-height: 1.6; }
.km-footer nav { display: grid; gap: .55rem; align-content: start; }
.km-footer nav strong { font-size: .94rem; color: #15151b; margin-bottom: .13rem; }
.asin-public .km-footer nav a { width: fit-content; color: #555866; text-decoration: none; }
.asin-public .km-footer nav a:hover { color: #3545db; text-decoration: underline; }

.km-page .am-tile { --size: 20px; display: inline-grid; flex: none; width: var(--size); height: var(--size); place-items: center; border-radius: 5px; background: var(--tile,#24283b); color: #fff; }
.km-page .am-tile svg { width: 72%; height: 72%; }
.km-page .am-tile-26 { --size: 24px; }
.km-page .am-tile--blue { --tile: #3558d4; }
.km-page .am-tile--violet { --tile: #6949d2; }
.km-page .am-tile--green { --tile: #138651; }
.km-page .am-tile--orange { --tile: #b8542f; }
.km-page .am-tile--red { --tile: #bf3658; }

@media (max-width: 920px) {
  .km-hero-grid { gap: 1.2rem; }
  .km-usage { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .km-manual { grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); }
}
@media (max-width: 760px) {
  .km-hero-grid, .km-manual { grid-template-columns: 1fr; }
  .km-hero-grid { padding-block: 1.6rem 1.15rem; }
  .km-manual-aside { position: static; }
  .km-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .km-facts > div:nth-child(3) { border-inline-start: 0; }
  .km-facts > div:nth-child(n+3) { border-top: 1px solid var(--km-rule); }
  .km-examples, .km-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .km-steps, .km-examples, .km-call, .km-section#faq { grid-template-columns: 1fr; }
  .km-hero h1 { font-size: clamp(2.3rem, 10vw, 3.25rem); }
  .km-intro-copy { font-size: 1rem; }
  .km-clients summary { grid-template-columns: auto minmax(0,1fr) auto 16px; gap: .3rem .5rem; }
  .km-client-hint { grid-row: 2; grid-column: 2 / -1; }
  .asin-footer.km-footer { width: calc(100% - 2rem); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
}
@media (max-width: 355px) {
  .km-tools, .km-usage { grid-template-columns: 1fr; }
  .km-lab-results th:first-child { width: 57%; }
}
