/* 模块定位：研究空间展示层。核心职责：训练、归档、验证和网络的统一浅色布局。
 * 方法清单：研究导航 / 实验卡片 / 批次结果 / 历史对话框 / 只读规则 / 真实网络。
 * 拆分理由：基础主题与首页共用 site-ui.css；此处仅保留当前双实验需要的布局。 */
:root { --paper: var(--bg); --panel: var(--surface); --green: var(--accent); --lime: #dce8fa; --dark: #293e5a; --site-font: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
.main-area { min-width: 0; padding: 26px 34px 42px; }
.eyebrow { margin: 0 0 7px; color: var(--green); font: 650 13px/1.5 var(--site-font); letter-spacing: .16em; }
.view { display: none; }
.view.active { display: block; animation: enter .28s ease; }
.fullscreen-button { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: #677c95; background: rgba(255,255,252,.82); font-size: 13px; text-decoration: none; }
.fullscreen-button:hover { color: var(--green); border-color: #9eb5a5; }
.view.is-fullscreen { position: fixed; z-index: 100; inset: 0; display: block; overflow: auto; padding: 20px; background: var(--paper); }
.view.is-fullscreen::before { content: ""; position: fixed; z-index: -1; inset: 0; opacity: .28; background-image: linear-gradient(rgba(30,75,56,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(30,75,56,.05) 1px, transparent 1px); background-size: 36px 36px; }
.view.is-fullscreen .open-experiment-layout { min-height: calc(100vh - 110px); grid-template-columns: minmax(560px, 1.4fr) minmax(300px, .6fr); }
.view.is-fullscreen .open-board { width: min(calc(100vh - 175px), 820px); }
.home-intro { min-height: 210px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-intro > div:first-child { max-width: 680px; }
.section-index { color: var(--green); font: 650 13px/1.5 var(--site-font); }
.home-intro h2, .catalog-intro h2 { margin: 14px 0 10px; font: 650 32px/1.5 var(--site-font); }
.home-intro p, .catalog-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.home-live-state { width: 230px; padding-left: 22px; border-left: 3px solid var(--green); }
.home-live-state span, .home-live-state strong, .home-live-state small { display: block; }
.home-live-state span { color: var(--muted); font-size: 13px; }
.home-live-state strong { margin: 8px 0 18px; font: 650 20px/1.5 var(--site-font); }
.home-live-state small { color: #5d6e65; }
.home-live-state b { color: var(--green); font-size: 16px; }
.neural-overview { margin-top: 26px; padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#network-view.active { min-height: calc(100vh - 118px); flex-direction: column; }
#network-view.view.active { display: flex; }
#network-view .neural-workbench { min-height: 540px; flex: 1; }
#network-view .neural-detail { max-height: none; }
.neural-overview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.neural-overview-heading p { margin: 0 0 6px; color: #547abb; font: 650 13px/1.5 var(--site-font); }
.neural-overview-heading h2 { margin: 0; font: 650 24px/1.5 var(--site-font); }
.neural-overview-heading > div > span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.neural-live-mark { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #d8e3f2; border-radius: 6px; color: #677c95; background: rgba(255,255,252,.66); font-size: 13px; }
.neural-live-mark i { width: 7px; height: 7px; border-radius: 50%; background: #e4a52f; box-shadow: 0 0 0 4px rgba(228,165,47,.12); animation: blink 1.5s infinite; }
.neural-heading-actions { display: flex; align-items: center; gap: 8px; }
#network-view.is-fullscreen { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: 16px; }
#network-view.is-fullscreen .neural-overview-heading { margin-bottom: 12px; }
#network-view.is-fullscreen .neural-overview-heading > div > span { margin-top: 4px; }
#network-view.is-fullscreen .neural-metric-strip > div { min-height: 56px; padding-top: 9px; padding-bottom: 9px; }
#network-view.is-fullscreen .neural-workbench { min-height: 0; flex: 1; }
#network-view.is-fullscreen .neural-canvas-shell { min-height: 0; }
#network-view.is-fullscreen .neural-detail { max-height: none; }
.neural-metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1px; border: 1px solid var(--line); background: rgba(255,255,252,.56); }
.neural-metric-strip > div { min-width: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-right: 1px solid var(--line); }
.neural-metric-strip > div:last-child { border-right: 0; }
.neural-metric-strip span { color: var(--muted); font-size: 13px; }
.neural-metric-strip strong { color: var(--ink); font: 650 24px/1.5 var(--site-font); }
.neural-workbench { min-height: 610px; display: grid; grid-template-columns: minmax(560px, 1.55fr) minmax(280px, .45fr); border: 1px solid var(--line); background: rgba(255,255,252,.72); }
.neural-canvas-column { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.neural-toolbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #f8faf6; }
.neural-search { width: min(300px, 58%); min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #d2dad2; border-radius: 6px; color: #748078; background: white; }
.neural-search:focus-within { border-color: #7fae95; box-shadow: 0 0 0 3px rgba(48,121,83,.08); }
.neural-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: 13px/1.5 ui-monospace, monospace; }
.neural-tool-actions { display: flex; align-items: center; gap: 5px; }
.neural-tool-actions button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #d2dad2; border-radius: 6px; color: #42544b; background: white; font-size: 17px; }
.neural-tool-actions button:hover { color: var(--green); border-color: #96b19f; background: #f2f7ef; }
.neural-tool-actions button:focus-visible, .neural-connection-list button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.neural-canvas-shell { position: relative; min-height: 500px; flex: 1; overflow: hidden; background-color: #fbfcf8; background-image: linear-gradient(rgba(44,84,65,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(44,84,65,.045) 1px, transparent 1px); background-size: 24px 24px; }
#neural-network-canvas.is-dragging { cursor: grabbing; }
#neural-network-canvas.has-node-hover { cursor: pointer; }
.neural-loading { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #677c95; background: rgba(248,250,246,.88); font-size: 13px; transition: opacity .2s ease; }
.neural-loading.is-hidden { opacity: 0; pointer-events: none; }
.neural-loading span { width: 17px; height: 17px; border: 2px solid #ccd9d0; border-top-color: var(--green); border-radius: 50%; animation: rotate .8s linear infinite; }
.neural-loading.is-error span { border: 0; border-radius: 0; animation: none; }
.neural-loading.is-error span::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: white; background: #547abb; font-weight: 700; }
.neural-layer-legend { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 13px; padding: 8px 10px; border: 1px solid rgba(210,218,210,.84); border-radius: 6px; color: #65726c; background: rgba(255,255,252,.9); font-size: 13px; pointer-events: none; }
.neural-layer-legend span { display: inline-flex; align-items: center; gap: 5px; }
.neural-layer-legend i { width: 8px; height: 8px; border-radius: 50%; }
.neural-layer-legend i.input { background: #2f7f68; }
.neural-layer-legend i.memory { background: #c58a3a; }
.neural-layer-legend i.output { background: #547abb; }
.neural-layer-legend i.active { border: 2px solid #e7ac23; background: transparent; }
.neural-canvas-note { min-height: 35px; display: flex; align-items: center; margin: 0; padding: 7px 13px; border-top: 1px solid var(--line); color: #7b867f; background: #f8faf6; font-size: 13px; }
.neural-detail { min-width: 0; max-height: 610px; overflow: auto; padding: 20px; background: #fffefa; }
.neural-detail-empty { min-height: 100%; display: grid; place-content: center; justify-items: center; padding: 30px 12px; text-align: center; }
.neural-detail-empty > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 15px; border: 1px solid #ccd8cf; border-radius: 50%; color: var(--green); font-size: 20px; }
.neural-detail-empty h3 { margin: 0 0 8px; font-size: 14px; }
.neural-detail-empty p { max-width: 250px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.neural-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.neural-detail-header h3 { margin: 8px 0 5px; font: 650 18px/1.5 var(--site-font); }
.neural-detail-header code { display: block; max-width: 190px; overflow: hidden; color: #7a867f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.neural-layer-badge, .neural-node-state { display: inline-flex; min-height: 24px; align-items: center; padding: 0 7px; border: 1px solid currentColor; border-radius: 5px; font-size: 13px; }
.neural-layer-badge.input { color: #2f7f68; background: #edf6f1; }
.neural-layer-badge.memory { color: #9a6828; background: #fbf3e5; }
.neural-layer-badge.output { color: #98464a; background: #faeded; }
.neural-node-state { flex: 0 0 auto; color: #758078; background: #f4f5f2; }
.neural-detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 17px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.neural-detail-metrics > div { min-width: 0; min-height: 62px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.neural-detail-metrics span, .neural-detail-metrics b { display: block; }
.neural-detail-metrics span { color: var(--muted); font-size: 13px; }
.neural-detail-metrics b { margin-top: 6px; overflow-wrap: anywhere; color: var(--ink); font: 650 14px/1.5 var(--site-font); }
.neural-last-active { margin: 0 0 18px; color: #758078; font-size: 13px; line-height: 1.5; }
.neural-connection-groups { display: grid; gap: 20px; }
.neural-connection-group h4 { margin: 0 0 8px; font-size: 13px; }
.neural-connection-group > p { margin: 0; color: var(--muted); font-size: 13px; }
.neural-connection-list { display: grid; border-top: 1px solid var(--line); }
.neural-connection-list button { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 3px; border: 0; border-bottom: 1px solid var(--line); color: #42534a; background: transparent; text-align: left; }
.neural-connection-list button:hover { color: var(--green); background: #f7f9f5; }
.neural-connection-list span { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.neural-connection-list small { flex: 0 0 auto; color: #8a948e; font: 13px/1.5 ui-monospace, monospace; }
.experiment-cloud-control { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cloud-status { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid #bbd4c2; border-radius: 999px; color: var(--green); background: #edf5ef; font-size: 13px; font-weight: 700; }
.cloud-status::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.cloud-status.is-running::before { animation: blink 1.2s infinite; }
.cloud-status.is-paused { color: #8b653d; border-color: #dcc8a8; background: #fbf5e9; }
.cloud-status.is-mature { color: #315c6a; border-color: #b9d0d6; background: #edf5f6; }
.cloud-status.is-connecting { color: #7d817d; border-color: #d5d9d4; background: #f3f4f1; }
.training-history-dialog { width: min(1080px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfcf8; box-shadow: 0 24px 70px rgba(24,45,36,.2); }
.training-history-dialog::backdrop { background: rgba(24,38,32,.42); }
.training-history-dialog > header, .training-history-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.training-history-dialog > header small { color: #9a5b45; font: 650 13px/1.5 var(--site-font); }
.training-history-dialog > header h2 { margin: 4px 0 0; font: 650 18px/1.5 var(--site-font); }
.training-history-dialog > header button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: 19px; }
.training-history-meta { padding: 12px 18px; color: var(--muted); font-size: 13px; }
.training-history-table-wrap { max-height: 520px; overflow: auto; border-top: 1px solid var(--line); }
.training-history-dialog table { width: 100%; border-collapse: collapse; font-size: 13px; }
.training-history-dialog th, .training-history-dialog td { padding: 10px 12px; border-bottom: 1px solid #e5e9e3; text-align: left; white-space: nowrap; }
.training-history-dialog th { position: sticky; z-index: 1; top: 0; color: var(--muted); background: #f1f4ef; }
.training-history-dialog td:nth-child(2) { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.training-history-dialog > footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.training-history-dialog > footer button { min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); background: #f8fafc; }
.training-history-dialog > footer button:disabled { opacity: .45; }
.training-history-dialog > footer span { color: var(--muted); font: 13px/1.5 ui-monospace, monospace; }
.experiment-cloud-control { justify-content: flex-end; }
.experiment-cloud-control .cloud-status { min-height: 32px; }
.cloud-individual-id { display: none; max-width: 240px; overflow: hidden; color: var(--muted); font: 650 13px/1.5 var(--site-font); text-overflow: ellipsis; white-space: nowrap; }
body.cloud-observe-mode .cloud-individual-id { display: inline-block; }
body.cloud-observe-mode [data-local-session-control], body.cloud-observe-mode [data-local-experiment-interface] { display: none !important; }
.catalog-link, .back-button { padding: 7px 0; border: 0; color: var(--green); background: transparent; font-size: 13px; }
.catalog-intro { max-width: 760px; margin-bottom: 28px; padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.new-training-round, .training-round-list-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.round-section-heading, .training-round-card header, .training-round-card footer, .training-round-card footer > div, .round-detail-banner > div:first-child, .round-detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.round-section-heading { margin-bottom: 18px; }
.round-section-heading p { margin: 0 0 5px; color: #9a5b45; font: 650 13px/1.5 var(--site-font); }
.round-section-heading h2 { margin: 0; font: 650 21px/1.5 var(--site-font); }
.round-detail-actions select { width: 100%; min-height: 38px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #f8fafc; }
.new-round-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.training-task-dialog { width: min(920px, calc(100vw - 32px)); max-height: min(820px, calc(100vh - 32px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfcf8; box-shadow: 0 24px 70px rgba(24,45,36,.2); }
.training-task-dialog::backdrop { background: rgba(24,38,32,.48); }
.training-task-dialog form { display: flex; max-height: min(820px, calc(100vh - 32px)); flex-direction: column; }
.training-task-dialog header, .training-task-dialog footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.training-task-dialog header small { color: #9a5b45; font: 650 13px/1.5 var(--site-font); }
.training-task-dialog header h2 { margin: 4px 0 0; font: 650 19px/1.5 var(--site-font); }
.training-task-dialog header > button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: 19px; }
.training-task-dialog footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.training-task-body { min-height: 0; overflow-y: auto; }
.training-task-body > section { padding: 20px; border-bottom: 1px solid var(--line); }
.training-task-section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.training-task-section-heading > b { color: #9a5b45; font: 650 13px/1.5 var(--site-font); }
.training-task-section-heading strong, .training-task-section-heading small { display: block; }
.training-task-section-heading strong { font-size: 13px; }
.training-task-section-heading small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.training-task-fields { display: grid; gap: 12px; }
.training-task-fields.is-basic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.training-task-fields.is-learning { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.training-task-fields label { min-width: 0; color: #56655e; font-size: 13px; }
.training-task-fields input, .training-task-fields select { width: 100%; min-height: 39px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; }
.training-task-fields input:focus, .training-task-fields select:focus { border-color: #719982; outline: 2px solid rgba(67,122,91,.1); }
.training-task-fields input:disabled { color: #99a29d; background: #eef1ec; }
.training-task-fields label > small { display: block; min-height: 26px; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.training-task-warning { display: flex; gap: 12px; margin: 16px 20px; padding: 11px 13px; border-left: 3px solid #bd684b; color: #6f5a50; background: #faf3ee; font-size: 13px; line-height: 1.6; }
.training-task-warning strong { flex: 0 0 auto; }
.training-round-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.training-round-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,252,.72); }
.training-round-card.is-running { border-color: #8bb69b; box-shadow: inset 3px 0 0 var(--green); }
.training-round-card header > div, .round-detail-banner > div:first-child > div { min-width: 0; }
.training-round-card header small, .training-round-card header strong, .round-detail-banner small, .round-detail-banner strong { display: block; }
.training-round-card header small, .round-detail-banner small { color: var(--muted); font-size: 13px; }
.training-round-card header strong, .round-detail-banner strong { margin-top: 5px; overflow-wrap: anywhere; font: 650 14px/1.5 var(--site-font); }
.round-status { flex: 0 0 auto; padding: 6px 8px; border-radius: 5px; color: #766647; background: #f5eedf; font-size: 13px; }
.round-status.is-running { color: #246d4e; background: #e7f3e9; }
.round-status.is-mature { color: #52615a; background: #edf0ec; }
.training-round-metrics, .round-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.training-round-metrics span, .round-detail-metrics span { min-width: 0; padding: 11px; background: #f9faf6; }
.training-round-metrics small, .round-detail-metrics small { color: var(--muted); font-size: 13px; }
.training-round-metrics b, .round-detail-metrics b { display: block; margin-top: 5px; overflow-wrap: anywhere; color: var(--green); font: 650 13px/1.5 var(--site-font); }
.training-round-progress { margin: -4px 0 18px; }
.training-round-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 13px; }
.training-round-progress b { color: var(--green); font: 650 13px/1.5 var(--site-font); }
.training-round-progress-track { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #dfe4dd; }
.training-round-progress-track i { display: block; width: 0; height: 100%; background: var(--green); transition: width .3s ease; }
.training-round-progress-track.is-infinite i { background: #6f9c7e; }
.training-round-research { margin: -4px 0 18px; padding: 12px; border: 1px solid #d9dfd5; border-radius: 6px; background: #f7faf4; }
.training-round-research > strong { display: block; margin-bottom: 10px; color: #4d5f56; font-size: 13px; }
.training-round-research > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #dfe5db; background: #dfe5db; }
.training-round-research span { min-width: 0; padding: 8px; background: #fbfcf8; }
.training-round-research small { display: block; color: var(--muted); font-size: 13px; }
.training-round-research b { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #315c6a; font: 650 13px/1.5 var(--site-font); }
.training-round-research-note { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.training-round-health { margin: -6px 0 18px; padding: 10px 12px; border-radius: 6px; font-size: 13px; line-height: 1.6; }
.training-round-health strong { display: block; margin-bottom: 3px; }
.training-round-health.is-warning { color: #8d543c; background: #fff2e7; }
.training-round-parameters { margin: -6px 0 18px; border-top: 1px solid #dfe5db; border-bottom: 1px solid #dfe5db; }
.training-round-parameters summary { padding: 9px 2px; color: #4d5f56; cursor: pointer; font-size: 13px; font-weight: 700; }
.training-round-parameters > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 10px; background: #dfe5db; }
.training-round-parameters span { min-width: 0; padding: 8px; background: #f8faf6; }
.training-round-parameters small { display: block; color: var(--muted); font-size: 13px; }
.training-round-parameters b { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #315c6a; font: 650 13px/1.5 var(--site-font); }
.training-round-card footer { align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.training-round-card footer > div { flex-wrap: wrap; justify-content: flex-end; }
.training-round-card footer a, .round-detail-actions a { color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }
.round-detail-banner { margin-bottom: 14px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcf8; }
.round-detail-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 14px 0; }
.round-detail-actions { justify-content: flex-end; }
.round-detail-actions select { width: min(360px, 100%); margin: 0; }
body.training-validation-mode [data-cloud-control-group] { display: none !important; }
body.training-validation-mode .maze-controls label { display: none; }
body.training-validation-mode #snake-next, body.training-validation-mode #avoidance-next { display: none; }
.neural-source-selector { display: grid; grid-template-columns: .8fr 1.4fr 1.2fr; gap: 12px; margin-bottom: 14px; }
.neural-source-selector label { color: var(--muted); font-size: 13px; }
.neural-source-selector select { width: 100%; min-height: 38px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #f8fafc; }
.experiment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.experiment-card { min-height: 235px; display: flex; flex-direction: column; align-items: stretch; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: rgba(255,255,252,.82); font: inherit; text-align: left; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.experiment-card:hover { transform: translateY(-2px); border-color: #94ad9e; box-shadow: 0 14px 34px rgba(28,48,39,.08); }
.experiment-card-top, .experiment-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.experiment-card-top b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: var(--green); background: #e7eee8; font: 650 13px/1.5 var(--site-font); }
.experiment-card-top em { padding: 4px 7px; border-radius: 5px; color: var(--green); background: #edf3fc; font-size: 13px; font-style: normal; }
.experiment-card > small { margin-top: 24px; color: var(--muted); font-size: 13px; }
.experiment-card > strong { margin-top: 6px; font: 650 22px/1.5 var(--site-font); }
.experiment-card > p { margin: 12px 0 24px; color: #627388; font-size: 13px; line-height: 1.75; }
.experiment-card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid #e4eaf3; color: var(--muted); font-size: 13px; }
.experiment-card-footer b { color: var(--green); font-size: 13px; }
.panel { border: 1px solid rgba(204,214,205,.84); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.panel-heading > div { display: flex; align-items: center; gap: 10px; }
.panel-heading h2 { margin: 0; font-size: 17px; }
.panel-heading p { max-width: 150px; margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: right; }
.step-label { display: grid; place-items: center; width: 29px; height: 29px; color: var(--green); background: #e7eee8; border-radius: 8px; font: 650 13px/1.5 var(--site-font); }
.structure-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 18px; }
.architecture-panel { padding: 26px; }
.flow-diagram { min-height: 350px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.flow-diagram em { color: #9bab9f; font-style: normal; }
.layer-card { width: 180px; min-height: 145px; padding: 22px; border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.layer-card b { font: 650 19px/1.5 var(--site-font); }
.layer-card span { color: #718079; font-size: 13px; line-height: 1.6; }
.layer-card.input { background: #e8f0e9; }
.layer-card.memory { color: white; background: var(--green); }
.layer-card.memory span { color: #c5d8ce; }
.layer-card.output { background: #edf2d7; }
.runtime-rules { margin-top: 28px; padding: 28px 0 4px; border-top: 1px solid var(--line); }
.runtime-rules-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.runtime-rules-heading p { margin: 0 0 7px; color: #547abb; font: 650 13px/1.5 var(--site-font); }
.runtime-rules-heading h2 { margin: 0; font: 650 23px/1.5 var(--site-font); }
.runtime-rules-heading span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.runtime-rules-summary { margin-bottom: 18px; color: var(--green); font: 650 13px/1.5 var(--site-font); }
.runtime-rules-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.runtime-rule-group { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,252,.7); }
.runtime-rule-group > header { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 19px; border-bottom: 1px solid var(--line); }
.runtime-rule-group > header > span { color: #547abb; font: 650 13px/1.5 var(--site-font); }
.runtime-rule-group h3 { margin: 0; font: 650 17px/1.5 var(--site-font); }
.runtime-rule-group header p { margin: 6px 0 9px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.runtime-rule-group header code, .runtime-rule-source code { overflow-wrap: anywhere; color: #53677f; font: 13px/1.5 ui-monospace, monospace; }
.runtime-rule-list { display: grid; }
.runtime-rule-item { min-width: 0; padding: 18px 19px; border-bottom: 1px solid var(--line); }
.runtime-rule-item:last-child { border-bottom: 0; }
.runtime-rule-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.runtime-rule-title h4 { margin: 0; font-size: 13px; }
.runtime-rule-title code { color: #8b9991; font: 13px/1.5 ui-monospace, monospace; }
.runtime-rule-item > p { margin: 10px 0 0; color: #53677f; font-size: 13px; line-height: 1.75; }
.runtime-rule-item > p.runtime-rule-effect { color: var(--muted); }
.runtime-rule-parameters { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr); margin: 13px 0 0; border-top: 1px solid #e4eaf3; }
.runtime-rule-parameters dt, .runtime-rule-parameters dd { min-width: 0; margin: 0; padding: 8px 0; border-bottom: 1px solid #e4eaf3; overflow-wrap: anywhere; font: 13px/1.5 ui-monospace, monospace; }
.runtime-rule-parameters dt { color: #74869c; }
.runtime-rule-parameters dd { color: var(--green); text-align: right; }
.runtime-rule-source { display: grid; gap: 4px; margin-top: 13px; }
.runtime-rule-source span { color: #9a6659; font-size: 13px; }
.rules-loading { grid-column: 1 / -1; min-height: 160px; display: grid; place-content: center; justify-items: center; color: var(--muted); font-size: 13px; }
.rules-loading span { width: 24px; height: 24px; margin-bottom: 12px; border: 2px solid #d6ddd6; border-top-color: var(--green); border-radius: 50%; animation: rotate 1s linear infinite; }
.maze-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; padding: 18px 22px; }
.maze-toolbar > div:first-child { display: flex; align-items: center; gap: 11px; }
.maze-toolbar h2, .maze-toolbar p { margin: 0; }
.maze-toolbar h2 { font-size: 16px; }
.maze-toolbar p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.maze-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.maze-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.open-board-controls { position: sticky; top: 126px; z-index: 5; align-items: end; margin: -4px -4px 16px; padding: 12px; border: 1px solid #d6e1ee; border-radius: 10px; background: rgba(255,255,252,.96); box-shadow: 0 8px 20px rgba(35,55,80,.09); }
.open-board-controls #snake-toggle, .open-board-controls #avoidance-toggle { order: -2; font-weight: 700; }
.open-board-controls #snake-step, .open-board-controls #avoidance-step { order: -1; }
.maze-controls select, .secondary-button, .primary-compact { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f8fafc; font-size: 13px; }
.primary-compact { color: white; border-color: var(--green); background: var(--green); }
.maze-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.maze-stats b { margin-left: 4px; color: var(--green); font: 650 13px/1.5 var(--site-font); }
.maze-status { margin-left: auto; padding: 4px 8px; border-radius: 999px; color: var(--green); background: #e8f0e9; }
.maze-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.maze-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.decision-summary { padding: 15px; border-left: 3px solid var(--green); color: #42534a; background: #f0f5ef; font-size: 13px; line-height: 1.75; }
.candidate-list { display: grid; gap: 8px; margin-top: 15px; }
.candidate-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.candidate-row.selected { border-color: #8fb69a; background: #f1f8ef; }
.candidate-direction { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: var(--green); background: #e8f0e9; font-weight: 700; }
.candidate-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.candidate-score { color: var(--green); font: 650 13px/1.5 var(--site-font); }
.open-experiment-layout { display: grid; grid-template-columns: minmax(500px, 1.35fr) minmax(290px, .65fr); gap: 18px; }
.open-board-panel, .open-decision-panel { min-width: 0; padding: 20px; }
.open-board { width: min(100%, 650px); aspect-ratio: 1; display: grid; margin: 0 auto; overflow: hidden; border: 6px solid var(--dark); border-radius: 8px; background: #eef3fa; }
.open-cell { position: relative; min-width: 0; min-height: 0; border-right: 1px solid rgba(40,78,58,.06); border-bottom: 1px solid rgba(40,78,58,.06); background: #f5f8fc; }
.snake-board .open-cell.snake-body { background: #72a867; }
.snake-board .open-cell.snake-head { background: #1f6f50; }
.snake-board .open-cell.snake-head::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: var(--lime); }
.snake-board .open-cell.food::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: #db5f4b; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.snake-board .open-cell.food::after { content: ""; position: absolute; width: 24%; height: 14%; left: 54%; top: 12%; border-radius: 100% 0; background: #3c875e; transform: rotate(-24deg); }
.avoidance-board .open-cell:nth-child(2n) { background: #f3f6f0; }
.avoidance-board .open-cell.learner::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: #1f6f50; box-shadow: 0 0 0 3px rgba(31,111,80,.15); }
.avoidance-board .open-cell.predator::before { content: ""; position: absolute; inset: 15%; border-radius: 28%; background: #d95d4d; transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(217,93,77,.14); }
.legend-snake-head { background: #1f6f50; }
.legend-snake-body { background: #72a867; }
.legend-food { background: #db5f4b; }
.legend-learner { background: #1f6f50; }
.legend-predator { background: #d95d4d; }
.sensory-frame-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.sensory-frame-heading div { display: grid; gap: 3px; }
.sensory-frame-heading span, .sensory-frame-heading small { color: var(--muted); font-size: 13px; }
.sensory-frame-heading b { color: var(--green); font: 650 13px/1.5 var(--site-font); }
.sensory-grid { width: min(100%, 330px); aspect-ratio: 1; display: grid; gap: 2px; margin: 0 auto; padding: 4px; overflow: hidden; border: 1px solid #233b30; border-radius: 6px; background: #233b30; }
.sensory-grid.is-empty { background: #eef2ec; }
.sensory-pixel { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #f6f8f3; }
.sensory-pixel.vision-boundary { background: #24362f; }
.sensory-pixel.vision-empty { background: #f5f7f2; }
.sensory-pixel.vision-body { background: #72a867; }
.sensory-pixel.vision-head { background: #1f6f50; }
.sensory-pixel.vision-food { background: #fff1eb; }
.sensory-pixel.vision-food::before { content: ""; position: absolute; z-index: 2; inset: 24%; border-radius: 50%; background: #db5f4b; box-shadow: 0 0 0 1px rgba(255,255,255,.8); }
.sensory-pixel::after { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(242, 187, 74, var(--odor-alpha, 0)); pointer-events: none; }
.sensory-pixel.odor-source { box-shadow: inset 0 0 0 2px #efb337; }
.sensory-pixel.is-center { outline: 2px solid #c4d5ee; outline-offset: -2px; }
.sensory-pixel.is-center::before { content: ""; position: absolute; z-index: 3; inset: 34%; border-radius: 50%; background: #c4d5ee; }
.sensory-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin: 9px 0 10px; color: var(--muted); font-size: 13px; }
.sensory-legend span { display: inline-flex; align-items: center; gap: 4px; }
.sensory-swatch, .odor-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.sensory-swatch.boundary { background: #24362f; }
.sensory-swatch.body { background: #72a867; }
.sensory-swatch.food { background: #db5f4b; }
.odor-swatch { background: linear-gradient(90deg, #f5f7f2, #efb337); }
.sensory-frame-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 14px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--line); }
.sensory-frame-meta span { min-width: 0; padding: 8px 5px; color: var(--muted); background: #f5f8fc; font-size: 13px; text-align: center; }
.sensory-frame-meta b { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--green); font: 650 13px/1.5 var(--site-font); }
.danger-readout { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.danger-readout span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: #677c95; background: #f5f8fc; font-size: 13px; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
@keyframes eventIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@media (max-width: 950px) {
.structure-layout, .runtime-rules-groups, .open-experiment-layout { grid-template-columns: 1fr; }
.home-intro { align-items: flex-start; flex-direction: column; }
.home-live-state { width: 100%; }
.neural-workbench { grid-template-columns: minmax(0, 1fr); }
.neural-canvas-column { border-right: 0; border-bottom: 1px solid var(--line); }
.neural-detail { min-height: 300px; max-height: 460px; }
#network-view.active { display: block; min-height: 0; }
#network-view .neural-detail { max-height: 460px; }
#network-view.is-fullscreen { display: block; overflow: auto; }
.training-task-fields.is-basic, .training-task-fields.is-learning { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.round-detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.maze-toolbar { align-items: flex-start; flex-direction: column; }
.view.is-fullscreen .open-experiment-layout { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
.main-area { padding: 18px 14px 88px; }
.home-intro { min-height: 0; padding: 24px 0; }
.home-intro h2, .catalog-intro h2 { font-size: 25px; }
.neural-overview-heading { align-items: flex-start; flex-direction: column; }
.neural-heading-actions { width: 100%; justify-content: space-between; }
.neural-overview-heading h2 { font-size: 21px; }
.neural-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.neural-metric-strip > div { min-height: 62px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.neural-metric-strip > div:nth-child(2) { border-right: 0; }
.neural-metric-strip > div:nth-child(n+3) { border-bottom: 0; }
.neural-metric-strip strong { font-size: 20px; }
.neural-workbench { min-height: 0; }
.neural-toolbar { align-items: stretch; flex-direction: column; }
.neural-search { width: 100%; }
.neural-tool-actions { justify-content: flex-end; }
.neural-canvas-shell { min-height: 430px; }
.neural-layer-legend { right: 10px; left: 10px; justify-content: center; }
.neural-canvas-note { justify-content: center; text-align: center; }
.neural-detail { max-height: 430px; padding: 16px; }
.neural-connection-list button { align-items: flex-start; flex-direction: column; }
.training-round-grid, .neural-source-selector { grid-template-columns: 1fr; }
.training-round-research > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.training-round-parameters > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.round-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.round-detail-actions, .training-round-card footer { align-items: stretch; flex-direction: column; }
.round-detail-actions select { width: 100%; }
.training-history-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
.training-task-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
.training-task-dialog form { max-height: calc(100vh - 20px); }
.training-task-fields.is-basic, .training-task-fields.is-learning { grid-template-columns: 1fr; }
.training-task-warning { align-items: flex-start; flex-direction: column; }
.training-history-table-wrap { max-height: calc(100vh - 210px); }
.experiment-grid { grid-template-columns: 1fr; }
.experiment-card { min-height: 215px; }
.panel-heading p { display: none; }
.runtime-rules-heading { align-items: flex-start; flex-direction: column; }
.runtime-rules-heading button { align-self: stretch; }
.runtime-rule-title { align-items: flex-start; flex-direction: column; }
.runtime-rule-parameters { grid-template-columns: minmax(0, 1fr); }
.runtime-rule-parameters dd { padding-top: 0; text-align: left; }
.flow-diagram { flex-direction: column; }
.flow-diagram em { transform: rotate(90deg); }
.open-board-panel, .open-decision-panel { padding: 13px; }
.maze-controls { width: 100%; }
.maze-controls label { flex: 1; }
.maze-controls select { width: 100%; }
.open-board-controls { top: 76px; gap: 7px; margin: -1px -1px 13px; padding: 10px; }
.open-board-controls #snake-toggle, .open-board-controls #avoidance-toggle { flex: 1 1 100%; }
.experiment-cloud-control { width: 100%; justify-content: space-between; }
.cloud-individual-id { max-width: 145px; }
.maze-status { width: 100%; margin-left: 0; text-align: center; }
.view.is-fullscreen { padding: 12px; }
.view.is-fullscreen .open-board { width: 100%; }
}

.research-shell { max-width: 1440px; padding: 24px 6% 80px; margin: 0 auto; }
.main-area { min-width: 0; }
.research-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding: 27px 0 32px; }
.research-heading .eyebrow { font-size: 13px; letter-spacing: 2px; color: var(--muted); margin: 0 0 18px; }
.research-heading h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.2; font-weight: 750; letter-spacing: -1px; margin: 0; }
.research-heading > p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 5px; }
.research-tabs { display: flex; gap: 10px; width: fit-content; padding: 6px; border: 1px solid #fff; border-radius: 30px; background: #ffffffa6; margin-bottom: 36px; }
.research-tabs button { font-size: 16px; padding: 11px 24px; border-radius: 24px; font-weight: 600; color: var(--muted); }
.research-tabs button.active { background: #eaf0f9; color: #45699f; }
.research-message { border: 1px solid #eccfc3; border-radius: 14px; background: #fff4ef; color: #a3634c; padding: 16px 20px; font-size: 15px; }
.catalog-intro { border: 0; padding: 10px 0 30px; }
.catalog-intro h2 { font: 700 30px/1.45 var(--site-font); margin: 16px 0 14px; letter-spacing: -.5px; }
.catalog-intro p { font-size: 16px; max-width: 800px; line-height: 1.85; color: var(--muted); }
.section-index { font: 600 13px/1.5 var(--site-font); color: var(--accent); }
.experiment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.experiment-card { display: flex; flex-direction: column; min-width: 0; min-height: 330px; padding: 30px; border: 1px solid #fff; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); color: var(--ink); }
.experiment-card:hover { border-color: #c5d5ee; box-shadow: 0 18px 50px #354c7012; color: var(--ink); }
.experiment-card-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.experiment-card-top b { color: #a5b8d4; background: transparent; font-size: 24px; font-weight: 500; }
.experiment-card-top em { font-size: 13px; font-style: normal; color: var(--muted); background: #f0f4fa; padding: 7px 10px; border-radius: 20px; }
.experiment-card > small { font-size: 13px; color: var(--accent); margin-top: 30px; }
.experiment-card > strong { font: 700 27px/1.4 var(--site-font); margin-top: 10px; }
.experiment-card > p { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 16px 0 28px; }
.experiment-card-footer { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; margin-top: auto; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; color: var(--muted); }
.experiment-card-footer b { font-size: 14px; color: var(--accent); }
.panel, .training-round-card, .round-detail-overview, .runtime-rule-group { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: none; }
.home-intro { min-height: 0; border: 0; padding: 0 0 32px; align-items: center; }
.home-intro h2 { font: 700 32px/1.4 var(--site-font); }
.home-intro p { font-size: 16px; }
.home-live-state { border-left: 2px solid #c5d6ee; width: 230px; }
.home-live-state span, .home-live-state small { font-size: 13px; }
.home-live-state strong { font-size: 17px; }
.back-button { font-size: 14px; color: var(--accent); padding: 0; margin-bottom: 18px; }
.home-intro .back-button { display: table; }
.new-training-round { border: 1px solid #dce5f2; border-radius: 20px; background: #edf3fc; padding: 26px; }
.round-section-heading h2 { font: 700 23px/1.4 var(--site-font); }
.round-section-heading p { font: 600 12px/1.5 var(--site-font); color: var(--muted); letter-spacing: 1px; }
.new-round-note { font-size: 14px; line-height: 1.8; color: var(--muted); }
.secondary-button, .primary-compact, .fullscreen-button, .cloud-action-button, .cloud-app-control, .catalog-link { font-size: 14px; min-height: 42px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.primary-compact { color: white; background: #293e5a; border-color: #293e5a; font-weight: 600; }
.primary-compact:hover:not(:disabled) { color: white; background: #3f5e85; }
.training-round-card { padding: 25px; }
.training-round-card h3 { font: 700 22px/1.5 var(--site-font); }
.training-round-card > p, .training-round-progress, .training-round-maturity, .training-round-research, .training-round-parameters { font-size: 14px; }
.training-round-metrics { gap: 1px; border-radius: 12px; }
.training-round-metrics span { background: #f6f8fc; padding: 16px 13px; font-size: 13px; }
.training-round-metrics b { font-size: 23px; color: var(--ink); font-weight: 650; }
.training-round-card footer { gap: 12px; }
.training-round-research > div, .training-round-parameters > div { gap: 12px; }
.training-round-research small, .training-round-parameters small { font-size: 13px; }
.training-round-research b, .training-round-parameters b { font-size: 15px; }
.round-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 16px; font-size: 15px; background: #ffffff60; color: var(--muted); }
.training-task-dialog, .training-history-dialog { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 25px 100px #354c7020; }
.training-task-dialog::backdrop, .training-history-dialog::backdrop { background: #788ba724; backdrop-filter: blur(9px); }
.training-task-dialog header, .training-history-dialog header { background: transparent; }
.training-task-dialog header h2, .training-history-dialog header h2 { font: 700 26px/1.4 var(--site-font); }
.training-task-dialog header small, .training-task-section-heading > b { color: var(--accent); }
.training-task-fields label { color: var(--ink); }
.training-task-fields input:focus, .training-task-fields select:focus { border-color: var(--accent); outline: 2px solid #547abb18; }
.training-task-dialog small, .training-history-dialog small { font-size: 13px; }
.training-task-fields label { font-size: 15px; gap: 9px; }
.training-task-fields small { font-size: 13px; }
.training-task-section-heading strong { font-size: 17px; }
.training-task-warning { font-size: 14px; line-height: 1.8; background: #f5f8fc; }
.training-history-table-wrap table { font-size: 14px; }
.training-history-meta, .training-history-dialog footer { font-size: 14px; }
.structure-layout { display: block; }
.architecture-panel { padding: 28px; }
.panel-heading h2, .runtime-rules-heading h2, .neural-overview-heading h2 { font: 700 25px/1.4 var(--site-font); }
.flow-diagram { min-height: 220px; }
.layer-card { background: #f5f8fc; border-color: var(--line); }
.layer-card b { font-size: 18px; }
.layer-card span { font-size: 14px; line-height: 1.8; }
.runtime-rule-group h3 { font: 700 21px/1.4 var(--site-font); }
.runtime-rule-title h4 { font-size: 17px; }
.runtime-rule-item > p, .runtime-rule-group header p { font-size: 15px; line-height: 1.85; color: var(--muted); }
.runtime-rule-parameters dt, .runtime-rule-parameters dd { font-size: 13px; line-height: 1.7; }
.runtime-rule-source code, .runtime-rule-group header code { font-size: 12px; }
.neural-metric-strip strong { font-size: 28px; font-weight: 650; }
.neural-metric-strip span { font-size: 14px; }
.neural-detail h3 { font-size: 20px; }
.neural-detail p { font-size: 14px; }
.neural-overview-heading > div > span { font-size: 15px; }
.neural-source-selector label { font-size: 14px; }
.neural-canvas-shell { background: #f8fafc; min-height: 500px; }
.maze-toolbar { padding: 22px; }
.maze-toolbar h2 { font: 700 25px/1.4 var(--site-font); }
.maze-controls label { font-size: 14px; }
.maze-controls select { font-size: 15px; padding: 11px; min-height: 42px; }
.open-experiment-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.open-board { border-color: #d4deed; }
.decision-summary { font-size: 15px; line-height: 1.8; }
.candidate-row { font-size: 14px; }
.candidate-evidence { font-size: 12px; }
/* 冻结验证必须允许真实环境逐步执行，但禁止新建个体、改环境或操作云端训练。 */
.training-validation-mode [data-cloud-control-group], .training-validation-mode [data-local-session-control] { display: none; }
.training-validation-mode #snake-step, .training-validation-mode #snake-toggle,
.training-validation-mode #avoidance-step, .training-validation-mode #avoidance-toggle { display: inline-flex; }
.round-detail-banner { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); }
.round-detail-banner strong { font-size: 18px; }
.round-detail-metrics { border-radius: 12px; overflow: hidden; }
.round-detail-metrics > span { background: #f6f8fc; padding: 15px 12px; }
.round-detail-metrics small { font-size: 14px; }
.round-detail-metrics b { font-size: 21px; color: var(--ink); margin-top: 8px; }
.round-detail-actions a { font-size: 14px; }
.neural-toolbar, .neural-canvas-note, .neural-detail { background: var(--surface); }
.neural-toolbar { padding: 14px; }
.neural-search input { font-size: 14px; }
.step-label { color: var(--accent); background: #edf3fc; border-radius: 10px; }
body.page-fullscreen-open { overflow: hidden; }
.view.is-fullscreen { background: var(--bg); }
@media (max-width: 950px) {
 .research-heading { align-items: flex-start; } .research-heading > p { max-width: 190px; }
 .open-experiment-layout, .neural-workbench, .runtime-rules-groups { grid-template-columns: 1fr; }
 .neural-detail { max-height: 450px; } .training-round-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
 .research-shell { padding: 10px 6% 50px; }
 .research-heading { padding: 24px 0 27px; } .research-heading > p { display: none; }
 .research-heading h1 { font-size: 36px; }
 .research-tabs { width: 100%; margin-bottom: 26px; } .research-tabs button { flex: 1; font-size: 15px; }
 .catalog-intro h2 { font-size: 26px; } .catalog-intro p { font-size: 15px; }
 .experiment-grid { grid-template-columns: 1fr; gap: 18px; } .experiment-card { padding: 24px; min-height: 340px; }
 .experiment-card > strong { font-size: 26px; }
 .home-intro { flex-direction: column; align-items: flex-start; gap: 25px; }
 .home-intro h2 { font-size: 27px; } .home-live-state { width: 100%; }
 .round-section-heading { align-items: flex-start; gap: 15px; } .round-section-heading h2 { font-size: 21px; }
 .round-section-heading .primary-compact { font-size: 14px; padding: 12px; }
 .new-training-round { padding: 20px; }
 .training-round-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .training-round-card { padding: 20px; }
 .training-task-fields.is-basic, .training-task-fields.is-learning { grid-template-columns: 1fr; }
 .training-task-dialog, .training-history-dialog { border-radius: 18px; max-width: 94vw; padding: 0; }
 .training-task-dialog header, .training-history-dialog header { padding: 20px; }
 .training-task-body { padding: 20px; }
 .training-task-dialog header h2, .training-history-dialog header h2 { font-size: 23px; }
 .flow-diagram { flex-direction: column; min-height: 0; } .flow-diagram em { transform: rotate(90deg); }
 .layer-card { width: 100%; }
 .runtime-rule-title { flex-direction: column; align-items: flex-start; }
 .runtime-rule-parameters { grid-template-columns: 1fr; } .runtime-rule-parameters dd { text-align: left; }
 .neural-source-selector { grid-template-columns: 1fr; } .neural-metric-strip { grid-template-columns: 1fr 1fr; }
 .neural-overview-heading { flex-direction: column; } .neural-canvas-shell { min-height: 400px; }
 .maze-toolbar > div { flex-wrap: wrap; } .maze-controls { width: 100%; }
 .maze-controls label { flex: 1; min-width: 100px; }
 .round-detail-banner { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .view.active { animation: none; } }
