/* 首页的工作台以对话为主；打开工具时才为它分配一栏。 */
.science-hero {
  background: var(--bg-canvas);
  color: var(--ink-primary);
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding: clamp(2.5rem, 8svh, 5.5rem) 0 clamp(52px, 6vw, 96px);
}
.science-hero *, .science-hero *::before, .science-hero *::after { box-sizing: border-box; }
.science-hero [hidden] { display: none !important; }
.science-hero .h-icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
.science-hero button { font: inherit; cursor: pointer; color: inherit; border: 0; background: none; padding: 0; }
.science-hero a { text-decoration: none; }
.science-hero :is(a, button, summary):focus-visible { outline: 3px solid var(--whale-accent); outline-offset: 2px; }
.h-lead { width: min(var(--site-width), 46rem); margin-inline: auto; text-align: center; }
.science-hero .h-lead h1 { font-size: var(--site-title-size); font-weight: 650; line-height: 1.26; letter-spacing: -.025em; }
.h-lead h1 > span { display: block; }
.science-hero .h-lead h1 em { color: var(--jade-ink); font-style: normal; }
.science-hero .h-lead p { max-width: 40rem; margin: clamp(1.125rem, 2vw, 1.75rem) auto 0; color: var(--ink-secondary); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.65; text-wrap: balance; }
.h-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: clamp(1.5rem, 2.5vw, 2rem); }
.h-actions a { gap: 9px; min-height: 46px; padding: 10px 23px; font-weight: 650; font-size: 15px; }
.h-actions .h-icon { width: 1.14em; height: 1.14em; }
.h-stage { position: relative; isolation: isolate; container-type: inline-size; width: min(var(--site-width), 60rem); margin: clamp(2.25rem, 5.5svh, 3.75rem) auto 0; }
/* 工作台配色随发行页明暗主题同步切换，浅色纸感清透，暗色承接墨蓝灰画布。 */
.h-host {
  color-scheme: light;
  --ds-bg: #fff; --ds-side: #f3f7f5; --ds-sub: #eff4f2; --ds-raised: #e3ece8;
  --ds-stroke: #d7e2dd; --ds-frame: #cddad4; --ds-ink: #161a18; --ds-copy: #2e3834; --ds-soft: #53615b;
  --ds-highlight: #08774f; --ds-wash: #e3fbf1; --ds-wash-border: #b3e5d0;
  --ds-code-bg: #e9f2ee; --ds-code-ink: #0a6b48;
  --ds-send-bg: #181b1a; --ds-send-ink: #fff;
  --ds-paper-surround: #e9efec;
  --sidebar-width: clamp(178px, 18%, 232px);
  --pane-basis: calc((100cqi - var(--sidebar-width) - 4px) * .516);
  display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) 0fr; grid-template-rows: minmax(0, 1fr);
  position: relative; width: 100%; aspect-ratio: 1.56; min-height: 580px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--ds-frame);
  background: var(--ds-bg); color: var(--ds-copy);
  box-shadow: 0 28px 70px -22px rgb(16 34 27 / .14), 0 8px 24px -8px rgb(16 34 27 / .07);
  font: 400 clamp(11.5px, 1.24cqi, 12.5px)/1.55 var(--site-font); text-align: left;
}
.h-host[data-view=pane] { grid-template-columns: var(--sidebar-width) minmax(0, 1fr) 1.08fr; }
.h-scrim { display: none; }
html[data-theme="dark"] .h-host {
  color-scheme: dark;
  --ds-bg: #18222b; --ds-side: #1d2934; --ds-sub: #22303c; --ds-raised: #2b3c4a;
  --ds-stroke: #2e3e4b; --ds-frame: #3a4c5b; --ds-ink: #f1f6f7; --ds-copy: #d2dee3; --ds-soft: #9bb0bc;
  --ds-highlight: #7de4bc; --ds-wash: #1a3931; --ds-wash-border: #2e6656;
  --ds-code-bg: #223836; --ds-code-ink: #8ce8c4;
  --ds-send-bg: #82e3b9; --ds-send-ink: #102a21;
  --ds-paper-surround: #151e26;
  box-shadow: 0 28px 68px -18px rgb(2 7 11 / .62), 0 8px 24px -8px rgb(2 7 11 / .36);
}
.h-host a { color: var(--ds-highlight); }
.h-host button, .h-host summary, .h-host a { border-radius: 4px; }
.h-host :is(button,a):hover { color: var(--ds-ink); background-color: var(--ds-raised); }
.h-host .h-icon { width: 1.12em; height: 1.12em; }
.h-host .h-mark { display: inline-flex; position: relative; flex: none; width: 1.35em; height: 1.35em; align-items: center; justify-content: center; }
.h-brand-mark::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 42%; height: 42%; background: var(--ds-bg) url("../logo.svg") center / contain no-repeat; border-radius: 50%; }
.h-sidebar .h-brand-mark::after { background-color: var(--ds-side); }
.h-host :is(button,a):hover .h-brand-mark::after { background-color: var(--ds-raised); }
.h-host .h-nav-row[aria-expanded="true"],
.h-utilities button[aria-expanded="true"] { color: var(--ds-highlight); background-color: var(--ds-wash); }
.h-host .h-nav-row[aria-expanded="true"] .h-brand-mark::after,
.h-utilities button[aria-expanded="true"] .h-brand-mark::after { background-color: var(--ds-wash); }

.h-sidebar { grid-column: 1; grid-row: 1; min-width: 0; padding: 14px 12px 15px; background: var(--ds-side); border-right: 1px solid var(--ds-stroke); display: flex; flex-direction: column; align-items: stretch; }
.h-window-bar { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.h-lights { display: flex; gap: 6px; padding-left: 4px; }
.h-lights i { width: 10px; height: 10px; border-radius: 50%; background: #f67568; }
.h-lights i:nth-child(2) { background: #efba4f; }.h-lights i:last-child { background: #63c785; }
.h-host-logo { display: flex; align-items: center; gap: 4px; color: var(--ds-ink); margin: 18px 3px 26px; font-size: 1em; line-height: 1; }
.h-whale { flex: none; width: 1.65em; height: 1.65em; background: url("hero-deepseek.svg") center / contain no-repeat; opacity: .9; }
html[data-theme="dark"] .h-whale { filter: invert(1); opacity: .94; }
.h-host-logo b { font-size: 1.35em; letter-spacing: -.035em; font-weight: 700; }
.h-host-logo small { font: 750 .64em/1 var(--site-font); background: var(--ds-copy); color: var(--ds-bg); border-radius: 2px; padding: 2px 3px; }
.h-host .h-nav-row, .h-user { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.h-host .h-nav-row { min-height: 32px; }
.h-workspace-label { margin: 24px 8px 4px; color: var(--ds-soft); font-size: .88em; }
.h-host .h-active-chat { text-align: left; background: var(--ds-raised); color: var(--ds-ink); font-weight: 560; padding: 6px 10px 6px 18px; font-size: .96em; }
.h-user { margin-top: auto; color: var(--ds-soft); font-size: .95em; }
.h-chat { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.h-chat-head, .h-pane-tab { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 4px 14px; border-bottom: 1px solid var(--ds-stroke); }
.h-chat-head > b, .h-pane-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1em; font-weight: 600; color: var(--ds-ink); }
.h-utilities { display: flex; }
.h-utilities :is(button,a), .h-pane-tab button, .h-host .h-mobile-nav { display: inline-grid; place-items: center; width: 30px; height: 30px; color: var(--ds-copy); }
.h-host .h-mobile-nav { display: none; }
.h-chat-body { flex: 1; min-height: 0; overflow: auto; padding: clamp(18px, 2.2vw, 28px) 5.5% 14px; scrollbar-width: thin; scrollbar-color: var(--ds-stroke) transparent; }
.h-thread, .h-input { max-width: 640px; margin-inline: auto; }
.h-thread { font-size: 1.01em; line-height: 1.6; }
.h-question { width: fit-content; max-width: 90%; margin-left: auto; color: var(--ds-ink); background: var(--ds-sub); border: 1px solid var(--ds-stroke); border-radius: 14px 14px 4px 14px; padding: .58em 1em; font-weight: 520; }
.h-answer { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: clamp(14px, 1.8vw, 22px); color: var(--ds-copy); }
.h-avatar { display: block; width: 22px; height: 22px; margin-top: 2px; }
.h-answer-body { min-width: 0; }
.h-answer ol { padding-inline-start: 1.4em; margin: .72em 0 .68em; }
.h-answer li { margin: .44em 0; }
.h-answer li::marker { color: var(--ds-soft); font-weight: 600; }
.h-answer li .h-citation { margin: 5px 0 2px; }
.h-answer strong { color: var(--ds-ink); font-weight: 650; }
.h-answer code { padding: .08em .38em; border-radius: 4px; background: var(--ds-code-bg); color: var(--ds-code-ink); font-size: .9em; white-space: nowrap; }
.h-answer-outro { color: var(--ds-soft); font-size: .95em; }
.h-host .h-inline-link { display: inline; padding: 1px 3px; border-radius: 4px; color: var(--ds-highlight); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: .2em; }
.h-host .h-inline-link:hover, .h-host .h-inline-link[aria-expanded="true"] { color: var(--ds-highlight); background: var(--ds-wash); text-decoration-color: currentColor; }
.h-host .h-citation { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; background: var(--ds-wash); border: 1px solid var(--ds-wash-border); color: var(--ds-highlight); font-size: .91em; font-weight: 560; border-radius: 6px; }
.h-host .h-citation:hover, .h-host .h-citation[aria-expanded="true"] { background: var(--ds-raised); border-color: var(--ds-highlight); color: var(--ds-highlight); }
.h-input { width: 89%; margin: 6px auto clamp(14px, 1.6vw, 22px); padding: 9px 13px 8px; background: var(--ds-sub); border: 1px solid var(--ds-stroke); color: var(--ds-soft); border-radius: 12px; font-size: .95em; }
.h-input > span { display: block; min-height: 2.35em; }
.h-composer { display: flex; align-items: center; gap: 6px; }
.h-composer small { margin-left: auto; margin-right: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .92em; white-space: nowrap; }
.h-attach {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 999px;
  border: 1px solid var(--ds-stroke); background: var(--ds-bg); color: var(--ds-copy);
}
.h-attach .h-icon { width: 13px; height: 13px; }
.h-mode-wrap { position: relative; display: inline-flex; align-items: center; }
.h-host .h-mode-btn {
  position: relative; width: 24px; height: 24px; min-width: 24px; padding: 0;
  border-radius: 7px; border: 0; background: transparent;
  display: inline-grid; place-items: center; color: var(--ds-soft);
}
.h-host .h-mode-btn:hover, .h-host .h-mode-btn.is-open { color: var(--ds-ink); background: var(--ds-raised); }
.h-mode-logo { display: block; flex: none; width: 17px; height: 17px; }
.h-mode-btn[data-mode="auto"] .h-mode-logo--brand { display: none; }
.h-mode-btn:not([data-mode="auto"]) .h-mode-logo--ring { display: none; }
.h-mode-btn.is-active .h-whale-eye { fill: #fff; }
.h-mode-btn:not(.is-active) .h-whale-body { fill: currentColor; }
.h-mode-btn:not(.is-active) .h-whale-eye { fill: var(--ds-sub); }
.h-mode-btn.is-off .h-mode-logo { opacity: .44; }
.h-mode-btn.is-off:is(:hover, .is-open) .h-mode-logo { opacity: .76; }
.h-mode-popover {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20;
  width: min(276px, calc(100vw - 56px)); padding: 6px;
  border: 1px solid var(--ds-stroke); border-radius: 12px;
  background: var(--ds-bg); color: var(--ds-ink);
  box-shadow: 0 12px 30px -6px rgb(16 34 27 / .18), 0 2px 8px rgb(16 34 27 / .08);
}
html[data-theme="dark"] .h-mode-popover {
  background: #1f2b36; border-color: var(--ds-frame);
  box-shadow: 0 16px 36px rgb(2 7 11 / .58);
}
.h-mode-pop-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 3px 4px 6px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--ds-stroke);
}
.h-mode-pop-title { font-size: 11.5px; font-weight: 600; color: var(--ds-soft); }
.h-host .h-mode-help {
  width: 24px; height: 24px; border-radius: 999px;
  display: inline-grid; place-items: center; color: var(--ds-soft);
}
.h-host .h-mode-help:hover { color: var(--ds-ink); background: var(--ds-raised); }
.h-mode-menu { display: flex; flex-direction: column; gap: 2px; }
.h-host .h-mode-option {
  width: 100%; padding: 7px 9px; border-radius: 8px; text-align: left;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  color: var(--ds-ink); background: transparent;
}
.h-host .h-mode-option:hover { background: var(--ds-sub); }
.h-host .h-mode-option.is-selected { background: var(--ds-wash); }
.h-host .h-mode-option.is-selected:hover { background: color-mix(in srgb, #16cf8c 18%, transparent); }
.h-mode-option-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.h-mode-option-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.h-mode-option-title { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--ds-ink); }
.h-mode-state-pill {
  font-size: 10.5px; font-weight: 560; line-height: 15px; padding: 0 6px; border-radius: 999px;
  background: color-mix(in srgb, #16cf8c 16%, transparent); color: var(--ds-highlight); white-space: nowrap;
}
.h-mode-option-desc { font-size: 11px; line-height: 1.4; color: var(--ds-soft); }
.h-mode-option-check {
  width: 15px; height: 15px; margin-top: 1px; display: inline-grid; place-items: center;
  flex: none; color: var(--ds-highlight); opacity: 0;
}
.h-mode-option.is-selected .h-mode-option-check { opacity: 1; }
.h-send { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ds-send-ink); background: var(--ds-send-bg); }
.h-right {
  grid-column: 3; grid-row: 1;
  min-width: 0; min-height: 0; overflow: hidden;
  background: var(--ds-bg); border-left: 1px solid transparent;
  opacity: 0; pointer-events: none;
}
.h-host[data-view=pane] .h-right {
  border-left-color: var(--ds-stroke); opacity: 1; pointer-events: auto;
}
.h-pane {
  display: flex; flex-direction: column; width: 100%; min-width: var(--pane-basis);
  height: 100%; min-height: 0; transform: translateX(0);
}
.h-host:not([data-view=pane]) .h-pane { transform: translateX(14px); }
.h-pane-tab { flex: none; }
.h-pane-tools { display: flex; align-items: center; gap: 3px; min-height: 30px; padding: 3px 7px; font-size: .88em; border-bottom: 1px solid var(--ds-stroke); color: var(--ds-soft); }
.h-pane-tools i { flex: 1; }
.h-pane-tools b, .h-pane-tools span { border-radius: 4px; border: 1px solid var(--ds-stroke); padding: 2px 5px; }
.h-pane-tools b { color: var(--ds-ink); background: var(--ds-raised); }
.h-subtools { min-height: 25px; background: var(--ds-sub); }
.h-paper-viewport { display: flex; flex: 1; min-height: 0; padding: 9px 10px 0; background: var(--ds-paper-surround); overflow: auto; scrollbar-width: thin; }
.science-hero .h-paper { color: #1d2524; background: white; margin: 0 auto; padding: clamp(16px, 1.6vw, 25px) 8% 12px; width: 100%; min-height: 100%; height: fit-content; box-shadow: 0 3px 9px #1418211a; font-family: "Source Sans 3", sans-serif; font-size: clamp(10.5px, 1.15cqi, 12px); line-height: 1.34; }
.h-paper-meta, .h-paper .h-byline { font-size: .8em; color: #52615a; }
.h-paper-meta { letter-spacing: .075em; }
.science-hero .h-paper h2 { color: inherit; font-family: Georgia, serif; font-size: 1.65em; line-height: 1.14; font-weight: 600; letter-spacing: -.02em; margin: .8em 0 .22em; }
.science-hero .h-paper h3 { color: inherit; font-size: 1.1em; font-weight: 650; letter-spacing: 0; margin: .65em 0 .2em; }
.science-hero .h-paper p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.science-hero .h-paper .h-byline { font-size: .8em; }
.h-paper .h-paper-quote { background: #e3f5ea; outline: 1px solid #3ec896; border-radius: 2px; padding: 2px 3px; }
.h-paper-quote:focus { outline: 2px solid #16cf8c; outline-offset: 1px; }
.h-paper table { border-collapse: collapse; width: 100%; font-size: .93em; margin: 1.1em 0 .6em; border-block: 1px solid #25332c; }
.h-paper table caption { text-align: left; padding-bottom: 3px; }
.h-paper table :is(td,th) { border: 0; padding: 1px 3px; text-align: right; font-size: inherit; }
.h-paper table :is(td,th):first-child { text-align: left; }
.h-paper thead { border-bottom: 1px solid #64726c; }
.h-mini-chart { width: 85%; height: 42px; margin: .8em auto .5em; display: flex; align-items: flex-end; justify-content: space-evenly; border-inline-start: 1px solid #7a8780; border-bottom: 1px solid #7a8780; background: #f4f9f6; }
.h-mini-chart i { width: 15%; background: #9caea5; height: 30%; }.h-mini-chart i:nth-child(2) { background: #5180ea; height: 61%; }.h-mini-chart i:last-child { background: #16bc83; height: 86%; }
.h-figure-tab { background: var(--ds-sub); color: var(--ds-copy); padding: 4px 7px; font-size: .92em; }
.h-figure-tab span { color: var(--ds-soft); }
.h-canvas { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 12px 12px 35px 32px; background-color: var(--ds-sub); background-image: radial-gradient(var(--ds-stroke) .9px, transparent 1px); background-size: 9px 9px; }
.h-edit-tools { display: grid; justify-items: center; align-content: start; gap: 9px; position: absolute; inset: 0 auto 0 0; background: var(--ds-bg); border-right: 1px solid var(--ds-stroke); width: 25px; padding: 8px 0; font-size: 1em; }
.h-artboard { position: relative; background: #fff; border: 1px solid #2fcf9e; width: 100%; }
.h-artboard img { display: block; width: 100%; height: auto; }
.h-artboard > i { position: absolute; width: 5px; height: 5px; border: 1px solid #2fcf9e; background: white; }
.h-artboard > i:nth-of-type(1) { top: -3px; left: -3px; }.h-artboard > i:nth-of-type(2) { bottom: -3px; left: -3px; }.h-artboard > i:nth-of-type(3) { top: -3px; right: -3px; }.h-artboard > i:nth-of-type(4) { bottom: -3px; right: -3px; }
.h-layer-focus { position: absolute; inset: 0 0 50% 54%; border: 2px solid #16cf8c; background: #16cf8c22; opacity: 0; }
.h-canvas.h-layer-active .h-layer-focus, .h-canvas:has(.h-layer:is(:hover,:focus-visible)) .h-layer-focus { opacity: 1; }
.h-host .h-layer, .h-zoom { position: absolute; bottom: 7px; padding: 3px 7px; background: var(--ds-bg); border: 1px solid var(--ds-stroke); border-radius: 4px; font-size: .9em; }
.h-zoom { left: 32px; }.h-host .h-layer { right: 8px; }
.h-host .h-layer[aria-pressed="true"] { border-color: var(--ds-highlight); background: var(--ds-wash); color: var(--ds-highlight); }
.h-work-tabs, .h-work-subtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; padding: 4px 5px 0; font-size: .95em; }
.h-work-tabs > *, .h-work-subtabs > * { padding: 6px 3px; }
.h-work-tabs b, .h-work-subtabs { background: var(--ds-sub); }.h-work-tabs b { border-radius: 6px 6px 0 0; }
.h-work-subtabs b { color: var(--ds-highlight); text-decoration: underline; text-underline-offset: 5px; }
.h-skill-list, .h-lib-view { padding: 15px; }
.science-hero .h-skill-list h3 { font-size: 1.12em; margin: .5em 0; color: var(--ds-ink); }
.h-skill { border: 1px solid var(--ds-stroke); border-radius: 8px; padding: 10px; }
.h-skill > div { display: flex; align-items: center; gap: 5px; }.h-skill b { margin-right: auto; }
.h-skill small { color: var(--ds-highlight); background: var(--ds-wash); border-radius: 4px; padding: 2px 4px; }
.h-skill p { margin: .6em 0 1em; }.h-skill a { border: 1px solid var(--ds-stroke); padding: 3px 5px; font-size: .92em; display: inline-block; }
.h-lib-search, .h-lib-filters { padding: 6px; color: var(--ds-soft); }
.h-lib-search { display: flex; gap: 6px; align-items: center; border: 1px solid var(--ds-stroke); border-radius: 4px; }
.h-lib-filters { font-size: .92em; margin-bottom: 8px; }
.h-host .h-paper-row { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 7px; padding: 10px; background: var(--ds-sub); border: 1px solid var(--ds-stroke); border-radius: 6px; }
.h-paper-row small { display: block; color: var(--ds-soft); margin-top: 4px; }

/* 工作台外的两件实物只用轮廓和材质识别，没有标签或单独的热点。 */
.h-art { position: absolute; inset: 0; pointer-events: none; }
.h-companion { position: absolute; left: -7.8%; top: 17%; width: clamp(65px, 8vw, 118px); transform: scaleX(-1) rotate(-12deg); }
.h-folder { position: absolute; right: 4%; top: -35px; width: clamp(78px, 8.1vw, 118px); aspect-ratio: 1.36; transform: rotate(10deg); border-radius: 8px; background: #08a76e; box-shadow: 2px 8px 12px #173b2320; }
.h-folder::before { content: ""; position: absolute; left: 0; top: -10%; width: 45%; height: 30%; border-radius: 8px 10px 0 0; background: inherit; }
.h-folder i { position: absolute; inset: 8% 7% 4%; background: #f1fff8; border-radius: 4px; transform: rotate(-4deg); }
.h-folder::after { content: ""; position: absolute; inset: 14% 0 0; border-radius: 5px 7px 8px 8px; background: #28ce8c; }
.h-spotlight { animation: h-spotlight .85s ease-out var(--spotlight-delay, 0ms) backwards; }
@keyframes h-spotlight { from { background: #b4f4da; box-shadow: 0 0 0 3px #16cf8c; } }
@media (prefers-reduced-motion: no-preference) {
  .h-stage.is-revealed .h-folder { animation: h-uncover-folder .9s .12s cubic-bezier(.16,1,.3,1) backwards; }
  .h-stage.is-revealed .h-companion { animation: h-uncover-companion 1s .16s cubic-bezier(.16,1,.3,1) backwards; }
  @keyframes h-uncover-folder { from { translate: -10px 46px; rotate: -11deg; } }
  @keyframes h-uncover-companion { from { translate: 65% 14px; rotate: 16deg; } }
  .h-host.h-ready { transition: grid-template-columns 240ms cubic-bezier(.32,.04,.24,1); }
  .h-host.h-ready[data-view=pane] { transition: grid-template-columns 320ms cubic-bezier(.22,.9,.32,1); }
  .h-host.h-ready .h-right {
    transition: opacity 240ms cubic-bezier(.32,.04,.24,1), border-left-color 240ms cubic-bezier(.32,.04,.24,1);
  }
  .h-host.h-ready[data-view=pane] .h-right {
    transition: opacity 210ms cubic-bezier(.18,.92,.32,1), border-left-color 260ms ease-out;
  }
  .h-host.h-ready .h-pane { transition: transform 240ms cubic-bezier(.32,.04,.24,1); }
  .h-host.h-ready[data-view=pane] .h-pane { transition: none; }
  .h-host.h-ready .h-sidebar {
    transition: opacity 220ms ease-out, padding-inline 240ms cubic-bezier(.32,.04,.24,1), border-right-color 220ms ease-out;
  }
  .h-host :is(.h-nav-row, .h-utilities button, .h-utilities a, .h-pane-tab button, .h-mode-btn, .h-mode-option, .h-citation, .h-inline-link, .h-layer) {
    transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
  }
  .h-layer-focus { transition: opacity 180ms ease-out; }
}
@container (max-width: 56rem) {
  .h-host { --pane-basis: calc((100cqi - 4px) * .51); }
  .h-host[data-view=pane] { grid-template-columns: 0px minmax(0, 1fr) 1.05fr; }
  .h-sidebar { overflow: hidden; }
  .h-sidebar > * { min-width: calc(var(--sidebar-width) - 24px); }
  .h-host[data-view=pane] .h-sidebar { padding-inline: 0; border-right-width: 0; border-right-color: transparent; opacity: 0; pointer-events: none; }
  .h-companion { left: -4%; }
}
@media (max-width: 700px) {
  .science-hero { padding: clamp(2.5rem, 7svh, 4rem) 0 44px; }
  .h-actions a { padding: 8px 12px; min-height: 44px; font-size: 14px; gap: 5px; }
}
@container (max-width: 44rem) {
  .h-host, .h-host[data-view=pane] {
    --pane-basis: 100%;
    aspect-ratio: auto; min-height: 0; height: clamp(460px, 74svh, 590px);
    grid-template-columns: minmax(0, 1fr); border-radius: 12px; font-size: 13px;
  }
  .h-chat { grid-area: 1 / 1; }
  .h-scrim {
    display: block; position: absolute; inset: 0; z-index: 14;
    background: rgb(14 22 20 / .32); opacity: 0; pointer-events: none;
  }
  html[data-theme="dark"] .h-scrim { background: rgb(4 10 15 / .56); }
  .h-host[data-view=nav] .h-scrim { opacity: 1; pointer-events: auto; }
  .h-sidebar {
    grid-column: auto; grid-row: auto;
    position: absolute; inset: 0 auto 0 0; z-index: 15; width: min(252px, 80%); max-width: 100%;
    padding: 14px 12px 15px; border-right: 1px solid var(--ds-stroke);
    transform: translateX(-100%); opacity: 0; pointer-events: none;
    box-shadow: none;
  }
  .h-sidebar > * { min-width: 0; }
  .h-host[data-view=nav] .h-sidebar {
    transform: translateX(0); opacity: 1; pointer-events: auto;
    box-shadow: 12px 0 32px -8px rgb(10 20 18 / .24);
  }
  html[data-theme="dark"] .h-host[data-view=nav] .h-sidebar { box-shadow: 12px 0 36px -6px rgb(2 7 11 / .62); }
  .h-right {
    grid-column: auto; grid-row: auto;
    position: absolute; inset: 0; z-index: 16; width: 100%; border-left: 0;
    transform: translateX(100%); opacity: 0; pointer-events: none;
  }
  .h-host[data-view=pane] .h-right { transform: translateX(0); opacity: 1; pointer-events: auto; }
  .h-pane, .h-host:not([data-view=pane]) .h-pane { min-width: 0; transform: none; }
  @media (prefers-reduced-motion: no-preference) {
    .h-host.h-ready, .h-host.h-ready[data-view=pane] { transition: none; }
    .h-host.h-ready .h-scrim { transition: opacity 200ms ease-in; }
    .h-host.h-ready[data-view=nav] .h-scrim { transition: opacity 240ms ease-out; }
    .h-host.h-ready .h-sidebar {
      transition: transform 210ms cubic-bezier(.32,0,.24,1), opacity 170ms ease-in;
    }
    .h-host.h-ready[data-view=nav] .h-sidebar {
      transition: transform 280ms cubic-bezier(.16,1,.3,1), opacity 180ms ease-out;
    }
    .h-host.h-ready .h-right {
      transition: transform 210ms cubic-bezier(.32,0,.24,1), opacity 170ms ease-in;
    }
    .h-host.h-ready[data-view=pane] .h-right {
      transition: transform 290ms cubic-bezier(.16,1,.3,1), opacity 200ms ease-out;
    }
    .h-host.h-ready .h-pane, .h-host.h-ready[data-view=pane] .h-pane { transition: none; }
  }
  .h-host .h-mobile-nav { display: inline-grid; }
  .h-window-bar { height: 32px; }
  .h-chat-head, .h-pane-tab { padding: 3px 6px; gap: 3px; }
  .h-chat-head > b { font-size: .9em; }
  .h-utilities :is(button,a), .h-host .h-mobile-nav, .h-pane-tab button { width: 33px; height: 42px; }
  .h-chat-body { padding: 16px 14px 12px; }
  .h-thread { font-size: .98em; }
  .h-input { width: calc(100% - 24px); margin-bottom: 12px; }
  .h-answer { grid-template-columns: 20px minmax(0, 1fr); gap: 8px; margin-top: 16px; }
  .h-avatar { width: 20px; height: 20px; }
  .h-question { max-width: 95%; }
  .h-companion { display: none; }
  .h-folder { width: 62px; top: -23px; right: 6%; }
  .h-pane-tools { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-spotlight { animation: none; }
  .h-host .h-pane { transform: none; }
  .h-host :is(.h-nav-row, .h-utilities button, .h-mode-btn, .h-mode-option, .h-citation, .h-inline-link) {
    transition: background-color 110ms ease-out, color 110ms ease-out;
  }
}
@media (scripting: none) {
  .h-host button { cursor: default; }
  .h-host .h-mobile-nav { display: none; }
}
