:root {
  --bg: #f3f6f9;
  --bg-soft: #eaf0f5;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-solid: #ffffff;
  --line: rgba(30, 41, 59, 0.14);
  --text: #1f2937;
  --muted: #64748b;
  --cyan: #087ea4;
  --blue: #2563eb;
  --green: #0f9f6e;
  --yellow: #a16207;
  --red: #c2414f;
  --violet: #7c3aed;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(30, 41, 59, 0.10);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0, var(--bg) 260px);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(71, 215, 255, 0.6);
  border-radius: 12px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(71, 215, 255, 0.16), rgba(75, 125, 255, 0.08));
  box-shadow: inset 0 0 24px rgba(71, 215, 255, 0.10);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand > span:last-child { display: grid; line-height: 1.15; }
.brand strong { letter-spacing: 0.01em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 0.67rem; letter-spacing: 0.13em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 0.93rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: rgba(71, 215, 255, 0.09); }
.language-toggle { margin-left: 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: transparent; padding: 8px 13px; font: inherit; font-size: 0.86rem; cursor: pointer; }
.language-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: transparent; padding: 7px 11px; }

.hero {
  display: grid;
  min-height: 570px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 58px;
  padding-block: 68px 58px;
}
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1.16; letter-spacing: -0.03em; }
h2 { margin-bottom: 12px; font-size: clamp(1.25rem, 1.8vw, 1.75rem); line-height: 1.28; letter-spacing: -0.018em; }
h3 { margin-bottom: 9px; font-size: 1.05rem; }
.hero-lead { max-width: 680px; margin-bottom: 28px; color: #b8cadb; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #04131c; background: linear-gradient(120deg, var(--cyan), #7beecf); box-shadow: 0 10px 32px rgba(71, 215, 255, 0.18); }
.button-secondary { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.025); }
.button-secondary:hover { border-color: rgba(71, 215, 255, 0.55); background: rgba(71, 215, 255, 0.06); }
.button-small { min-height: 38px; padding-inline: 14px; font-size: 0.88rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: 23px; margin: 28px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: 0.88rem; }
.trust-list li::before { content: "·"; margin-right: 8px; color: var(--green); font-weight: 900; }

.hero-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 198px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(18, 40, 67, 0.86), rgba(8, 20, 36, 0.92));
  box-shadow: var(--shadow);
}
.hero-panel::after { position: absolute; inset: 0; content: ""; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
.signal-orbit { position: absolute; inset: 8px 0 auto; height: 185px; }
.orbit { position: absolute; inset: 50%; display: block; border: 1px solid rgba(71, 215, 255, .28); border-radius: 50%; transform: translate(-50%, -50%) rotate(-12deg); }
.orbit-a { width: 250px; height: 100px; }
.orbit-b { width: 160px; height: 160px; border-color: rgba(185, 148, 255, .25); }
.orbit-a::after, .orbit-b::after { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); content: ""; }
.orbit-a::after { top: 10px; left: 45px; }
.orbit-b::after { right: 11px; bottom: 30px; background: var(--violet); box-shadow: 0 0 20px var(--violet); }
.orbit-core { position: absolute; top: 50%; left: 50%; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 18px; color: var(--cyan); background: rgba(7, 17, 31, .9); box-shadow: 0 0 45px rgba(71,215,255,.2); transform: translate(-50%, -50%); font: 700 2rem Georgia, serif; }
.stat-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.stat-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.stat-grid strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.stat-grid span { color: var(--muted); font-size: .78rem; }
.panel-note { position: relative; z-index: 1; margin: 17px 4px 0; color: var(--muted); font-size: .78rem; }

.section { padding-block: 66px; }
.section-tint { border-block: 1px solid var(--line); background: rgba(13, 28, 47, .62); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(300px, .66fr); align-items: end; gap: 50px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 4px; color: var(--muted); }
.section-heading.compact { margin-bottom: 24px; }
.section-heading.compact h2 { font-size: 1.35rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { display: flex; min-height: 260px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17,38,63,.78), rgba(11,25,43,.82)); transition: transform 180ms ease, border-color 180ms ease; }
.case-card:hover { border-color: rgba(71,215,255,.38); transform: translateY(-3px); }
.case-card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.method-tag { color: var(--cyan); font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.case-card h3 { font-size: 1.08rem; }
.case-card p { color: var(--muted); font-size: .9rem; }
.case-algorithm { display: block; margin-top: auto; padding-top: 9px; color: var(--cyan); font-size: .74rem; }
.case-card .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.card-footer .open-case { color: var(--text); font-weight: 650; }
.section-action { margin-top: 26px; text-align: right; }
.text-link { color: var(--cyan); font-weight: 700; }
.text-link span { margin-left: 6px; }

.quick-start-section { padding-top: 54px; }
.usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15,31,52,.42); }
.usage-grid article { min-height: 150px; padding: 21px; border-right: 1px solid var(--line); }
.usage-grid article:last-child { border-right: 0; }
.usage-grid article > span { color: var(--cyan); font: 650 .75rem ui-monospace, monospace; }
.usage-grid h3 { margin: 20px 0 7px; }
.usage-grid p { margin-bottom: 0; color: var(--muted); font-size: .86rem; }
.start-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.start-links a { display: grid; min-height: 102px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); transition: border-color 160ms ease, background 160ms ease; }
.start-links a:hover { border-color: rgba(71,215,255,.45); background: rgba(71,215,255,.045); }
.start-links span, .start-links small { color: var(--muted); font-size: .72rem; }
.start-links strong { margin: 6px 0 auto; font-size: .95rem; }
.start-links small { color: var(--cyan); }

.status-chip { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; border: 1px solid; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .045em; white-space: nowrap; }
.status-pass { border-color: rgba(83,230,167,.35); color: var(--green); background: rgba(83,230,167,.08); }
.status-fail { border-color: rgba(255,123,131,.4); color: var(--red); background: rgba(255,123,131,.08); }
.status-partial { border-color: rgba(241,201,104,.35); color: var(--yellow); background: rgba(241,201,104,.08); }
.status-blocked { border-color: rgba(185,148,255,.4); color: var(--violet); background: rgba(185,148,255,.08); }
.status-not-run { border-color: rgba(159,180,201,.3); color: var(--muted); background: rgba(159,180,201,.06); }

.workflow-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.workflow-list { margin: 0; padding: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 62px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.workflow-list li:first-child { padding-top: 0; }
.workflow-list span { color: var(--cyan); font: 500 1.25rem ui-monospace, monospace; }
.workflow-list strong { display: block; margin-bottom: 5px; }
.workflow-list p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.join-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.join-banner h2 { margin-bottom: 10px; }
.join-banner p:last-child { margin-bottom: 0; color: var(--muted); }

.page-main { min-height: calc(100vh - 150px); padding-block: 56px 78px; }
.page-intro { max-width: 860px; margin-bottom: 46px; }
.page-intro.narrow { max-width: 760px; }
.page-intro h1 { margin-bottom: 16px; font-size: clamp(1.65rem, 2.3vw, 2.15rem); }
.page-intro p:last-child { color: var(--muted); font-size: 1.05rem; }
.catalog-section { margin-top: 30px; }
.usage-strip { display: grid; grid-template-columns: 180px repeat(3, 1fr); align-items: start; gap: 0; margin-bottom: 46px; border: 1px solid var(--line); border-radius: 15px; background: rgba(15,31,52,.5); }
.usage-strip h2 { margin: 0; padding: 18px; font-size: 1rem; }
.usage-strip > div { min-height: 82px; padding: 17px; border-left: 1px solid var(--line); }
.usage-strip strong, .usage-strip span { display: block; }
.usage-strip strong { margin-bottom: 4px; color: var(--cyan); font: 700 .74rem ui-monospace, monospace; }
.usage-strip span { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.catalog-disclosure { margin-top: 68px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11,25,43,.5); }
.catalog-disclosure > summary { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 25px; padding: 22px 25px; cursor: pointer; list-style: none; }
.catalog-disclosure > summary::-webkit-details-marker { display: none; }
.catalog-disclosure > summary > span { display: grid; }
.catalog-disclosure summary small { color: var(--cyan); font-size: .7rem; letter-spacing: .1em; }
.catalog-disclosure summary strong { margin: 5px 0 2px; font-size: 1.08rem; }
.catalog-disclosure summary em { color: var(--muted); font-size: .78rem; font-style: normal; }
.catalog-disclosure summary b { color: var(--cyan); font-size: .82rem; white-space: nowrap; }
.catalog-disclosure[open] summary b::before { content: "收起"; font-size: 0; }
.catalog-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.catalog-disclosure .catalog-section { padding: 28px 24px 32px; }
.filter-panel { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 12px; margin-bottom: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14,30,51,.62); }
.filter-panel label { display: grid; gap: 6px; }
.filter-panel label > span { color: var(--muted); font-size: .72rem; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: #0a1727; }
.filter-panel input:focus, .filter-panel select:focus { border-color: rgba(71,215,255,.6); box-shadow: 0 0 0 3px rgba(71,215,255,.08); }
.source-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.source-row { display: grid; grid-template-columns: minmax(280px, 1.35fr) .7fr .75fr auto .45fr; align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: rgba(10,23,39,.45); }
.source-row:last-child { border-bottom: 0; }
.source-row:hover { background: rgba(71,215,255,.035); }
.source-title { min-width: 0; }
.source-title strong, .source-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-title span { margin-top: 2px; color: var(--muted); font: .73rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.source-meta { color: var(--muted); font-size: .78rem; }
.source-row .external-link { justify-self: end; color: var(--cyan); font-size: .82rem; }
.pagination-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; color: var(--muted); font-size: .85rem; }
.empty-state, .loading-card { padding: 40px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); text-align: center; background: rgba(14,30,51,.45); }

.case-hero { display: grid; grid-template-columns: 1fr 330px; gap: 54px; padding-bottom: 55px; border-bottom: 1px solid var(--line); }
.case-hero h1 { margin-bottom: 14px; font-size: clamp(1.7rem, 2.5vw, 2.3rem); }
.case-subtitle { color: var(--muted); font-size: 1.05rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.plain-chip { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; }
.case-status-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15,31,52,.75); }
.case-status-panel dl { display: grid; gap: 16px; margin: 0; }
.case-status-panel div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.case-status-panel div:last-child { padding-bottom: 0; border: 0; }
.case-status-panel dt { color: var(--muted); font-size: .78rem; }
.case-status-panel dd { margin: 0; text-align: right; font-weight: 650; }
.case-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 54px; }
.content-section { margin-bottom: 46px; }
.content-section h2 { font-size: 1.3rem; }
.content-section p, .content-section li { color: #b9c9d8; }
.case-reading-tip { margin-bottom: 36px; padding: 16px 18px; border-left: 3px solid var(--cyan); border-radius: 0 12px 12px 0; background: rgba(71,215,255,.055); }
.case-reading-tip strong { display: block; margin-bottom: 4px; }
.case-reading-tip p { margin: 0; color: var(--muted); font-size: .86rem; }
.evidence-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.evidence-list li { position: relative; padding: 13px 15px 13px 38px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.evidence-list li::before { position: absolute; top: 15px; left: 15px; color: var(--green); content: "✓"; font-weight: 800; }
.caveat-list li::before { color: var(--yellow); content: "!"; }
.metric-table { display: grid; gap: 8px; }
.metric-row { display: grid; grid-template-columns: 1.2fr 1fr .65fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.metric-row strong { color: var(--text); }
.case-aside { align-self: start; position: sticky; top: 100px; }
.aside-card { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(15,31,52,.65); }
.aside-card h3 { font-size: .88rem; }
.aside-card p { margin-bottom: 0; color: var(--muted); font-size: .8rem; word-break: break-word; }
.aside-card a { color: var(--cyan); }

.participation-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.participation-card { display: flex; min-height: 430px; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15,31,52,.66); }
.role-index, .method-number { color: var(--cyan); font: 600 .77rem ui-monospace, monospace; }
.participation-card h2 { margin-top: 28px; font-size: 1.4rem; }
.participation-card p, .participation-card li { color: var(--muted); font-size: .9rem; }
.participation-card ul { margin: 8px 0 28px; padding-left: 20px; }
.participation-card .button { margin-top: auto; }
.process-line { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding: 0; list-style: none; counter-reset: process; }
.process-line li { position: relative; display: grid; gap: 5px; padding: 22px 18px; border-top: 1px solid var(--line); }
.process-line li::after { position: absolute; top: -4px; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); content: ""; }
.process-line span { color: var(--muted); font-size: .78rem; }
.join-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-inline: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(115deg, rgba(75,125,255,.09), rgba(71,215,255,.04)); }
.join-panel h2 { margin-bottom: 8px; }
.join-panel p:last-child { margin-bottom: 0; color: var(--muted); }

.methodology-layout { max-width: 1050px; }
.method-block { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding: 45px 0; border-top: 1px solid var(--line); }
.method-block h2 { margin-top: 8px; font-size: 1.25rem; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.definition-grid article, .prose-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15,31,52,.55); }
.definition-grid strong { color: var(--cyan); }
.definition-grid p, .prose-card p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.algorithm-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.algorithm-grid article { min-height: 168px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.algorithm-grid strong, .algorithm-grid .method-family, .algorithm-grid small { display: block; }
.algorithm-grid strong { margin-bottom: 4px; }
.algorithm-grid .method-family { color: var(--cyan); font: 650 .7rem ui-monospace, monospace; }
.algorithm-grid p { margin: 12px 0 10px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.algorithm-grid small { color: var(--muted); font-size: .74rem; }
.method-note { margin: 16px 0 0; color: var(--muted); font-size: .82rem; }
.prose-card p + p { margin-top: 15px; }
.status-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.status-table > div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.status-table > div:last-child { border-bottom: 0; }
.status-table p { margin: 0; color: var(--muted); font-size: .86rem; }

.demo-page { background: #050d18; }
.demo-main { min-height: calc(100vh - 76px); padding: 42px 0 60px; }
.demo-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 24px; }
.demo-intro h1 { margin-bottom: 8px; font-size: clamp(1.35rem, 1.7vw, 1.6rem); line-height: 1.28; }
.demo-intro p:last-child { max-width: 700px; margin-bottom: 0; color: var(--muted); }
.demo-boundary { display: flex; max-width: 380px; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.demo-boundary strong { width: 100%; color: var(--muted); text-align: right; font-size: .72rem; }
.demo-boundary span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; }
.quick-operation { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); align-items: center; gap: 0; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(11,26,43,.7); }
.quick-operation > strong { padding: 12px 16px; color: var(--cyan); font-size: .75rem; white-space: nowrap; }
.quick-operation > span { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-left: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.4; }
.quick-operation b { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; color: #06111d; background: var(--cyan); font-size: .64rem; }
.demo-workbench { display: grid; width: min(1440px, calc(100% - 24px)); min-height: 640px; grid-template-columns: 275px minmax(480px, 1fr) 270px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(157,190,220,.22); border-radius: 18px; background: #081423; box-shadow: var(--shadow); }
.demo-controls, .demo-results { padding: 20px; background: #0b1a2b; }
.demo-controls { border-right: 1px solid var(--line); }
.demo-results { border-left: 1px solid var(--line); }
.demo-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.demo-panel-heading span { font-weight: 750; }
.demo-panel-heading small { color: var(--cyan); font: 650 .68rem ui-monospace, monospace; }
.demo-field { display: grid; gap: 7px; margin-bottom: 16px; }
.demo-field > span { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.demo-field > span b { color: var(--text); font-size: .78rem; }
.demo-field select { width: 100%; min-width: 0; min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #071321; font-size: .72rem; }
.demo-field select option { font-size: .72rem; }
.demo-field input[type="range"] { width: 100%; accent-color: var(--cyan); }
.geometry-file { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; margin-bottom: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.file-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 8px; color: #081423; background: var(--cyan); font-size: .65rem; font-weight: 850; }
.geometry-file div { display: grid; min-width: 0; }
.geometry-file strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.geometry-file small { color: var(--muted); font-size: .7rem; }
.geometry-file b { color: var(--green); font-size: .7rem; }
.geometry-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; margin: 0 0 20px; padding: 0; list-style: none; }
.geometry-checks li { color: var(--muted); font-size: .72rem; }
.geometry-checks li::before { margin-right: 5px; color: var(--green); content: "✓"; }
.demo-run { width: 100%; margin-top: 5px; }
.demo-help { margin: 8px 2px 14px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.request-preview { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #071321; }
.request-preview span { color: var(--muted); font-size: .7rem; }
.request-preview code { overflow-wrap: anywhere; color: #9fdcf0; font-size: .7rem; line-height: 1.55; }
.demo-viewer { display: grid; min-width: 0; grid-template-rows: auto 1fr; }
.viewer-toolbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #091727; }
.viewer-toolbar > div:first-child { display: grid; }
.viewer-toolbar strong { font-size: .82rem; }
.viewer-toolbar span { color: var(--muted); font-size: .72rem; }
.view-tabs { display: flex; gap: 4px; }
.view-tabs button { min-height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: .7rem; }
.view-tabs button.is-active { border-color: var(--line); color: var(--text); background: rgba(71,215,255,.08); }
.flow-viewport { position: relative; min-height: 510px; overflow: hidden; background: radial-gradient(circle at 50% 46%, #173047, #07111e 70%); }
.flow-viewport::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 32px 32px; content: ""; }
.viewport-label { position: absolute; z-index: 3; top: 15px; left: 16px; display: grid; }
.viewport-label span { color: var(--muted); font-size: .66rem; }
.viewport-label small { color: var(--text); font-size: .72rem; }
.flow-scene { position: absolute; inset: 55px 2% 55px; width: 96%; height: calc(100% - 110px); }
.wind-lines path { fill: none; stroke: #50d9ff; stroke-width: 3; stroke-dasharray: 18 10; opacity: .64; animation: wind-flow 2.2s linear infinite; }
.wind-lines path:nth-child(2n) { stroke: #bb91ff; animation-duration: 2.8s; }
.wind-lines path:nth-child(3n) { stroke: #64e6b9; animation-duration: 2.5s; }
.car-shadow ellipse { fill: rgba(0,0,0,.38); }
.car-shell { fill: url(#carPaint); stroke: rgba(215,249,255,.65); stroke-width: 2; }
.car-glass { fill: #0c2437; stroke: rgba(215,249,255,.4); stroke-width: 2; }
.wheel { fill: #07101b; stroke: #6c8394; stroke-width: 8; }
.wheel-hub { fill: #263f51; stroke: #8ba6b8; stroke-width: 4; }
.ground line { stroke: rgba(170,207,226,.28); stroke-width: 2; }
.pressure-overlay { fill: url(#pressurePaint); opacity: 0; transition: opacity 180ms ease; }
.slice-field path { fill: url(#slicePaint); opacity: 0; filter: blur(2px); transition: opacity 180ms ease; }
.flow-viewport[data-active-view="surface"] .wind-lines { opacity: .15; }
.flow-viewport[data-active-view="surface"] .pressure-overlay { opacity: .86; }
.flow-viewport[data-active-view="slice"] .wind-lines { opacity: .22; }
.flow-viewport[data-active-view="slice"] .slice-field path { opacity: .55; }
.velocity-legend { position: absolute; z-index: 3; right: 16px; bottom: 15px; display: grid; width: 190px; grid-template-columns: repeat(3,1fr); gap: 3px; color: var(--muted); font-size: .6rem; }
.velocity-legend span { grid-column: 1 / -1; }
.velocity-legend i { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: linear-gradient(90deg, #2462ff, #4fe5ca, #ffcc66); }
.velocity-legend small:nth-last-child(1) { text-align: right; }
.velocity-legend small:nth-last-child(2) { text-align: center; }
.demo-loading { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; justify-items: center; background: rgba(5,13,24,.78); backdrop-filter: blur(4px); }
.demo-loading[hidden] { display: none; }
.demo-loading i { width: 34px; height: 34px; margin-bottom: 12px; border: 2px solid rgba(71,215,255,.25); border-top-color: var(--cyan); border-radius: 50%; animation: spin 800ms linear infinite; }
.demo-loading strong { font-size: .85rem; }
.demo-loading span { color: var(--muted); font-size: .7rem; }
.result-state { display: grid; margin-bottom: 17px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #071321; }
.result-state span { color: var(--muted); font-size: .72rem; }
.result-state strong { margin: 7px 0 3px; font-size: 1rem; }
.result-state strong.result-fail { color: var(--red); }
.result-state strong.result-partial { color: var(--yellow); }
.result-state strong.result-pass { color: var(--green); }
.result-state small { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.result-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 15px; }
.result-groups section { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.015); }
.result-groups h2 { margin-bottom: 8px; font-size: .72rem; }
.result-groups p { margin-bottom: 4px; color: var(--muted); font-size: .68rem; }
.demo-metrics { min-height: 172px; margin-bottom: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.015); }
.demo-metrics > span { color: var(--cyan); font-size: .67rem; }
.demo-metrics > p { color: var(--muted); font-size: .68rem; }
.demo-metrics dl { display: grid; gap: 6px; margin: 9px 0; }
.demo-metrics dl div { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.demo-metrics dt, .demo-metrics dd { font-size: .69rem; }
.demo-metrics dt { color: var(--muted); }
.demo-metrics dd { margin: 0; color: var(--text); }
.demo-metrics .metric-warning { margin: 8px 0 0; color: var(--yellow); font-size: .68rem; }
.demo-detail-link { width: 100%; min-height: 40px; font-size: .72rem; }
.demo-source-note { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 25px; }
.demo-source-note strong { font-size: .78rem; }
.demo-source-note p { max-width: 760px; margin: 3px 0 0; color: var(--muted); font-size: .7rem; }
.demo-source-note > p { display: flex; gap: 15px; white-space: nowrap; }
.demo-source-note a { color: var(--cyan); }

/* Real local prediction workspace */
.demo-intro h1 { font-size: clamp(1.35rem, 1.7vw, 1.6rem); }
.demo-workbench { grid-template-columns: 290px minmax(500px, 1fr) 285px; }
.model-card { display: grid; gap: 5px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, rgba(71,215,255,.07), rgba(75,125,255,.03)); }
.model-card span, .model-card small { color: var(--muted); font-size: .7rem; }
.model-card strong { font-size: .8rem; line-height: 1.4; }
.model-card p { margin: 2px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.geometry-file b.is-ready { color: var(--green); }
.range-field { margin-top: 18px; }
.fixed-condition-note { margin: 18px 0 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(7, 19, 33, .72); font-size: .78rem; line-height: 1.55; }
.speed-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: -4px 0 14px; }
.speed-presets button { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #071321; cursor: pointer; font-size: .68rem; }
.speed-presets button:hover, .speed-presets button.is-active { border-color: rgba(71,215,255,.55); color: var(--text); background: rgba(71,215,255,.08); }
.demo-run:disabled { cursor: not-allowed; filter: saturate(.3); opacity: .55; }
.viewer-actions { display: flex; align-items: center; gap: 9px; }
.field-select { display: flex; align-items: center; gap: 6px; }
.field-select span { font-size: .62rem; }
.field-select select { min-height: 32px; max-width: 160px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #071321; font-size: .68rem; }
#result-canvas { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; }
.viewer-empty { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: start; padding: 30px; background: linear-gradient(135deg, rgba(7,17,30,.25), rgba(7,17,30,.7)); }
.viewer-empty[hidden] { display: none; }
.viewer-empty strong { margin-bottom: 12px; font-size: .88rem; }
.viewer-empty ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--muted); font-size: .72rem; }
.real-result-empty { display: grid; max-width: 460px; justify-items: center; gap: 5px; padding: 16px 18px; text-align: center; }
.real-result-empty span { color: var(--cyan); font: 650 .62rem ui-monospace, monospace; letter-spacing: .06em; }
.real-result-empty strong { margin: 0; font-size: .82rem; }
.real-result-empty small { color: var(--muted); font-size: .7rem; line-height: 1.55; }
.field-legend { position: absolute; z-index: 4; right: 18px; bottom: 16px; display: grid; width: 230px; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5,13,24,.82); pointer-events: none; }
.field-legend[hidden] { display: none; }
.field-legend span { grid-column: 1 / -1; color: var(--muted); font-size: .62rem; }
.field-legend i { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: linear-gradient(90deg, #184fd6, #24cdd5, #f6d667, #f26156); }
.field-legend small { color: var(--muted); font-size: .6rem; }
.field-legend small:last-child { text-align: right; }
.result-state strong.result-running { color: var(--cyan); }
.job-reference { display: grid; gap: 4px; margin-bottom: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #071321; }
.job-reference[hidden], .demo-metrics[hidden], .accuracy-boundary[hidden] { display: none; }
.job-reference span { color: var(--muted); font-size: .62rem; }
.job-reference code { overflow: hidden; color: #9fdcf0; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.artifact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.artifact-links[hidden] { display: none; }
.artifact-links .button { min-height: 37px; padding-inline: 8px; font-size: .64rem; }
.accuracy-boundary { padding: 11px; border: 1px solid rgba(241,201,104,.23); border-radius: 9px; background: rgba(241,201,104,.035); }
.accuracy-boundary strong { color: var(--yellow); font-size: .66rem; }
.accuracy-boundary p { margin: 5px 0 0; color: var(--muted); font-size: .63rem; line-height: 1.5; }

/* Two-dimensional, three-dimensional and multi-case comparison */
.demo-workbench-v2 { width: min(1540px, calc(100% - 20px)); min-height: 760px; grid-template-columns: 300px minmax(620px, 1fr) 285px; }
.history-section { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.history-heading > div { display: grid; }
.history-heading span { color: var(--cyan); font: 650 .6rem ui-monospace, monospace; }
.history-heading strong { font-size: .75rem; }
.history-heading button, .text-button { padding: 4px 7px; border: 0; color: var(--cyan); background: transparent; cursor: pointer; font-size: .63rem; }
.history-heading button:disabled { color: var(--muted); cursor: wait; }
.job-history { display: grid; max-height: 230px; gap: 5px; margin-bottom: 9px; overflow-y: auto; scrollbar-width: thin; }
.job-history > p { margin: 0; padding: 10px; color: var(--muted); font-size: .65rem; }
.history-job { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #071321; cursor: default; }
.history-job-completed { cursor: pointer; }
.history-job:hover { border-color: rgba(71,215,255,.42); }
.history-job input { width: 14px; height: 14px; accent-color: var(--cyan); }
.history-job span { display: grid; min-width: 0; }
.history-job strong { font-size: .72rem; }
.history-job small { overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.history-job-status { min-width: 42px; color: var(--cyan); font-size: .62rem; font-weight: 700; }
.history-job-failed .history-job-status { color: var(--red); }
.history-job-cancelled .history-job-status { color: var(--muted); }
.history-cancel { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: .62rem; }
.history-cancel:hover { border-color: rgba(198,60,60,.35); color: var(--red); }
.history-cancel:disabled { cursor: wait; opacity: .5; }
.compare-button { width: 100%; min-height: 36px; padding-inline: 8px; font-size: .66rem; }
.compare-button:disabled { cursor: not-allowed; opacity: .45; }
.text-button { width: 100%; margin-top: 5px; }
.text-button[hidden] { display: none; }
.history-help { margin: 7px 2px 0; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.viewer-toolbar-v2 { min-height: 72px; }
.viewer-actions-v2 { flex-wrap: wrap; justify-content: flex-end; }
.dimension-tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #071321; }
.dimension-tabs button { min-height: 26px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: .66rem; }
.dimension-tabs button.is-active { color: #04131c; background: var(--cyan); }
.field-select[hidden] { display: none; }
.flow-viewport-v2 { min-height: 620px; }
.visualization-grid { position: relative; z-index: 2; display: grid; min-height: 620px; grid-template-columns: 1fr; gap: 1px; background: rgba(157,190,220,.18); }
.visualization-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visualization-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.visual-panel { display: grid; min-width: 0; grid-template-rows: auto 1fr; background: radial-gradient(circle at 50% 45%, #173047, #07111e 72%); }
.visual-panel > header { position: relative; z-index: 2; display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: rgba(7,17,30,.72); }
.visual-panel > header strong { font-size: .72rem; }
.visual-panel > header span { overflow: hidden; color: var(--muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.visual-panel-body { position: relative; min-height: 555px; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 30px 30px; }
.result-canvas-2d, .result-canvas-3d { display: block; width: 100%; height: 100%; min-height: 555px; touch-action: none; }
.result-canvas-2d { cursor: grab; }
.result-canvas-2d:active { cursor: grabbing; }
.result-canvas-3d { cursor: grab; }
.result-canvas-3d:active { cursor: grabbing; }
.visual-mode-badge { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(5,13,24,.72); font-size: .56rem; pointer-events: none; }
.visual-error { display: grid; place-content: center; padding: 20px; color: var(--red); font-size: .72rem; }
.interaction-help { position: absolute; z-index: 4; left: 18px; bottom: 16px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(5,13,24,.82); font-size: .66rem; pointer-events: none; }
.interaction-help[hidden] { display: none; }
.comparison-metrics { display: grid; gap: 6px; margin-top: 9px; }
.comparison-metrics section { display: grid; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #071321; }
.comparison-metrics strong { color: var(--text); font-size: .68rem; }
.comparison-metrics span, .comparison-metrics small { color: var(--muted); font-size: .59rem; }
.artifact-links-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@keyframes wind-flow { to { stroke-dashoffset: -56; } }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.site-footer p { margin: 0; }
.site-footer a:hover { color: var(--cyan); }

@media (max-width: 960px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 46px; }
  .hero-panel { min-height: 430px; }
  .card-grid, .participation-grid, .algorithm-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-heading, .workflow-grid, .case-hero, .case-content-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-aside { position: static; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
  .filter-panel { grid-template-columns: repeat(2,1fr); }
  .search-field { grid-column: 1 / -1; }
  .source-row { grid-template-columns: minmax(240px,1.4fr) .8fr auto .6fr; }
  .source-row .source-meta:nth-of-type(2) { display: none; }
  .method-block { grid-template-columns: 170px 1fr; gap: 30px; }
  .demo-workbench { width: min(100% - 20px, 760px); grid-template-columns: 260px minmax(0, 1fr); }
  .demo-results { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .demo-intro { align-items: flex-start; flex-direction: column; gap: 18px; }
  .quick-operation { grid-template-columns: repeat(2, 1fr); }
  .quick-operation > strong { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .quick-operation > span { border-bottom: 1px solid var(--line); }
  .demo-boundary { justify-content: flex-start; }
  .demo-boundary strong { text-align: left; }
  .demo-workbench-v2 { width: min(100% - 20px, 860px); grid-template-columns: 280px minmax(0, 1fr); }
  .viewer-toolbar-v2 { min-height: 96px; }
  .viewer-actions-v2 { justify-content: flex-start; }
  .visualization-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visualization-grid[data-count="3"] .visual-panel:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { min-height: 68px; padding-inline: 14px; }
  .brand small { display: none; }
  .nav-toggle { display: block; }
  .language-toggle { margin-left: 6px; }
  .site-nav { position: absolute; top: 68px; right: 14px; display: none; width: min(260px, calc(100vw - 28px)); align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #0a1728; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 11px 13px; }
  .hero { padding-block: 62px; }
  h1 { font-size: 1.75rem; }
  .hero-panel { min-height: 410px; padding-inline: 18px; }
  .section { padding-block: 62px; }
  .card-grid, .participation-grid, .definition-grid, .algorithm-grid, .case-aside { grid-template-columns: 1fr; }
  .join-banner, .join-panel, .site-footer { align-items: flex-start; flex-direction: column; }
  .filter-panel { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .source-row { grid-template-columns: 1fr auto auto; gap: 10px; }
  .source-row .source-meta { display: none; }
  .process-line { grid-template-columns: repeat(2,1fr); }
  .method-block { grid-template-columns: 1fr; gap: 15px; }
  .status-table > div { grid-template-columns: 105px 1fr; gap: 12px; }
  .metric-row { grid-template-columns: 1fr; gap: 3px; }
  .demo-main { padding-top: 28px; }
  .demo-intro > div:first-child { width: 100%; min-width: 0; }
  .demo-intro h1 { max-width: 100%; font-size: 1.35rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
  .quick-operation { grid-template-columns: 1fr; margin-inline: 8px; }
  .quick-operation > strong { grid-column: auto; }
  .quick-operation > span { min-height: 38px; border-left: 0; }
  .demo-workbench { width: min(100% - 16px, 520px); grid-template-columns: 1fr; }
  .demo-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-results { grid-column: auto; }
  .viewer-toolbar { align-items: flex-start; flex-direction: column; }
  .viewer-actions { width: 100%; justify-content: space-between; }
  .flow-viewport { min-height: 430px; }
  .field-select select { max-width: 130px; }
  .demo-source-note { align-items: flex-start; flex-direction: column; }
  .demo-workbench-v2 { width: min(100% - 16px, 560px); grid-template-columns: 1fr; }
  .viewer-actions-v2 { align-items: flex-start; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .visualization-grid[data-count="2"], .visualization-grid[data-count="3"] { grid-template-columns: 1fr; }
  .visualization-grid[data-count="3"] .visual-panel:last-child { grid-column: auto; }
  .visualization-grid[data-count="2"] { min-height: 760px; }
  .visualization-grid[data-count="3"] { min-height: 1110px; }
  .visual-panel-body, .result-canvas-2d, .result-canvas-3d { min-height: 330px; }
  .interaction-help { right: 12px; bottom: 76px; left: 12px; text-align: center; }
  .field-legend { right: 12px; bottom: 12px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Compact information-dense layout */
body { font-size: .93rem; }
.site-header { min-height: 52px; }
.brand { gap: 8px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand small { margin-top: 2px; font-size: .58rem; }
.site-nav { gap: 2px; }
.site-nav a { padding: 6px 9px; font-size: .82rem; }
.language-toggle { margin-left: 5px; padding: 6px 10px; font-size: .76rem; }
.page-main { padding-block: 32px 48px; }
.page-intro { margin-bottom: 26px; }
.page-intro h1 { margin-bottom: 11px; font-size: clamp(1.4rem, 2vw, 1.85rem); }
.page-intro p:last-child { font-size: .9rem; }
.section-heading { gap: 28px; margin-bottom: 20px; }
.section-heading.compact { margin-bottom: 16px; }
.section-heading.compact h2 { font-size: 1.15rem; }
.card-grid { gap: 10px; }
.case-card { min-height: 218px; padding: 15px; }
.case-card .card-top { gap: 7px; margin-bottom: 14px; }
.case-card h3 { font-size: .96rem; }
.case-card p { font-size: .8rem; }
.case-card .card-footer { gap: 8px; padding-top: 12px; font-size: .7rem; }
.usage-strip { margin-bottom: 26px; }
.usage-strip h2, .usage-strip > div { padding: 12px; }
.usage-strip > div { min-height: 66px; }
.catalog-disclosure > summary { min-height: 82px; gap: 16px; padding: 14px 18px; }
.catalog-disclosure summary strong { font-size: .94rem; }
.catalog-section { padding: 18px 18px 22px !important; }
.filter-panel { gap: 8px; margin-bottom: 14px; padding: 10px; }
.filter-panel input, .filter-panel select { min-height: 36px; padding-inline: 9px; font-size: .78rem; }
.case-hero { gap: 30px; padding-bottom: 34px; }
.case-hero h1 { font-size: clamp(1.45rem, 2.1vw, 1.95rem); }
.case-subtitle { font-size: .88rem; }
.case-content-grid { gap: 32px; padding-top: 32px; }
.content-section { margin-bottom: 30px; }
.method-block { gap: 28px; padding: 30px 0; }
.definition-grid article, .prose-card { padding: 14px; }
.participation-grid { gap: 10px; }
.participation-card { min-height: 360px; padding: 18px; }
.participation-card h2 { margin-top: 18px; font-size: 1.2rem; }
.participation-card p, .participation-card li { font-size: .8rem; }
.process-line li { padding: 15px 12px; }
.join-panel { gap: 24px; padding-inline: 20px; }
.demo-main { padding-top: 18px; }
.demo-workbench-v2 { min-height: 680px; grid-template-columns: 270px minmax(560px, 1fr) 255px; }
.demo-controls, .demo-results { padding: 14px; }
.demo-panel-heading { margin-bottom: 12px; }
.demo-field { gap: 5px; margin-bottom: 10px; }
.demo-field select { min-height: 34px; }
.geometry-file { gap: 8px; margin-bottom: 7px; padding: 8px; }
.geometry-checks { gap: 4px; margin-bottom: 12px; }
.viewer-toolbar { min-height: 52px; gap: 10px; padding: 7px 10px; }
.viewer-actions { gap: 6px; }
.flow-viewport { min-height: 460px; }
.result-state { margin-bottom: 11px; padding: 10px; }
.demo-metrics { margin-bottom: 10px; padding: 10px; }
.accuracy-boundary { padding: 9px; }

@media (max-width: 960px) {
  .demo-workbench, .demo-workbench-v2 { width: min(100% - 12px, 860px); grid-template-columns: 260px minmax(0, 1fr); }
  .demo-workbench-v2 { min-height: 680px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 56px; }
  .site-nav { top: 56px; }
  .demo-workbench, .demo-workbench-v2 { width: calc(100% - 8px); grid-template-columns: 1fr; }
  .demo-workbench-v2 { min-height: 0; }
  .page-main { padding-block: 24px 34px; }
  .section-heading { gap: 12px; margin-bottom: 14px; }
  .case-card { min-height: 190px; }
}

/* Compact light engineering interface */
.site-header {
  min-height: 60px;
  border-color: var(--line);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 8px rgba(30, 41, 59, .04);
}
.brand-mark { border-color: rgba(8, 126, 164, .32); color: var(--cyan); background: #eef8fb; box-shadow: none; }
.brand small { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #075d7a; background: #e7f4f8; }
.button-primary { color: #fff; background: linear-gradient(120deg, #087ea4, #0f9f8a); box-shadow: 0 6px 18px rgba(8, 126, 164, .16); }
.button-secondary { border-color: var(--line); color: var(--text); background: #fff; }
.button-secondary:hover { border-color: rgba(8, 126, 164, .42); background: #eef8fb; }
.hero-lead, .content-section p, .content-section li { color: #475569; }
.section-tint { border-color: var(--line); background: #edf2f6; }
.case-card, .usage-grid, .start-links a, .catalog-disclosure, .filter-panel,
.source-row, .case-status-panel, .aside-card, .participation-card, .join-panel,
.definition-grid article, .prose-card, .empty-state, .loading-card {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 4px 16px rgba(30, 41, 59, .035);
}
.case-card:hover { border-color: rgba(8, 126, 164, .38); }
.filter-panel input, .filter-panel select { color: var(--text); background: #fff; }
.source-row:hover { background: #f1f7f9; }

.hero-compact {
  min-height: auto;
  grid-template-columns: 1fr;
  gap: 0;
  padding-block: 34px 28px;
}
.hero-compact .hero-copy { max-width: 860px; }
.hero-compact h1 { max-width: none; margin-bottom: 10px; font-size: clamp(1.65rem, 2.2vw, 2.15rem); }
.hero-compact .hero-lead { max-width: 820px; margin-bottom: 18px; font-size: .95rem; }
.hero-compact .eyebrow { margin-bottom: 7px; }
.hero-compact .button { min-height: 40px; }
.section-first { padding-top: 26px; }
.section-first .section-heading { margin-bottom: 18px; }
.section-first .section-heading > .text-link { align-self: center; justify-self: end; }
.case-card { min-height: 190px; padding: 18px; }
.case-card .card-top { margin-bottom: 14px; }
.case-card .card-footer { padding-top: 12px; }
.page-main { padding-block: 32px 48px; }

.demo-page { background: #eef2f6; }
.demo-main { min-height: calc(100vh - 60px); padding: 10px 0 20px; }
.service-recovery {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-block: 28px;
  padding: 28px;
  border: 1px solid rgba(8, 126, 164, .28);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.service-recovery[hidden] { display: none; }
.service-recovery strong { display: block; margin-bottom: 6px; font-size: 1.15rem; }
.service-recovery p { margin: 0; color: var(--muted); }
.service-recovery-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.service-recovery-actions .button { min-height: 40px; }
.service-recovery-actions [hidden] { display: none; }
.demo-workbench[hidden] { display: none; }
.demo-intro { min-height: 32px; align-items: center; margin-bottom: 8px; }
.demo-intro h1 { margin: 0; font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.3; }
.demo-workbench, .demo-workbench-v2 {
  --controls-width: 270px;
  --results-width: 260px;
  width: min(1580px, calc(100% - 16px));
  min-height: 620px;
  grid-template-columns: var(--controls-width) 8px minmax(520px, 1fr) 8px var(--results-width);
  border-color: var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(30, 41, 59, .08);
}
.demo-controls, .demo-results { min-width: 0; padding: 14px; background: #f8fafc; }
.demo-controls { display: grid; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
.demo-controls { border-color: var(--line); }
.demo-results { border-color: var(--line); }
.sidebar-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 10px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #edf3f7; }
.sidebar-tabs button { min-height: 32px; padding: 5px 7px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: .68rem; font-weight: 650; }
.sidebar-tabs button.is-active { color: #fff; background: var(--cyan); }
.sidebar-tabs b { display: inline-grid; min-width: 18px; height: 18px; place-content: center; margin-left: 3px; border-radius: 9px; color: inherit; background: rgba(255,255,255,.2); font-size: .58rem; }
.sidebar-panel { min-height: 0; }
.sidebar-panel[hidden] { display: none; }
.setup-panel { overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.history-section { display: grid; min-height: 0; grid-template-rows: auto minmax(120px, 1fr) auto auto auto; margin-top: 0; padding-top: 0; border-top: 0; }
.history-section[hidden] { display: none; }
.job-history { max-height: none; min-height: 0; }
.column-resizer { position: relative; z-index: 6; width: 8px; min-width: 8px; cursor: col-resize; touch-action: none; background: #e2e8f0; }
.column-resizer::after { position: absolute; top: 50%; left: 2px; width: 4px; height: 44px; border-radius: 3px; background: #94a3b8; content: ""; transform: translateY(-50%); }
.column-resizer:hover, .column-resizer:focus-visible, .column-resizer.is-dragging { background: #d6edf4; outline: 0; }
.column-resizer:hover::after, .column-resizer:focus-visible::after, .column-resizer.is-dragging::after { background: var(--cyan); }
.viewer-tool-button { min-height: 28px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; cursor: pointer; font-size: .62rem; white-space: nowrap; }
.viewer-tool-button:hover, .viewer-tool-button.is-active { border-color: rgba(8,126,164,.42); color: #075d7a; background: #e7f4f8; }
.viewer-tool-button[hidden] { display: none; }
.demo-workbench.is-viewer-maximized { grid-template-columns: minmax(0, 1fr); }
.demo-workbench.is-viewer-maximized .demo-controls,
.demo-workbench.is-viewer-maximized .demo-results,
.demo-workbench.is-viewer-maximized .column-resizer { display: none; }
.demo-workbench.is-viewer-maximized .demo-viewer { grid-column: 1; }
.demo-panel-heading { margin-bottom: 12px; }
.model-card, .geometry-file, .request-preview, .result-state, .job-reference,
.demo-metrics, .result-groups section, .comparison-metrics section, .history-job {
  border-color: var(--line);
  background: #fff;
}
.model-card { margin-bottom: 8px; padding: 10px; background: #eef8fb; }
.geometry-file { margin-bottom: 7px; padding: 9px; }
.file-icon { color: #fff; background: var(--cyan); }
.geometry-checks { margin-bottom: 12px; }
.demo-field { margin-bottom: 12px; }
.demo-field select, .field-select select, .speed-presets button, .dimension-tabs {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}
.speed-presets button:hover, .speed-presets button.is-active { border-color: rgba(8,126,164,.42); color: #075d7a; background: #e7f4f8; }
.fixed-condition-note { margin: 10px 0; border-color: var(--line); color: var(--muted); background: #fff; }
.request-preview { padding: 9px; }
.history-section { margin-top: 12px; padding-top: 12px; }
.job-history { max-height: 170px; }
.history-job:hover { border-color: rgba(8,126,164,.38); }
.history-delete { padding: 3px 6px; border: 1px solid rgba(190,18,60,.25); border-radius: 6px; color: #be123c; background: #fff1f2; cursor: pointer; font-size: .62rem; }
.history-delete:hover { border-color: rgba(190,18,60,.5); background: #ffe4e6; }
.history-delete:disabled { cursor: wait; opacity: .5; }
.viewer-toolbar { min-height: 56px; border-color: var(--line); background: #fff; }
.viewer-toolbar-v2 { min-height: 56px; }
.view-tabs button.is-active { border-color: rgba(8,126,164,.25); color: #075d7a; background: #e7f4f8; }
.dimension-tabs button.is-active { color: #fff; background: var(--cyan); }
.flow-viewport, .flow-viewport-v2 { min-height: 560px; background: #edf3f7; }
.flow-viewport::before { background-image: linear-gradient(rgba(51,65,85,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(51,65,85,.055) 1px, transparent 1px); }
.visualization-grid { min-height: 560px; background: rgba(51,65,85,.12); }
.visualization-grid[data-count="3"], .visualization-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.visual-panel { background: #edf3f7; }
.visual-panel > header { border-color: var(--line); background: rgba(255,255,255,.92); }
.visual-panel-body { min-height: 505px; background-image: linear-gradient(rgba(51,65,85,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(51,65,85,.045) 1px, transparent 1px); }
.result-canvas-2d, .result-canvas-3d { min-height: 505px; }
.viewer-empty { color: var(--text); background: rgba(237,243,247,.92); }
.visual-mode-badge, .interaction-help, .field-legend { border-color: var(--line); color: var(--muted); background: rgba(255,255,255,.92); }
.demo-loading { color: var(--text); background: rgba(255,255,255,.86); }
.accuracy-boundary { border-color: rgba(161,98,7,.22); background: #fffbeb; }

.site-footer { min-height: 52px; flex-wrap: wrap; padding-block: 14px; color: var(--muted); font-size: .75rem; }
.visitor-counter { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; white-space: nowrap; }
.visitor-counter-status { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.visitor-counter[data-state="loading"] .visitor-counter-status { animation: visitor-counter-pulse 1.4s ease-in-out infinite; }
.visitor-counter[data-state="ready"] .visitor-counter-status { background: var(--green); }
.visitor-counter[data-state="preview"] .visitor-counter-status,
.visitor-counter[data-state="unavailable"] .visitor-counter-status { background: #94a3b8; }
.visitor-counter strong { color: var(--text); font-size: .78rem; font-variant-numeric: tabular-nums; }

@keyframes visitor-counter-pulse {
  0%, 100% { opacity: .4; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (min-width: 961px) {
  html:has(body.demo-page), body.demo-page { height: 100%; overflow: hidden; }
  body.demo-page { display: grid; grid-template-rows: 60px minmax(0, 1fr) 40px; }
  .demo-page .demo-main { min-height: 0; padding: 6px 0; overflow: hidden; }
  .demo-page .demo-workbench, .demo-page .demo-workbench-v2 { height: 100%; min-height: 0; }
  .demo-page .demo-controls, .demo-page .demo-results { min-height: 0; padding: 10px; overflow: hidden; }
  .demo-page .demo-results { overflow-y: auto; scrollbar-width: thin; }
  .demo-page .demo-panel-heading { margin-bottom: 7px; }
  .demo-page .demo-field { gap: 3px; margin-bottom: 7px; }
  .demo-page .demo-field select { min-height: 33px; font-size: .7rem; }
  .demo-page .demo-field select option { font-size: .7rem; }
  .demo-page .model-card { margin-bottom: 5px; padding: 7px 8px; }
  .demo-page .geometry-file { margin-bottom: 4px; padding: 6px 8px; }
  .demo-page .geometry-checks { gap: 3px; margin-bottom: 6px; }
  .demo-page .geometry-checks li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .demo-page .range-field { margin-top: 8px; }
  .demo-page .demo-run { min-height: 39px; margin-top: 2px; }
  .demo-page .request-preview { gap: 2px; padding: 6px 8px; }
  .demo-page .request-preview code { line-height: 1.35; }
  .demo-page .history-section { margin-top: 0; padding-top: 0; }
  .demo-page .history-heading { margin-bottom: 5px; }
  .demo-page .job-history { max-height: none; margin-bottom: 5px; }
  .demo-page .history-job { padding: 5px 7px; }
  .demo-page .compare-button { min-height: 31px; }
  .demo-page .history-help { overflow: hidden; margin-top: 3px; font-size: .6rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .demo-page .demo-viewer { min-height: 0; }
  .demo-page .viewer-toolbar, .demo-page .viewer-toolbar-v2 { min-height: 52px; padding-block: 6px; }
  .demo-page .flow-viewport, .demo-page .flow-viewport-v2,
  .demo-page .visualization-grid, .demo-page .visual-panel-body,
  .demo-page .result-canvas-2d, .demo-page .result-canvas-3d { min-height: 0; }
  .demo-page .visualization-grid { height: 100%; }
  .demo-page .visual-panel { min-height: 0; }
  .demo-page .visual-panel > header { min-height: 34px; padding: 5px 10px; }
  .demo-page .result-state { margin-bottom: 8px; padding: 8px; }
  .demo-page .result-state strong { margin: 3px 0 1px; }
  .demo-page .job-reference { margin-bottom: 8px; padding: 7px; }
  .demo-page .demo-metrics { min-height: 0; margin-bottom: 8px; padding: 8px; }
  .demo-page .artifact-links { margin-bottom: 8px; }
  .demo-page .accuracy-boundary { padding: 8px; }
  .demo-page .site-footer { min-height: 40px; padding-block: 5px; }
}

@media (max-width: 960px) {
  .demo-workbench, .demo-workbench-v2 { width: min(100% - 12px, 860px); grid-template-columns: 260px minmax(0, 1fr); }
  .column-resizer { display: none; }
}

@media (max-width: 680px) {
  .site-header { min-height: 56px; }
  .site-nav { top: 56px; background: #fff; }
  .hero-compact { padding-block: 24px 20px; }
  .hero-compact h1 { font-size: 1.55rem; }
  .section-first { padding-top: 18px; }
  .section-first .section-heading > .text-link { justify-self: start; }
  .demo-main { padding-top: 8px; }
  .service-recovery { align-items: stretch; flex-direction: column; margin-block: 8px; padding: 20px; }
  .service-recovery-actions { flex-direction: column; }
  .demo-intro { min-height: 28px; margin-bottom: 6px; }
  .demo-intro h1 { font-size: 1.05rem; }
  .demo-workbench, .demo-workbench-v2 { width: calc(100% - 8px); grid-template-columns: 1fr; }
  .flow-viewport, .flow-viewport-v2 { min-height: 420px; }
  .visualization-grid { min-height: 420px; }
  .visual-panel-body, .result-canvas-2d, .result-canvas-3d { min-height: 340px; }
  .site-footer { gap: 8px 16px; }
  .visitor-counter { width: 100%; margin-left: 0; }
}

/* Final compact spacing overrides for the current light workbench skin. */
body { font-size: .93rem; }
.site-header { min-height: 52px; }
.site-nav { gap: 2px; }
.site-nav a { padding: 6px 9px; font-size: .82rem; }
.language-toggle { padding: 6px 10px; font-size: .76rem; }
.page-main { padding-block: 30px 44px; }
.page-intro { margin-bottom: 24px; }
.section-heading { gap: 26px; margin-bottom: 18px; }
.section-heading.compact { margin-bottom: 14px; }
.card-grid, .participation-grid { gap: 10px; }
.case-card { min-height: 210px; padding: 15px; }
.case-card .card-top { margin-bottom: 12px; }
.usage-strip { margin-bottom: 24px; }
.usage-strip h2, .usage-strip > div { padding: 11px; }
.catalog-disclosure > summary { min-height: 78px; padding: 12px 16px; }
.catalog-disclosure .catalog-section { padding: 18px 18px 22px; }
.filter-panel { gap: 8px; margin-bottom: 14px; padding: 10px; }
.case-hero { gap: 28px; padding-bottom: 30px; }
.case-content-grid { gap: 30px; padding-top: 30px; }
.method-block { gap: 26px; padding: 28px 0; }
.definition-grid article, .prose-card { padding: 14px; }
.participation-card { min-height: 350px; padding: 18px; }
.process-line li { padding: 14px 12px; }
.demo-page .demo-workbench, .demo-page .demo-workbench-v2 { min-height: 0; }
.demo-page .demo-controls, .demo-page .demo-results { padding: 9px; }
.demo-page .demo-panel-heading { margin-bottom: 6px; }
.demo-page .demo-field { margin-bottom: 6px; }
.demo-page .geometry-file { padding: 6px 8px; }
.demo-page .geometry-checks { margin-bottom: 6px; }
.demo-page .viewer-toolbar, .demo-page .viewer-toolbar-v2 { min-height: 48px; padding-block: 5px; }

@media (max-width: 680px) {
  .site-header { min-height: 56px; }
  .site-nav { top: 56px; }
  .demo-page .demo-workbench, .demo-page .demo-workbench-v2 { min-height: 0; }
}
