:root {
  --ink: #111311;
  --muted: #686b66;
  --line: #dfe1dc;
  --soft-line: #eceee9;
  --paper: #f6f7f3;
  --white: #fff;
  --soft: #eeefe9;
  --radius: 18px;
  --shadow: 0 28px 70px rgba(22, 25, 20, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.primary-button { border-radius: 28px; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; cursor: pointer; }
.primary-button { border: 1px solid var(--ink); background: var(--ink); color: var(--white); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.primary-button svg { width: 18px; }
.skills-section { background: var(--white); padding: 22px max(24px, calc((100% - 1200px) / 2)) 72px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 22px; }
.section-kicker { font-size: 9px; font-weight: 750; letter-spacing: .18em; color: #777a74; margin: 0 0 7px; }
.section-heading h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(30px, 3vw, 42px); line-height: 1.14; letter-spacing: -.04em; margin: 0; }
.workflow h2, .standards h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.16; letter-spacing: -.04em; font-weight: 500; margin: 0; }
.section-heading > p { max-width: 390px; margin: 0 0 2px; color: var(--muted); line-height: 1.6; font-size: 12px; }
.skill-toolbar { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-end; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.category-nav { min-width: 0; flex: 1 1 auto; position: relative; overflow: hidden; }
.filter-tabs { width: 100%; display: flex; flex-wrap: nowrap; align-items: end; gap: 20px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button { flex: 0 0 auto; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; padding: 0 0 9px; color: #8a8c87; background: none; cursor: pointer; font-size: 12px; }
.filter-tabs button:focus-visible { outline: 2px solid rgba(17,19,17,.22); outline-offset: 3px; }
.filter-tabs button.active { color: var(--ink); border-color: var(--ink); }
.filter-tabs { padding-right: 12px; }
.category-nav.can-scroll-right::after { content: ""; position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 28px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), var(--white) 82%); }
.search-box { flex: 0 0 150px; display: flex; align-items: center; padding: 2px 0; }
.search-box svg { width: 16px; color: #8b8d88; margin-right: 8px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box:focus-within { outline: 2px solid rgba(17,19,17,.22); outline-offset: 3px; }
.catalog-loading { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.catalog-loading[hidden] { display: none; }
.loading-spinner { width: 14px; height: 14px; border: 1.5px solid var(--soft-line); border-top-color: var(--ink); border-radius: 50%; animation: catalog-spin .8s linear infinite; }
.catalog-loading.is-error { color: #9b5148; }
.catalog-loading.is-error .loading-spinner { display: none; }
@keyframes catalog-spin { to { transform: rotate(360deg); } }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.skill-card { min-height: 312px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .32s ease, color .32s ease, transform .32s ease, box-shadow .32s ease; }
.skill-card:hover { position: relative; z-index: 2; color: white; background: var(--ink); box-shadow: 0 18px 42px rgba(17,19,17,.2); }
.skill-card[hidden] { display: none; }
.card-top { display: flex; align-items: start; justify-content: space-between; height: 48px; }
.category-badges { max-width: 150px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.category-more { position: relative; max-width: none; overflow: visible !important; }
.category-more::after { content: attr(data-tooltip); position: absolute; z-index: 8; top: calc(100% + 7px); right: 0; width: max-content; max-width: 250px; padding: 8px 10px; border: 1px solid #444842; border-radius: 6px; color: #f4f5f1; background: #20241f; box-shadow: 0 8px 20px rgba(0,0,0,.18); font-size: 10px; line-height: 1.45; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity .1s ease, transform .1s ease; }
.category-more:hover::after { opacity: 1; transform: translateY(0); }
.category-badges span { max-width: 105px; overflow: hidden; padding: 5px 8px; border: 1px solid var(--line); border-radius: 12px; color: #777a74; font-size: 9px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; transition: color .32s ease, border-color .32s ease; }
.category-badges .category-more { max-width: none; }
.skill-card:hover .category-badges span { color: #d1d3ce; border-color: #494c47; }
.skill-icon { width: 40px; height: 40px; display: grid; place-items: center; position: relative; border-radius: 9px; background: #f1f2ed; color: var(--ink); transition: background .32s ease, transform .32s ease; }
.skill-card:hover .skill-icon { background: white; transform: rotate(-4deg) scale(1.05); }
.tag { border: 1px solid var(--line); color: #777a74; font-size: 9px; padding: 5px 8px; border-radius: 12px; transition: color .32s ease, border-color .32s ease; }
.tag.subtle { border-color: var(--line); color: #777a74; }
.skill-card:hover .tag, .skill-card:hover .tag.subtle { color: #d1d3ce; border-color: #494c47; }
.card-index { margin: 18px 0 7px; font-size: 8px; letter-spacing: .14em; color: #989b94; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-card h3 { margin: 0 0 9px; font-family: Georgia, "Songti SC", serif; font-size: 19px; font-weight: 550; }
.skill-card > p:not(.card-index) { margin: 0; color: #71746e; font-size: 11px; line-height: 1.7; transition: color .32s ease; }
.skill-card:hover > p:not(.card-index) { color: #bfc1bc; }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 16px; }
.card-meta span { border: 1px solid var(--line); padding: 5px 8px; border-radius: 3px; font-size: 9px; color: #7d8079; transition: color .32s ease, border-color .32s ease; }
.skill-card:hover .card-meta span { border-color: #494c47; color: #c4c6c1; }
.card-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6px; margin-top: 13px; }
.card-link { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-size: 10px; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.card-link.use { color: white; background: var(--ink); border-color: var(--ink); }
.skill-card:hover .card-link.preview { color: white; background: transparent; border-color: #5a5d57; }
.skill-card:hover .card-link.use { color: var(--ink); background: white; border-color: white; }
.skill-card:hover .card-link.preview:hover { background: #292c28; border-color: #777a74; }
.skill-card:hover .card-link.use:hover { background: #e7e9e3; border-color: #e7e9e3; }
.card-link:hover span { transform: translateX(3px); }
.card-link span { transition: transform .2s; }
.empty-state { display: none; text-align: center; padding: 60px 0; color: var(--muted); }
.empty-state.show { display: block; }

.icon-search i { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; position: relative; }
.icon-search i::after { content: ""; position: absolute; width: 8px; height: 2px; background: var(--ink); right: -6px; bottom: -3px; transform: rotate(45deg); }
.skill-icon svg { width: 28px; }
.icon-report { align-content: center; gap: 4px; }
.icon-report i { display: block; height: 2px; background: var(--ink); width: 21px; }
.icon-report i:nth-child(2) { width: 15px; }
.icon-chart { display: flex; align-items: end; justify-content: center; gap: 3px; padding-bottom: 12px; }
.icon-chart i { width: 4px; background: var(--ink); display: block; }
.icon-chart i:nth-child(1) { height: 9px; }.icon-chart i:nth-child(2) { height: 16px; }.icon-chart i:nth-child(3) { height: 12px; }.icon-chart i:nth-child(4) { height: 21px; }
.icon-compare i { position: absolute; width: 17px; height: 22px; border: 1.5px solid var(--ink); border-radius: 2px; }
.icon-compare i:first-child { transform: translate(-5px,-3px); }.icon-compare i:last-child { transform: translate(5px,3px); background: #f1f2ed; }
.icon-drug i { width: 25px; height: 11px; border: 1.5px solid var(--ink); border-radius: 8px; transform: rotate(-42deg); }
.icon-drug i::after { content: ""; display: block; height: 100%; width: 50%; background: var(--ink); border-radius: 7px 0 0 7px; }
.icon-case i:first-child { width: 21px; height: 25px; border: 1.5px solid var(--ink); border-radius: 2px; }
.icon-case i:last-child { position: absolute; width: 10px; height: 2px; background: var(--ink); box-shadow: 0 5px var(--ink); }
.icon-study i { position: absolute; background: var(--ink); }
.icon-study i:first-child { width: 22px; height: 2px; }.icon-study i:nth-child(2) { height: 22px; width: 2px; }.icon-study i:last-child { width: 9px; height: 9px; border: 2px solid #f1f2ed; border-radius: 50%; }

.workflow { padding: 72px max(24px, calc((100% - 1200px) / 2)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; background: #f0f1ec; }
.workflow-copy > p:not(.section-kicker) { max-width: 440px; margin: 18px 0 22px; color: var(--muted); line-height: 1.75; font-size: 13px; }
.workflow-copy .primary-button { font-size: 13px; }
.workflow-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid #cfd1cb; }
.workflow-steps li { display: grid; grid-template-columns: 48px 1fr 26px; align-items: center; min-height: 79px; border-bottom: 1px solid #cfd1cb; }
.workflow-steps li > span { font: italic 13px Georgia, serif; color: #989b94; }
.workflow-steps strong { font-family: Georgia, "Songti SC", serif; font-size: 15px; font-weight: 550; }
.workflow-steps p { margin: 4px 0 0; font-size: 10px; color: #858781; }
.workflow-steps i { font-style: normal; color: #989b94; }

.standards { background: var(--ink); color: var(--white); padding: 68px max(24px, calc((100% - 1200px) / 2)); }
.standards > div:first-child { display: flex; justify-content: space-between; align-items: start; }
.standards .section-kicker { color: #8c8f88; }
.standard-list { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 40px; border-top: 1px solid #363835; border-left: 1px solid #363835; }
.standard-list article { padding: 23px; min-height: 152px; border-right: 1px solid #363835; border-bottom: 1px solid #363835; }
.standard-list span { font: italic 11px Georgia, serif; color: #787b75; }
.standard-list h3 { margin: 28px 0 8px; font-family: Georgia, "Songti SC", serif; font-weight: 500; font-size: 18px; }
.standard-list p { margin: 0; color: #9da09a; line-height: 1.7; font-size: 12px; }

.demo-modal { width: min(650px, calc(100% - 30px)); border: 0; border-radius: 20px; padding: 38px; color: var(--ink); background: var(--white); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.demo-modal::backdrop { background: rgba(15,17,14,.55); backdrop-filter: blur(5px); }
.demo-modal h2 { margin: 0 0 10px; font: 500 34px Georgia, "Songti SC", serif; }
.demo-modal > p:not(.section-kicker) { color: var(--muted); line-height: 1.7; font-size: 13px; max-width: 500px; }
.modal-close { position: absolute; right: 22px; top: 18px; border: 0; background: none; font-size: 26px; cursor: pointer; color: #777; }
.demo-window { margin-top: 25px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.demo-question { padding: 17px; display: flex; gap: 12px; background: #f4f5f1; }
.demo-question span { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; font-size: 10px; }
.demo-question p { font-size: 12px; margin: 5px 0; }
.demo-progress { display: flex; align-items: center; gap: 9px; color: #8a8c87; font-size: 9px; padding: 10px 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-progress i { width: 6px; height: 6px; background: #2b9b60; border-radius: 50%; box-shadow: 0 0 0 3px rgba(43,155,96,.12); }
.demo-answer { padding: 20px; }
.demo-answer small { color: #8a8c87; }
.demo-answer h3 { font: 500 19px Georgia, serif; margin: 9px 0; }
.demo-answer p { color: var(--muted); line-height: 1.7; font-size: 11px; }
.demo-answer div { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-answer div span { font-size: 9px; border: 1px solid var(--line); padding: 5px 7px; border-radius: 3px; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.modal-footer > span { color: #92948f; font-size: 9px; }
.modal-footer .primary-button { height: 40px; font-size: 12px; }
.standalone-modal > p:not(.section-kicker) { max-width: 510px; }
.standalone-download { margin-top: 10px; text-decoration: none; }
.debug-details { margin-top: 28px; border-top: 1px solid var(--soft-line); color: #8b8e88; font-size: 10px; }
.debug-details summary { padding-top: 14px; cursor: pointer; list-style-position: inside; }
.debug-details summary:hover { color: var(--ink); }
.debug-details pre { max-height: 220px; margin: 12px 0 0; padding: 12px; overflow: auto; border: 1px solid var(--soft-line); border-radius: 6px; color: #636761; background: #fafbf8; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }

.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: min(380px, calc(100% - 48px)); padding: 13px 16px; border-radius: 8px; color: var(--white); background: var(--ink); box-shadow: 0 12px 36px rgba(0,0,0,.2); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast[data-state="info"] { color: var(--ink); border: 1px solid var(--line); background: var(--white); }

@media (max-width: 1000px) {
  .skill-grid { grid-template-columns: repeat(3,1fr); }
  .workflow { gap: 60px; }
}
@media (max-width: 880px) {
  .section-heading { display: block; }
  .section-heading > p { max-width: 560px; margin-top: 10px; }
}
@media (max-width: 720px) {
  .skills-section { padding-top: 18px; padding-bottom: 52px; }
  .section-heading { display: block; margin-bottom: 18px; }
  .section-heading > p { margin-top: 9px; }
  .skill-toolbar { gap: 16px; margin-bottom: 24px; }
  .filter-tabs { column-gap: 16px; }
  .search-box { flex-basis: 124px; }
  .skill-grid { grid-template-columns: repeat(2,1fr); }
  .skill-card { min-height: 292px; }
  .workflow { padding-top: 52px; padding-bottom: 52px; grid-template-columns: 1fr; gap: 38px; }
  .standards { padding-top: 52px; padding-bottom: 52px; }
  .standard-list { grid-template-columns: 1fr; margin-top: 30px; }
  .standard-list article { min-height: 135px; }
  .standard-list h3 { margin-top: 22px; }
  .demo-modal { padding: 28px 20px; }
  .modal-footer { align-items: flex-start; gap: 18px; flex-direction: column; }
}
@media (max-width: 520px) {
  .skill-toolbar { gap: 10px; }
  .filter-tabs { column-gap: 16px; }
  .search-box { flex-basis: 108px; }
  .skill-grid { grid-template-columns: 1fr; }
}


/* 领域工作流板块 */
.domain-flows { background: var(--white); padding: 60px max(24px, calc((100% - 1200px) / 2)) 58px; border-bottom: 1px solid var(--line); transition: padding .32s ease; }
.domain-flows[hidden] { display: none; }
.domain-flows.flows-collapsed { padding-top: 20px; padding-bottom: 20px; }

/* 内嵌宿主时默认收起：折叠条保持领域入口可见，能力库获得首屏空间 */
.flows-collapse-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: left; cursor: pointer; transition: border-color .25s ease, background .25s ease; }
.flows-collapse-bar:hover { border-color: #b9bcb4; }
.flows-collapse-bar:focus-visible { outline: 2px solid rgba(17,19,17,.3); outline-offset: 2px; }
.flows-collapse-bar[hidden] { display: none; }
.flows-collapse-copy { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.flows-collapse-copy strong { font-family: Georgia, "Songti SC", serif; font-size: 14px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; }
.flows-collapse-copy small { color: #8a8c87; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flows-collapse-action { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11px; }
.flows-collapse-action em { font-style: normal; }
.flows-collapse-action svg { width: 14px; transition: transform .32s ease; }
.flows-collapse-bar[aria-expanded="false"] .flows-collapse-action svg { transform: rotate(-90deg); }

/* 0fr→1fr 过渡会在收起态冻结目标尺寸，改用 height 0↔auto（Chromium 129+ 支持动画，其余浏览器直接跳变） */
.flows-collapsible { overflow: hidden; height: auto; interpolate-size: allow-keywords; transition: height .32s ease; }
.flows-collapsible.is-collapsed { height: 0; }
.flows-collapsible.is-collapsed .flows-collapsible-inner { visibility: hidden; transition: visibility 0s .32s; }
.flows-loading { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.flows-loading[hidden] { display: none; }
.flow-tabs { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.flow-tabs::-webkit-scrollbar { display: none; }
.flow-tabs button { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: left; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.flow-tabs button:hover { border-color: #b9bcb4; transform: translateY(-1px); }
.flow-tabs button.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.flow-tabs button:focus-visible { outline: 2px solid rgba(17,19,17,.3); outline-offset: 2px; }
.flow-tab-index { font: italic 12px Georgia, serif; color: #989b94; }
.flow-tabs button.active .flow-tab-index { color: #b9bcb4; }
.flow-tab-copy { display: flex; flex-direction: column; gap: 3px; }
.flow-tab-copy strong { font-family: Georgia, "Songti SC", serif; font-size: 14px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; }
.flow-tab-copy small { font-size: 9px; color: #8a8c87; white-space: nowrap; }
.flow-tabs button.active .flow-tab-copy small { color: #c4c6c1; }

/* 领域 Tab 超出宽度时的左右切换 */
.flow-tabs-wrap { position: relative; }
.flow-tabs-wrap::before, .flow-tabs-wrap::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 4px; width: 36px; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.flow-tabs-wrap::before { left: 0; background: linear-gradient(90deg, var(--white) 14%, rgba(255,255,255,0)); }
.flow-tabs-wrap::after { right: 0; background: linear-gradient(270deg, var(--white) 14%, rgba(255,255,255,0)); }
.flow-tabs-wrap.can-scroll-left::before, .flow-tabs-wrap.can-scroll-right::after { opacity: 1; }
.flow-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(17,19,17,.12); transition: border-color .25s ease, opacity .25s ease; }
.flow-tabs-wrap:not(.has-overflow) .flow-nav { display: none; }
.flow-nav.previous { left: -13px; }
.flow-nav.next { right: -13px; }
.flow-nav:hover:not(:disabled) { border-color: #b9bcb4; }
.flow-nav:disabled { opacity: .35; cursor: default; box-shadow: none; }
.flow-nav:focus-visible { outline: 2px solid rgba(17,19,17,.3); outline-offset: 2px; }
.flow-nav svg { width: 15px; }

.flow-panel { margin-top: 26px; }
.flow-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--soft-line); }
.flow-head-copy h3 { margin: 0 0 8px; font-family: Georgia, "Songti SC", serif; font-size: clamp(22px, 2.2vw, 28px); font-weight: 550; letter-spacing: -.02em; }
.flow-head-copy > p:not(.section-kicker) { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.flow-partners { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.flow-partners span { border: 1px solid var(--line); border-radius: 12px; padding: 5px 9px; font-size: 9px; color: #777a74; }
.flow-head-meta { display: flex; gap: 18px; flex: 0 0 auto; }
.flow-head-meta span { color: #8a8c87; font-size: 11px; }
.flow-head-meta strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 26px; color: var(--ink); font-weight: 550; }

.flow-stages { position: relative; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 26px 0 0; padding: 0 0 6px; }
.flow-stages::-webkit-scrollbar { display: none; }
.flow-stage { position: relative; flex: 1 0 200px; display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: left; cursor: pointer; transition: border-color .25s ease, background .25s ease, color .25s ease; }
.flow-stage:hover { border-color: #b9bcb4; }
.flow-stage.selected { border-color: var(--ink); box-shadow: 0 10px 26px rgba(17,19,17,.08); }
.flow-stage:focus-visible { outline: 2px solid rgba(17,19,17,.3); outline-offset: 2px; }
.flow-stage-marker { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font: italic 12px Georgia, serif; transition: background .25s ease, color .25s ease; }
.flow-stage.selected .flow-stage-marker { background: var(--ink); color: var(--white); }
.flow-stage-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.flow-stage-copy small { font-size: 9px; color: #989b94; white-space: nowrap; }
.flow-stage-copy strong { font-family: Georgia, "Songti SC", serif; font-size: 14px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.flow-stage-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; margin-top: 24px; padding: 26px; border: 1px solid var(--soft-line); border-radius: var(--radius); background: #fbfcf9; }
.flow-stage-info h4 { margin: 0 0 10px; font-family: Georgia, "Songti SC", serif; font-size: 21px; font-weight: 550; letter-spacing: -.01em; }
.flow-stage-info > p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.flow-stage-meta { display: flex; gap: 16px; margin-top: 16px; }
.flow-stage-meta span { color: #8a8c87; font-size: 11px; }
.flow-stage-meta strong { font-family: Georgia, "Songti SC", serif; font-size: 18px; color: var(--ink); font-weight: 550; }
.flow-stage-use { margin-top: 20px; height: 46px; font-size: 12px; cursor: pointer; }
.flow-stage-use:disabled { opacity: .45; cursor: not-allowed; }
.flow-stage-note { display: block; margin-top: 12px; color: #989b94; font-size: 10px; line-height: 1.6; }
.flow-stage-skills { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow-stage-skills li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--soft-line); }
.flow-stage-skills li:first-child { padding-top: 4px; }
.flow-stage-skills li:last-child { border-bottom: 0; padding-bottom: 4px; }
.flow-skill-index { font: italic 12px Georgia, serif; color: #989b94; }
.flow-skill-copy { min-width: 0; }
.flow-skill-copy strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 14px; font-weight: 550; }
.flow-skill-copy p { margin: 3px 0 0; color: #71746e; font-size: 10.5px; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.flow-stage-skills .card-link { min-width: 88px; }
.flow-skill-empty { display: block; padding: 20px 2px; color: var(--muted); font-size: 11px; }

@media (max-width: 1000px) {
  .flow-stage-detail { gap: 26px; }
}
@media (max-width: 880px) {
  .flow-head { display: block; }
  .flow-head-meta { margin-top: 14px; }
  .flow-stage-detail { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 720px) {
  .domain-flows { padding-top: 44px; padding-bottom: 44px; }
  .domain-flows.flows-collapsed { padding-top: 16px; padding-bottom: 16px; }
  .flows-collapse-bar { padding: 11px 13px; }
  .flows-collapse-copy { gap: 9px; }
  .flow-tabs button { padding: 10px 14px 10px 12px; }
  .flow-stage { flex-basis: 176px; }
}
