:root {
  --ink: #17211f;
  --muted: #65716e;
  --line: #dbe3df;
  --paper: #f8faf8;
  --panel: #ffffff;
  --active: #246d66;
  --active-soft: #e8f4f1;
  --shadow: 0 18px 50px rgba(27, 51, 46, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
button, input { font: inherit; }
button { color: inherit; }
body { background: radial-gradient(circle at 82% 2%, #e8f4f0 0, transparent 26rem), var(--paper); }

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(209, 220, 215, 0.9);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 12px; border: 0; background: none; cursor: pointer; padding: 0; text-align: left; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(145deg, #143c38, #2d8178); box-shadow: 0 8px 18px rgba(36,109,102,.25); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 16px; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.preview-badge { border: 1px solid #d8b968; color: #78580d; background: #fff8df; border-radius: 999px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.product-nav { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: #f6f8f7; }
.product-nav a,
.product-nav button { padding: 7px 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; text-decoration: none; font-size: 12px; white-space: nowrap; cursor: pointer; }
.product-nav a.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(28,50,44,.08); font-weight: 700; }
.product-nav button:hover,
.product-nav button:focus-visible { color: var(--active); background: #fff; outline: 0; box-shadow: 0 0 0 2px var(--active-soft); }
.product-nav .feature-guide-trigger { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border: 1px solid #b9d6cf; color: #155a53; background: linear-gradient(145deg, #fff, #eaf6f3); box-shadow: 0 5px 15px rgba(36,109,102,.10); font-weight: 800; }
.product-nav .feature-guide-trigger > span:first-child { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--active); font-size: 11px; }
.product-nav .feature-guide-trigger:focus-visible { outline: 3px solid rgba(36,109,102,.25); outline-offset: 2px; box-shadow: 0 6px 18px rgba(36,109,102,.16); }

.global-search { margin-left: auto; width: min(380px, 31vw); height: 40px; border: 1px solid var(--line); background: #f6f9f7; border-radius: 13px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: var(--muted); }
.global-search:focus-within { border-color: var(--active); box-shadow: 0 0 0 3px var(--active-soft); background: #fff; }
.global-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
kbd { border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 2px 5px; font-size: 10px; color: #87918e; }
.top-stats { display: flex; gap: 14px; }
.top-stat { display: grid; text-align: right; }
.top-stat strong { font-size: 15px; }
.top-stat span { font-size: 10px; color: var(--muted); }

.workspace { --workbench-width: clamp(410px, 36vw, 520px); display: grid; grid-template-columns: 316px minmax(0, 1fr) var(--workbench-width); min-height: calc(100vh - 72px); transition: grid-template-columns .24s ease; }
.workspace.workbench-expanded { --workbench-width: clamp(520px, 48vw, 720px); grid-template-columns: 0 minmax(0, 1fr) var(--workbench-width); }
.workspace.workbench-expanded .sidebar { overflow: hidden; padding-inline: 0; opacity: 0; pointer-events: none; }
.workspace.workbench-focus { grid-template-columns: 0 0 minmax(0, 1fr); }
.workspace.workbench-focus .sidebar,
.workspace.workbench-focus .main-content { min-width: 0; width: 0; overflow: hidden; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.workspace.workbench-collapsed { grid-template-columns: 316px minmax(0, 1fr) 0; }
.workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) { grid-template-columns: 54px minmax(0, 1fr) var(--workbench-width); }
.workspace.scope-sidebar-collapsed.workbench-collapsed { grid-template-columns: 54px minmax(0, 1fr) 0; }
.sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; padding: 21px 15px; border-right: 1px solid var(--line); background: rgba(251,253,251,.86); }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 14px; color: #4b5955; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.sidebar-heading-actions { display: flex; align-items: center; gap: 3px; }
.text-button { border: 0; background: none; color: var(--active); cursor: pointer; font-size: 12px; }
.collapse-tree-button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; color: #53706a; background: transparent; cursor: pointer; }
.collapse-tree-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.collapse-tree-button:hover { color: var(--active); border-color: #c8dbd6; background: var(--active-soft); }
.collapse-tree-button:focus-visible { color: var(--active); outline: 3px solid rgba(36,109,102,.18); outline-offset: 1px; }
.scope-sidebar-toggle svg { transition: transform .2s ease; }
.scope-sidebar-toggle.is-collapsed svg { transform: rotate(180deg); }
.workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) .sidebar { padding: 12px 9px; overflow: hidden; scrollbar-gutter: auto; }
.workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) .sidebar-heading { justify-content: center; padding: 0; }
.workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) .sidebar-heading > span,
.workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) #collapseAll,
.workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) .scope-state-summary,
.workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) .unit-tree,
.workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) .sidebar-note { display: none; }
.scope-state-summary { display: grid; gap: 7px; margin: 0 4px 13px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.9); }
.scope-state-row { min-width: 0; display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 7px; }
.scope-state-row span { color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .04em; }
.scope-state-row strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.scope-state-map strong { color: #44625c; }
.scope-state-agent strong { color: #0d756b; }
.unit-tree { min-width: 0; display: grid; gap: 7px; }
.tree-node { position: relative; min-width: 0; }
.tree-children { --tree-branch-indent: 19px; --tree-junction-y: 21px; position: relative; min-width: 0; display: grid; gap: 3px; margin-left: 13px; padding-left: var(--tree-branch-indent); }
.tree-children > .tree-node::before { content: ""; position: absolute; z-index: 0; left: calc(-1 * var(--tree-branch-indent)); top: var(--tree-junction-y); width: calc(var(--tree-branch-indent) + 10px); border-top: 1px solid #c8d7d3; pointer-events: none; }
.tree-children > .tree-node::after { content: ""; position: absolute; z-index: 0; left: calc(-1 * var(--tree-branch-indent)); top: -3px; bottom: -3px; border-left: 1px solid #c8d7d3; pointer-events: none; }
.tree-children > .tree-node:last-child::after { bottom: auto; height: 24px; }
.tree-scope-row { position: relative; z-index: 1; min-width: 0; width: 100%; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 5px; min-height: 42px; border-radius: 10px; }
.tree-scope-row.map-current,
.tree-scope-row.agent-current { background: transparent; box-shadow: none; }
.tree-scope-row.map-current > .tree-scope-button { color: #174f49; background: #e5f3ef; box-shadow: inset 0 0 0 2px #246d66; }
.tree-scope-row.map-current.agent-current > .tree-scope-button { background: #dff0ec; box-shadow: inset 0 0 0 2px #185f57; }
.tree-scope-row.disabled { opacity: .55; }
.tree-expander { position: relative; z-index: 1; width: 28px; height: 34px; margin-top: calc(var(--tree-junction-y, 21px) - 17px); padding: 0; border: 0; border-radius: 9px; color: #60716d; background: transparent; font-size: 16px; cursor: pointer; }
.tree-expander:hover { color: var(--active); background: transparent; box-shadow: inset 0 0 0 1px #bcd3ce; outline: 0; }
.tree-expander:focus-visible { color: var(--active); background: transparent; outline: 2px solid rgba(36,109,102,.28); outline-offset: 1px; }
.tree-expander.empty { visibility: hidden; cursor: default; }
.tree-expander-icon { width: 8px; height: 8px; display: block; margin: auto; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
.tree-expander.expanded .tree-expander-icon { transform: rotate(135deg) translate(-1px,-1px); }
.tree-scope-button { min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 0; border-radius: 9px; color: #3f4f4b; background: transparent; text-align: left; cursor: pointer; }
.tree-scope-button:hover, .tree-scope-button:focus-visible { color: var(--active); background: rgba(232,244,241,.8); outline: 0; }
.tree-scope-row.map-current > .tree-scope-button:hover,
.tree-scope-row.map-current > .tree-scope-button:focus-visible { color: #174f49; background: #dff0ec; box-shadow: inset 0 0 0 2px #185f57; }
.tree-scope-button .unit-symbol { width: 28px; height: 28px; flex: none; border-radius: 9px; font-size: 11px; }
.tree-scope-button .tree-label { min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; }
.tree-scope-global > .tree-scope-button .tree-label,
.tree-scope-unit > .tree-scope-button .tree-label { font-size: 13px; font-weight: 760; }
.tree-scope-field > .tree-domain-button .tree-label { color: #344c47; font-weight: 700; }
.tree-scope-topic > .tree-scope-button .tree-label { color: #536b66; }
.tree-scope-mentor > .tree-scope-button .tree-label { color: #6c6255; font-weight: 560; }
.tree-agent-marker { width: 18px; height: 18px; flex: none; display: grid; place-items: center; color: #247b71; }
.tree-agent-marker svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.tree-scope-row .tree-count { min-width: 16px; flex: none; text-align: right; }
.tree-direct-group { min-height: 42px; grid-template-columns: 28px minmax(0,1fr) auto; color: #6a746f; }
.tree-direct-group > .tree-direct-label,
.tree-direct-group > .tree-count { align-self: center; }
.tree-direct-label { min-width: 0; display: grid; gap: 2px; font-size: 11px; font-weight: 720; line-height: 1.35; }
.tree-direct-label small { color: #8b9591; font-size: 9px; font-weight: 520; line-height: 1.35; }
.tree-unit { border: 0; border-radius: 12px; overflow: visible; background: transparent; }
.tree-unit.disabled { opacity: .6; }
.tree-unit-button, .tree-domain-button, .tree-field-button { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 8px; }
.tree-unit-button { min-height: 49px; padding: 8px 10px; border-radius: 12px; }
.tree-unit-button:hover, .tree-domain-button:hover, .tree-field-button:hover { background: var(--active-soft); }
.tree-unit-button:disabled { cursor: not-allowed; }
.unit-symbol { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--unit-color); font-size: 11px; font-weight: 800; }
.tree-label { flex: 1; font-size: 13px; font-weight: 650; }
.tree-status { font-size: 10px; color: var(--muted); }
.tree-chevron { transition: transform .2s ease; }
.tree-unit.expanded .tree-chevron { transform: rotate(90deg); }
.tree-domains { display: none; }
.tree-unit.expanded .tree-domains { display: grid; gap: 3px; }
.tree-domain-button { padding: 8px 9px; border-radius: 9px; font-size: 12px; color: #44514e; }
.tree-domain-button.active, .tree-field-button.active { background: var(--active-soft); color: var(--active); font-weight: 700; }
.tree-field-list { display: grid; }
.tree-field-button { padding: 7px 9px; border-radius: 8px; color: #68736f; font-size: 11px; }
.tree-count { font-size: 10px; color: #8a9491; }
.sidebar-note { margin: 22px 7px 0; padding: 14px; border-top: 1px solid var(--line); display: flex; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.sidebar-note p { margin: 0; }
.status-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #43a67d; box-shadow: 0 0 0 4px #e5f5ee; flex: none; }

.main-content { padding: 20px clamp(24px, 3.2vw, 48px) 60px; min-width: 0; }
.current-map-scope-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 11px 13px 11px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(27,51,46,.06); }
.current-map-scope-action > div { min-width: 0; display: grid; gap: 2px; }
.current-map-scope-action small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.current-map-scope-action strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.current-map-scope-action .field-agent-launch { flex: none; border: 0; cursor: pointer; }
.current-map-scope-action .field-agent-launch:disabled { opacity: .62; cursor: wait; transform: none; }
.modal-scope-action-slot { flex: 1 1 100%; }
.modal-scope-action-slot .current-map-scope-action { margin: 0; box-shadow: none; }
.agent-workbench { position: sticky; top: 72px; height: calc(100vh - 72px); min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: visible; border-left: 1px solid var(--line); background: #f4f6f4; box-shadow: -14px 0 36px rgba(24,48,41,.08); }
.workspace.workbench-focus .agent-workbench { border-left: 0; box-shadow: none; }
.workspace.workbench-collapsed .agent-workbench { visibility: hidden; opacity: 0; pointer-events: none; }
.workbench-resizer { position: absolute; z-index: 3; top: 0; bottom: 0; left: -5px; width: 10px; cursor: col-resize; touch-action: none; }
.workbench-resizer::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; transition: background .16s ease; }
.workbench-resizer:hover::after, .workbench-resizer.is-dragging::after { background: var(--active); }
.workbench-head { min-height: 92px; display: grid; grid-template-rows: auto auto; gap: 7px; padding: 8px 9px 9px 12px; overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.workbench-head-primary, .workbench-head-secondary { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mobile-workbench-return, .mobile-workbench-evidence-open { display: none; }
.workbench-identity { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; }
.workbench-mark { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #173f3a; font-size: 9px; font-weight: 850; }
.workbench-context { min-width: 0; }
.workbench-head small, .workbench-head strong { display: block; }
.workbench-head small { max-width: 210px; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.workbench-head strong { font-size: 12px; }
.workbench-window-actions { flex: none; display: flex; gap: 5px; }
.workbench-window-actions button, .workbench-head-secondary > button { min-height: 31px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; cursor: pointer; }
.workbench-window-actions button { height: 35px; padding: 0; }
.workbench-window-actions .workbench-expand-action { width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 11px; border-color: #b8d2cc; color: #155f57; background: #e7f3ef; font-size: 12px; font-weight: 800; white-space: nowrap; }
.workbench-expand-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.workbench-icon-collapse { display: none; }
.workbench-expand-action.is-focus .workbench-icon-expand { display: none; }
.workbench-expand-action.is-focus .workbench-icon-collapse { display: inline; }
.workbench-window-actions .workbench-close-action { width: 35px; color: #73817d; background: transparent; font-size: 17px; font-weight: 500; }
.workbench-scope-action { min-width: 0; flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 0 8px; color: var(--ink); text-align: left; }
.workbench-scope-action span { color: var(--muted); font-size: 9px; font-weight: 750; white-space: nowrap; }
.workbench-scope-action strong { min-width: 0; overflow: hidden; color: var(--active); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workbench-scope-action em { color: var(--active); font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.workbench-head-secondary .workbench-text-action { flex: none; padding: 0 9px; color: var(--active); font-size: 10px; font-weight: 750; white-space: nowrap; }
.workbench-window-actions button:disabled, .workbench-head-secondary > button:disabled { opacity: .45; cursor: default; }
.workbench-window-actions button:hover, .workbench-window-actions button:focus-visible,
.workbench-head-secondary > button:hover, .workbench-head-secondary > button:focus-visible { color: var(--active); border-color: var(--active); outline: 2px solid rgba(36,109,102,.14); outline-offset: 1px; }
.workbench-body { position: relative; min-height: 0; }
.workbench-chat-column { height: 100%; min-width: 0; overflow: hidden; background: var(--paper); }
.agent-workbench iframe { width: 100%; height: 100%; display: block; border: 0; background: var(--paper); }
.workbench-evidence { display: none; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 14px 34px rgba(24,48,41,.08); }
.workspace.workbench-focus .workbench-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 29vw, 420px); gap: 18px; padding: 18px clamp(18px, 3vw, 42px); }
.workspace.workbench-focus.workbench-evidence-collapsed .workbench-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
.workspace.workbench-focus .workbench-chat-column { border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 34px rgba(24,48,41,.06); }
.workspace.workbench-focus .workbench-evidence { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.workbench-evidence-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.workbench-evidence-head small,
.workbench-evidence-head strong { display: block; }
.workbench-evidence-head small { margin-bottom: 3px; color: var(--active); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.workbench-evidence-head strong { font-size: 17px; }
.workbench-evidence-head button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--active); background: #fff; font-size: 12px; font-weight: 750; cursor: pointer; }
.workbench-evidence-body { min-height: 0; overflow-y: auto; padding: 14px; }
.workspace.workbench-focus .workbench-evidence.is-collapsed { position: absolute; z-index: 6; top: 12px; right: clamp(18px, 3vw, 42px); width: auto; height: auto; border-radius: 999px; }
.workbench-evidence.is-collapsed .workbench-evidence-head { min-height: 0; padding: 5px; border-bottom: 0; }
.workbench-evidence.is-collapsed .workbench-evidence-head > div { display: none; }
.workbench-evidence.is-collapsed .workbench-evidence-head button { min-height: 32px; border: 0; border-radius: 999px; }
.workbench-evidence.is-collapsed .workbench-evidence-body { display: none; }
.context-card { margin-bottom: 12px; padding: 14px; border: 1px solid #e1e8e5; border-radius: 14px; background: #fafcfb; }
.context-card:last-child { margin-bottom: 0; }
.context-card > small { display: block; margin-bottom: 5px; color: var(--active); font-size: 12px; font-weight: 820; letter-spacing: .08em; }
.context-card h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.45; }
.context-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.context-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.context-metrics span { padding: 5px 7px; border-radius: 8px; color: #36524d; background: var(--active-soft); font-size: 12px; font-weight: 760; }
.context-sublevels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.context-sublevels button,
.context-citation { width: 100%; display: grid; gap: 4px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.context-sublevels button { width: auto; display: inline-flex; color: var(--active); font-size: 12px; font-weight: 750; }
.context-citation + .context-citation { margin-top: 8px; }
.context-citation:hover,
.context-citation:focus-visible,
.context-sublevels button:hover,
.context-sublevels button:focus-visible { border-color: var(--active); outline: none; }
.context-citation small { color: var(--active); font-size: 12px; font-weight: 800; }
.context-citation strong { font-size: 14px; line-height: 1.45; }
.context-citation span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.reference-scope-path p span { color: var(--active); font-weight: 800; }
.reference-group { margin-bottom: 12px; padding: 10px; border: 1px solid #dce7e3; border-radius: 14px; background: #f8fbfa; }
.reference-group:last-child { margin-bottom: 0; }
.reference-group.reference-other { border-style: dashed; }
.reference-group.reference-other > header { margin-bottom: 8px; }
.reference-group.reference-other > header small { color: var(--active); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.reference-group.reference-other > header h3 { margin: 3px 0 0; font-size: 16px; }
.reference-related { display: grid; gap: 7px; margin-top: 8px; padding-left: 10px; border-left: 2px solid #c9ddd8; }
.reference-entity { min-width: 0; padding: 9px; border: 1px solid #e0e8e5; border-radius: 11px; background: #fff; }
.reference-entity.reference-main { border-color: #b9d2cc; box-shadow: 0 5px 15px rgba(31,71,62,.05); }
.reference-badges { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.reference-badges span { padding: 2px 6px; border-radius: 999px; color: #326c61; background: #e7f3ef; font-size: 12px; font-weight: 850; }
.reference-direct .reference-badges span { color: #795518; background: #f8ead0; }
.reference-supplemental .reference-badges span { color: #5f5a78; background: #eceaf5; }
.reference-badges small { color: var(--muted); font-size: 12px; }
.reference-entity-open { width: 100%; min-width: 0; margin-top: 6px; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.reference-entity-open strong { display: block; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.reference-entity-open:hover strong, .reference-entity-open:focus-visible strong { color: var(--active); text-decoration: underline; }
.reference-entity-open:focus-visible { outline: 2px solid rgba(37,109,104,.16); outline-offset: 3px; }
.reference-entity-open:disabled { cursor: default; }
.reference-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; color: #60736d; font-size: 12px; line-height: 1.45; }
.reference-path span { padding: 2px 5px; border-radius: 6px; background: #f0f5f3; }
.reference-path b { color: #9aacA6; font-weight: 500; }
.reference-entity > p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.reference-scope-action { margin-top: 7px; padding: 6px 8px; border: 1px solid #b9d2cc; border-radius: 8px; color: var(--active); background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.reference-scope-action:hover, .reference-scope-action:focus-visible { border-color: var(--active); background: var(--active-soft); outline: 0; }
.context-empty { color: var(--muted); font-size: 14px; line-height: 1.7; }
.workbench-toggle { position: fixed; z-index: 44; right: 18px; bottom: 82px; display: none; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; color: #fff; background: #173f3a; box-shadow: 0 14px 36px rgba(20,55,49,.28); cursor: pointer; }
.workbench-toggle span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #2c8177; font-size: 10px; font-weight: 850; }
.workbench-toggle strong { font-size: 12px; }
.workbench-toggle.is-visible { display: flex; }
.mobile-mode-nav, .mobile-search-toggle { display: none; }
.mobile-related-mentors > summary { display: none; }
.mobile-related-mentors > .related-mentors-content { display: block; }
.mobile-map-scope-bar,
.mobile-scope-sheet-kicker,
.mobile-scope-sheet-close { display: none; }
.desktop-scope-heading { font-style: normal; }
.mobile-map-intro { display: block; margin: 0; }
.mobile-map-intro > summary { display: none; }
.mobile-map-intro > p { display: block !important; }

.scope-browser-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 32px; background: rgba(18,31,28,.42); backdrop-filter: blur(5px); }
.scope-browser-backdrop[hidden] { display: none; }
.scope-browser { width: min(1280px, calc(100vw - 64px)); height: min(790px, calc(100vh - 64px)); display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: 26px; background: #f8faf8; box-shadow: 0 35px 100px rgba(13,35,29,.28); }
.scope-browser-head { display: flex; justify-content: space-between; gap: 20px; padding: 22px 26px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.scope-browser-head h2 { margin: 4px 0 4px; font-family: "Songti SC", "STSong", serif; font-size: 28px; }
.scope-browser-head p { margin: 0; color: var(--muted); font-size: 12px; }
.scope-browser-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #fff; cursor: pointer; }
.scope-browser-search { position: relative; height: 58px; display: flex; align-items: center; gap: 10px; margin: 14px 22px; padding: 0 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.scope-browser-search:focus-within { border-color: var(--active); box-shadow: 0 0 0 4px var(--active-soft); }
.scope-browser-search input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.scope-browser-search > button { border: 0; color: var(--active); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.scope-browser-search-results { position: absolute; z-index: 5; top: calc(100% + 7px); left: 0; right: 0; max-height: 350px; overflow-y: auto; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 22px 65px rgba(17,45,37,.2); }
.scope-browser-search-results button { width: 100%; display: grid; grid-template-columns: 58px 220px minmax(0,1fr); gap: 12px; align-items: center; padding: 11px 14px; border: 0; border-bottom: 1px solid #edf1ef; background: #fff; text-align: left; cursor: pointer; }
.scope-browser-search-results button:hover { background: var(--active-soft); }
.scope-browser-search-results small { color: var(--active); font-weight: 800; }
.scope-browser-search-results strong { font-size: 13px; }
.scope-browser-search-results span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.scope-browser-columns { min-height: 0; display: grid; grid-template-columns: 1.15fr .95fr .9fr; gap: 12px; padding: 0 22px 16px; }
.scope-tree-panel, .scope-related-panel { min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.86); }
.scope-tree-panel > header, .scope-related-panel > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.scope-tree-panel header small, .scope-tree-panel header strong, .scope-related-panel header small, .scope-related-panel header strong { display: block; }
.scope-tree-panel header small, .scope-related-panel header small { margin-bottom: 3px; color: var(--muted); font-size: 9px; letter-spacing: .07em; }
.scope-tree-panel header strong, .scope-related-panel header strong { font-size: 14px; }
.scope-tree-panel header > span, .scope-related-panel header > span { color: var(--muted); font-size: 10px; }
.scope-tree, .scope-related-list { min-height: 0; overflow-y: auto; padding: 10px; }
.scope-related-list { overflow-x: hidden; }
.scope-tree-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 4px; min-height: 39px; padding-left: calc(var(--depth, 0) * 18px); }
.scope-tree-expander { width: 27px; height: 27px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.scope-tree-expander:hover { background: var(--active-soft); }
.scope-tree-expander.empty { pointer-events: none; opacity: .25; }
.scope-tree-node { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.scope-tree-node:hover, .scope-tree-node.focused { border-color: var(--line); background: var(--active-soft); }
.scope-tree-node.candidate { color: var(--active); font-weight: 800; }
.scope-tree-node span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-tree-node small { flex: none; color: var(--muted); font-size: 9px; }
.scope-tree-current { padding: 4px 7px; border-radius: 999px; color: var(--active); background: var(--active-soft); font-size: 8px; font-weight: 800; }
.scope-related-item { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-bottom: 7px; padding: 11px 12px; overflow: hidden; border: 1px solid transparent; border-radius: 12px; color: var(--ink); background: #f6f8f6; text-align: left; cursor: pointer; }
.scope-related-item:hover, .scope-related-item.focused { border-color: var(--active); background: var(--active-soft); }
.scope-related-item.candidate { border-color: var(--active); box-shadow: inset 3px 0 0 var(--active); }
.scope-related-item strong, .scope-related-item small { display: block; }
.scope-related-item strong { margin-bottom: 4px; font-size: 12px; }
.scope-related-item small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.scope-related-item > span:first-child { min-width: 0; overflow: hidden; }
.scope-related-item strong, .scope-related-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-related-item > span { align-self: center; color: var(--muted); font-size: 9px; white-space: nowrap; }
.scope-related-empty { display: grid; min-height: 180px; place-items: center; padding: 24px; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; }
.scope-browser-footer { min-height: 74px; display: flex; align-items: center; gap: 9px; padding: 12px 22px; border-top: 1px solid var(--line); background: rgba(255,255,255,.92); }
.scope-candidate-copy { min-width: 0; flex: 1; }
.scope-candidate-copy small, .scope-candidate-copy strong { display: block; }
.scope-candidate-copy small { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.scope-candidate-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.scope-secondary-button, .scope-apply-button { height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 11px; font-weight: 750; cursor: pointer; }
.scope-secondary-button { color: var(--ink); background: #fff; }
.scope-apply-button { color: #fff; border-color: var(--ink); background: var(--ink); }
body.modal-open > .zwxd-feedback-button { visibility: hidden; pointer-events: none; }
.breadcrumb { min-height: 26px; display: flex; align-items: center; gap: 7px; margin-bottom: 20px; font-size: 12px; color: var(--muted); }
.breadcrumb button { border: 0; background: none; color: inherit; padding: 0; cursor: pointer; }
.breadcrumb button:hover { color: var(--active); }

.eyebrow { color: var(--active); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero { max-width: 1220px; margin: 0 auto; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1fr) 205px; align-items: end; gap: 26px; padding: 14px 0 26px; }
.hero h1, .page-title { max-width: 800px; margin: 9px 0 12px; font-family: "Songti SC", "STSong", serif; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
.hero-copy, .page-intro { max-width: 840px; margin: 0; color: #53615d; font-size: 15px; line-height: 1.75; }
.release-card { min-width: 215px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.82); }
.release-card strong, .release-card span { display: block; }
.release-card strong { font-size: 24px; }
.release-card span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.home-agent-launch { margin-top: 14px; justify-content: space-between; }

.unit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.unit-card { position: relative; min-height: 238px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 12px 32px rgba(37,60,54,.06); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.unit-card.available { cursor: pointer; }
.unit-card.available:hover { transform: translateY(-4px); border-color: var(--unit-color); box-shadow: var(--shadow); }
.unit-card::after { content: ""; position: absolute; width: 180px; height: 180px; border: 42px solid color-mix(in srgb, var(--unit-color) 12%, transparent); border-radius: 50%; right: -72px; bottom: -82px; }
.unit-card-top { display: flex; justify-content: space-between; align-items: center; }
.unit-index { color: var(--unit-color); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.unit-state { border-radius: 999px; padding: 5px 9px; font-size: 11px; background: color-mix(in srgb, var(--unit-color) 10%, white); color: var(--unit-color); }
.unit-card h2 { margin: 20px 0 8px; font-size: 24px; }
.unit-card p { max-width: 600px; margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
.unit-meta { position: relative; z-index: 1; display: flex; gap: 17px; margin-top: auto; }
.unit-meta span { display: grid; color: var(--muted); font-size: 10px; }
.unit-meta strong { color: var(--ink); font-size: 18px; }
.unit-card.disabled { background: repeating-linear-gradient(135deg, #f8f9f8, #f8f9f8 12px, #f3f5f4 12px, #f3f5f4 24px); }
.unit-card.disabled::after { opacity: .35; }
.unit-wait { display: inline-flex; align-items: center; gap: 7px; color: #7b8582; font-weight: 700; }

.unit-hero, .field-page, .topic-page { max-width: 1320px; margin: 0 auto; }
.unit-hero-head, .section-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; padding: 16px 0 28px; }
.section-header h1, .unit-hero h1 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.15; }
.section-count { color: var(--muted); font-size: 13px; }
.field-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.field-agent-launch { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 11px; color: #fff; background: var(--active); text-decoration: none; font-size: 12px; font-weight: 750; box-shadow: 0 7px 16px color-mix(in srgb, var(--active) 22%, transparent); }
.field-agent-launch:hover { transform: translateY(-1px); }
.unit-description { max-width: 980px; font-size: 18px; line-height: 1.8; color: #4e5d59; }
.principles { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 32px; }
.principles span { padding: 8px 12px; border: 1px solid var(--line); background: #fff; border-radius: 999px; color: #55625f; font-size: 12px; }
.domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.domain-card, .direction-card, .topic-card { border: 1px solid var(--line); border-radius: 19px; background: #fff; padding: 22px; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.domain-card:hover, .direction-card:hover, .topic-card:hover { border-color: var(--active); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(36,70,62,.08); }
.domain-card h2, .direction-card h3, .topic-card h3 { margin: 10px 0; }
.domain-card p, .direction-card p, .topic-card p { color: var(--muted); line-height: 1.65; font-size: 13px; }
.card-meta { display: flex; gap: 14px; margin-top: 17px; color: var(--muted); font-size: 11px; }
.card-meta strong { color: var(--ink); }

.direction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 22px; }
.field-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr); gap: 25px; align-items: start; }
.topic-list, .mentor-list, .line-list { display: grid; gap: 12px; }
.column-head { display: flex; justify-content: space-between; align-items: end; margin: 16px 0; }
.column-head h2 { margin: 5px 0 0; }
.topic-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; }
.topic-order { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--active-soft); color: var(--active); font-size: 12px; font-weight: 800; }
.topic-card h3 { margin-top: 0; font-size: 17px; }
.topic-card p { margin-bottom: 0; }
.mentor-column { position: sticky; top: 102px; max-height: calc(100vh - 130px); overflow-y: auto; padding: 0 4px 20px 0; }
.mentor-card { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; }
.mentor-card:hover { border-color: var(--active); background: var(--active-soft); }
.mentor-card strong { display: block; font-size: 15px; }
.mentor-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.topic-intro { margin: 0 0 24px; max-width: 950px; color: #4c5b57; font-size: 16px; line-height: 1.8; }
.topic-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, .8fr); gap: 26px; }
.line-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; cursor: pointer; }
.line-card:hover { border-color: var(--active); box-shadow: 0 10px 24px rgba(32,64,57,.08); }
.line-card h3 { margin: 0 0 8px; font-size: 17px; }
.line-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; }
.line-mentor { display: inline-block; margin-top: 12px; color: var(--active); font-size: 11px; font-weight: 700; }

.search-panel { position: fixed; z-index: 60; top: 70px; left: 50%; transform: translateX(-50%); width: min(740px, calc(100vw - 30px)); max-height: 75vh; overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(19,42,36,.24); }
.search-panel header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.icon-button { border: 0; background: none; cursor: pointer; font-size: 24px; }
.search-result { width: 100%; display: grid; gap: 4px; padding: 14px 20px; border: 0; border-bottom: 1px solid #edf1ef; background: #fff; text-align: left; cursor: pointer; }
.search-result:hover { background: var(--active-soft); }
.search-result small { color: var(--active); font-weight: 700; }
.search-result span { color: var(--muted); font-size: 12px; }
.empty-state { padding: 45px; color: var(--muted); text-align: center; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(16,29,26,.48); backdrop-filter: blur(8px); }
.detail-modal { width: min(880px, 100%); max-height: 88vh; overflow: auto; border-radius: 24px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 20px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.modal-head h2 { margin: 5px 0 0; font-size: 26px; }
.modal-body { padding: 24px 28px 32px; }
.modal-summary { color: #4c5a57; font-size: 15px; line-height: 1.8; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.detail-block { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; }
.detail-block h3 { margin: 0 0 8px; font-size: 12px; color: var(--active); }
.detail-block p, .detail-block ul { margin: 0; color: #586662; font-size: 13px; line-height: 1.7; }
.detail-block ul { padding-left: 18px; }
.evidence-heading { margin-top: 26px; }
.paper-evidence-list { display: grid; gap: 10px; }
.paper-evidence-item { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; }
.paper-evidence-item a, .paper-evidence-item strong { display: block; color: var(--ink); font-size: 13px; font-weight: 760; line-height: 1.6; text-decoration: none; }
.paper-evidence-item a:hover, .paper-evidence-item a:focus-visible { color: var(--active); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.paper-evidence-item small { display: block; margin-top: 5px; color: #77827f; font-size: 10px; line-height: 1.6; }
.paper-evidence-item p { margin: 7px 0 0; color: #67736f; font-size: 10px; line-height: 1.65; }
.evidence-badge { align-self: start; justify-self: start; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.evidence-direct { color: #176458; background: #dff1ec; }
.evidence-supporting { color: #806127; background: #f5edd8; }
.evidence-context { color: #66706e; background: #e9edeb; }
.evidence-more { margin: 9px 0 0; color: #77827f; font-size: 10px; }
.mentor-evidence-groups { display: grid; gap: 10px; }
.mentor-evidence-group { padding: 0 14px 14px; border: 1px solid var(--line); border-radius: 15px; background: #fafcfb; }
.mentor-evidence-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 -14px; padding: 14px; font-size: 13px; font-weight: 760; cursor: pointer; }
.mentor-evidence-group > summary small { color: #77827f; font-size: 10px; }
.mentor-evidence-group[open] > summary { margin-bottom: 1px; border-bottom: 1px solid var(--line); }
.evidence-line-jump { margin: 11px 0; padding: 0; border: 0; color: var(--active); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.evidence-line-jump:hover, .evidence-line-jump:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1px solid #cfe0db; border-radius: 999px; background: var(--active-soft); padding: 6px 9px; color: var(--active); font-size: 11px; }
.source-link { display: inline-flex; margin-top: 16px; color: var(--active); text-decoration: none; font-weight: 700; }
.modal-primary-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.modal-primary-actions .source-link { margin-top: 0; }
.mentor-correction-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border: 1px solid var(--active); border-radius: 10px; color: var(--active); font-size: 11px; font-weight: 750; background: var(--active-soft); }
.mentor-correction-note { margin: -5px 0 14px; color: #77827f; font-size: 10px; line-height: 1.55; }

.loading-screen { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; gap: 18px; background: #f8faf8; text-align: center; transition: opacity .35s, visibility .35s; }
.loading-screen.done { opacity: 0; visibility: hidden; }
.loading-orbit { width: 92px; height: 92px; display: grid; place-items: center; position: relative; margin: auto; border: 1px solid #c8d8d3; border-radius: 50%; }
.loading-orbit::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--active); animation: orbit 1s linear infinite; }
.loading-orbit span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; font-weight: 800; background: linear-gradient(145deg, #153e39, #2c7e75); }
.loading-screen p { color: var(--muted); }
@keyframes orbit { to { transform: rotate(360deg); } }

body.feature-guide-active { overflow: hidden; }
body.feature-guide-active > .zwxd-feedback-button { visibility: hidden; pointer-events: none; }
body.feature-guide-active .modal-backdrop { z-index: 1249; background: transparent; backdrop-filter: none; pointer-events: none; }
body.feature-guide-active .detail-modal { pointer-events: none; }
.feature-guide-welcome { position: fixed; z-index: 1300; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(12, 29, 25, .62); backdrop-filter: blur(8px); }
.feature-guide-welcome-card { width: min(530px, 100%); padding: 30px; border: 1px solid rgba(255,255,255,.78); border-radius: 26px; outline: 0; background: radial-gradient(circle at 94% 4%, rgba(36,109,102,.14), transparent 34%), #fffdf8; box-shadow: 0 28px 90px rgba(11,31,26,.34); }
.feature-guide-brand { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #143c38, #2d8178); box-shadow: 0 10px 24px rgba(36,109,102,.25); font-weight: 850; }
.feature-guide-welcome-card h2 { margin: 5px 0 14px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(28px, 3vw, 30px); line-height: 1.32; }
.feature-guide-welcome-card > p:not(.eyebrow) { margin: 0; color: #53615d; font-size: 16px; line-height: 1.75; }
.feature-guide-welcome-card .feature-guide-meta { margin-top: 16px; color: var(--active); font-size: 14px; font-weight: 760; }
.feature-guide-welcome-card .feature-guide-availability { margin-top: 12px; padding: 10px 12px; border-radius: 11px; color: #7b5a11; background: #fff5d8; font-size: 11px; line-height: 1.6; }
.feature-guide-welcome-actions { display: flex; gap: 10px; margin-top: 28px; }
.feature-guide-primary,
.feature-guide-secondary,
.feature-guide-skip { min-height: 46px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 780; cursor: pointer; }
.feature-guide-primary { border: 1px solid var(--active); color: #fff; background: var(--active); box-shadow: 0 8px 20px rgba(36,109,102,.18); }
.feature-guide-secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.feature-guide-skip { margin-left: auto; border: 0; color: var(--muted); background: transparent; }
.feature-guide-primary:focus-visible,
.feature-guide-secondary:focus-visible,
.feature-guide-skip:focus-visible { outline: 3px solid rgba(49,135,125,.28); outline-offset: 2px; }

.feature-guide-tour { position: fixed; z-index: 1250; inset: 0; pointer-events: none; }
.feature-guide-shade { position: fixed; z-index: 1250; background: rgba(10, 28, 23, .66); backdrop-filter: blur(1px); pointer-events: auto; }
.feature-guide-target-blocker { position: fixed; z-index: 1251; pointer-events: auto; }
.feature-guide-outline { position: fixed; z-index: 1252; border: 4px solid #087b70; border-radius: 15px; box-shadow: 0 0 0 2px rgba(255,255,255,.96), 0 0 0 6px rgba(162,228,216,.52), 0 14px 38px rgba(3,54,47,.34); pointer-events: none; transition: top .16s ease, left .16s ease, width .16s ease, height .16s ease; }
.feature-guide-labels { position: fixed; z-index: 1253; inset: 0; pointer-events: none; }
.feature-guide-label { position: fixed; isolation: isolate; max-width: 248px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 11px; color: #fff; background: #075e56; box-shadow: 0 0 0 2px rgba(255,255,255,.88), 0 9px 22px rgba(2,45,40,.35); font-size: 16px; font-weight: 850; line-height: 1.35; letter-spacing: .01em; }
.feature-guide-label::after { content: ""; position: absolute; z-index: 1; left: 19px; width: 2px; height: 14px; background: #075e56; box-shadow: -2px 0 0 rgba(255,255,255,.78), 2px 0 0 rgba(255,255,255,.78); }
.feature-guide-label::before { content: ""; position: absolute; z-index: 2; left: 14px; width: 0; height: 0; border-right: 6px solid transparent; border-left: 6px solid transparent; }
.feature-guide-label[data-guide-arrow="down"]::after { top: calc(100% - 2px); }
.feature-guide-label[data-guide-arrow="down"]::before { top: calc(100% + 10px); border-top: 8px solid #075e56; filter: drop-shadow(-1px 1px 0 rgba(255,255,255,.92)) drop-shadow(1px 1px 0 rgba(255,255,255,.92)); }
.feature-guide-label[data-guide-arrow="up"]::after { bottom: calc(100% - 2px); }
.feature-guide-label[data-guide-arrow="up"]::before { bottom: calc(100% + 10px); border-bottom: 8px solid #075e56; filter: drop-shadow(-1px -1px 0 rgba(255,255,255,.92)) drop-shadow(1px -1px 0 rgba(255,255,255,.92)); }
.feature-guide-label[data-guide-tone="gold"] { border-color: rgba(255,247,223,.65); color: #fff; background: #86601f; }
.feature-guide-label[data-guide-tone="gold"]::after { background: #86601f; }
.feature-guide-label[data-guide-tone="gold"][data-guide-arrow="down"]::before { border-top-color: #86601f; }
.feature-guide-label[data-guide-tone="gold"][data-guide-arrow="up"]::before { border-bottom-color: #86601f; }
.feature-guide-card { position: fixed; z-index: 1254; width: min(530px, calc(100vw - 32px)); padding: 28px; border: 1px solid rgba(255,255,255,.84); border-radius: 22px; outline: 0; background: #fffdf8; box-shadow: 0 24px 76px rgba(7,28,23,.40); pointer-events: auto; }
.feature-guide-progress { display: flex; justify-content: space-between; gap: 12px; color: var(--active); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.feature-guide-card h2 { margin: 10px 0 12px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(27px, 2.15vw, 30px); line-height: 1.35; }
.feature-guide-card > p { margin: 0; color: #53615d; font-size: 16px; line-height: 1.75; }
.feature-guide-stage-action { width: 100%; min-height: 48px; margin-top: 17px; border: 1px solid #8fc8bd; border-radius: 13px; color: #155a53; background: linear-gradient(145deg, #f6fffc, #e4f5f1); font-size: 14px; font-weight: 820; cursor: pointer; }
.feature-guide-stage-action:hover { border-color: var(--active); background: #def2ed; }
.feature-guide-stage-action:focus-visible { outline: 3px solid rgba(49,135,125,.28); outline-offset: 2px; }
.feature-guide-controls { display: flex; align-items: center; gap: 9px; margin-top: 22px; }
.feature-guide-controls button { min-height: 46px; padding-inline: 16px; font-size: 14px; }
.feature-guide-controls button:disabled { opacity: .42; cursor: default; }

@media (max-width: 780px) {
  .feature-guide-welcome { padding: 14px; }
  .feature-guide-welcome-card { padding: 24px 20px; border-radius: 21px; }
  .feature-guide-welcome-card h2 { font-size: 25px; }
  .feature-guide-welcome-card > p:not(.eyebrow) { font-size: 14px; line-height: 1.72; }
  .feature-guide-welcome-actions { display: grid; }
  .feature-guide-card { right: 12px !important; bottom: 12px !important; left: 12px !important; top: auto !important; width: auto; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 18px; border-radius: 17px; }
  .feature-guide-card[data-guide-step="workspaces"] { top: 12px !important; bottom: auto !important; }
  .feature-guide-card[data-guide-step="explore"] { max-height: min(42dvh, 330px); }
  .feature-guide-card[data-guide-step="focus"] { top: 50% !important; bottom: auto !important; max-height: min(58dvh, 390px); transform: translateY(-50%) !important; }
  .feature-guide-card.is-embedded-step { top: 50% !important; bottom: auto !important; transform: translateY(-50%); }
  .feature-guide-card:not(.is-embedded-step):not([data-guide-step="focus"]) { transform: none; }
  .feature-guide-card h2 { font-size: 22px; }
  .feature-guide-card > p { font-size: 14px; line-height: 1.68; }
  .feature-guide-progress { font-size: 10px; }
  .feature-guide-controls { gap: 6px; margin-top: 14px; }
  .feature-guide-controls button { min-height: 44px; padding-inline: 10px; font-size: 12px; }
  .feature-guide-label { max-width: 230px; padding: 8px 10px; font-size: 14px; }
  .feature-guide-label::after { height: 10px; }
  .feature-guide-label[data-guide-arrow="down"]::before { top: calc(100% + 6px); }
  .feature-guide-label[data-guide-arrow="up"]::before { bottom: calc(100% + 6px); }
  .feature-guide-controls { flex-wrap: wrap; }
  .feature-guide-skip { margin-left: 0; }
  .feature-guide-outline { transition: none; }
}

@media (max-width: 430px) and (max-height: 860px) {
  .feature-guide-card { padding: 15px; }
  .feature-guide-card h2 { margin: 7px 0 8px; font-size: 20px; }
  .feature-guide-card > p { line-height: 1.55; }
  .feature-guide-stage-action { min-height: 44px; margin-top: 11px; }
  .feature-guide-controls { margin-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-guide-outline { transition: none; }
  .loading-orbit::before { animation: none; }
}

@media (max-width: 1100px) {
  .top-stats { display: none; }
  .domain-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .field-layout, .topic-layout { grid-template-columns: 1fr; }
  .mentor-column { position: static; max-height: none; }
  .workspace { --workbench-width: clamp(400px, 43vw, 480px); grid-template-columns: 268px minmax(0, 1fr) var(--workbench-width); }
  .workspace.workbench-collapsed { grid-template-columns: 268px minmax(0, 1fr) 0; }
  .workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) { grid-template-columns: 54px minmax(0, 1fr) var(--workbench-width); }
  .workspace.scope-sidebar-collapsed.workbench-collapsed { grid-template-columns: 54px minmax(0, 1fr) 0; }
  .tree-children { --tree-branch-indent: 17px; margin-left: 11px; }
  .workbench-head-secondary .workbench-text-action { padding-inline: 7px; font-size: 9px; }
}
@media (max-width: 1100px) and (min-width: 781px) {
  .workspace.workbench-focus .workbench-body { display: block; padding: 12px; }
  .workspace.workbench-focus .workbench-evidence { position: absolute; z-index: 5; top: 12px; right: 12px; bottom: 12px; width: min(390px, 44vw); }
  .workspace.workbench-focus .workbench-evidence.is-collapsed { top: 12px; right: 12px; bottom: auto; width: auto; height: auto; }
}
@media (max-width: 780px) {
  :root { --mobile-mode-nav-height: 66px; }
  body { padding-bottom: calc(var(--mobile-mode-nav-height) + env(safe-area-inset-bottom)); }
  .topbar { z-index: 50; height: auto; min-height: 74px; padding: 12px 16px; flex-wrap: wrap; }
  .preview-badge, kbd, .brand-copy small, .top-stats { display: none; }
  #agentNavLink, .workbench-toggle { display: none !important; }
  .product-nav { margin-left: auto; }
  .global-search { order: 3; width: 100%; }
  .workspace { display: block; min-height: calc(100dvh - var(--mobile-mode-nav-height) - env(safe-area-inset-bottom)); }
  .mobile-mode-nav { position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: var(--mobile-mode-nav-height); padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid rgba(204,220,215,.92); background: rgba(250,253,252,.96); box-shadow: 0 -10px 30px rgba(24,48,41,.12); backdrop-filter: blur(14px); }
  .mobile-mode-action { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px; color: var(--muted); background: transparent; font: inherit; cursor: pointer; }
  .mobile-mode-action span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #edf3f1; font-size: 15px; }
  .mobile-mode-action strong { font-size: 13px; }
  .mobile-mode-action.is-active { border-color: #b9d8d2; color: #155a53; background: #e8f5f1; }
  .mobile-mode-action.is-active span { color: #fff; background: var(--active); }
  .mobile-mode-action:focus-visible { outline: 3px solid rgba(49,135,125,.28); outline-offset: 1px; }
  .workspace.mobile-mode-map .agent-workbench { display: none !important; }
  .workspace.mobile-mode-agent > [data-mobile-workspace="map"] { display: none !important; }
  .workspace.mobile-mode-agent .agent-workbench { position: fixed; z-index: 60; inset: 0 0 calc(var(--mobile-mode-nav-height) + env(safe-area-inset-bottom)) 0; display: grid !important; height: auto; visibility: visible !important; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  body.mobile-mode-map > .zwxd-feedback-button { bottom: calc(var(--mobile-mode-nav-height) + env(safe-area-inset-bottom) + 12px) !important; }
  body.mobile-mode-agent > .zwxd-feedback-button { display: none !important; }
  body.mobile-scope-sheet-open, body.mobile-evidence-sheet-open { overflow: hidden; }
  .mobile-map-scope-bar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 14px 0; padding: 11px 11px 11px 13px; border: 1px solid #cfddd9; border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(27,51,46,.07); }
  .mobile-map-scope-copy { min-width: 0; display: grid; gap: 2px; }
  .mobile-map-scope-copy > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
  .mobile-map-scope-copy > strong { overflow: hidden; color: #2d5650; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-map-scope-copy > small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-map-scope-copy b { color: var(--active); font-weight: 800; }
  .mobile-map-scope-bar > button { flex: none; min-height: 42px; padding: 0 12px; border: 1px solid #add0c8; border-radius: 11px; color: #155f57; background: #e7f4f0; font-size: 12px; font-weight: 800; cursor: pointer; }
  .mobile-map-scope-bar > button:focus-visible { outline: 3px solid rgba(36,109,102,.22); outline-offset: 2px; }
  .sidebar { display: none; }
  body.mobile-scope-sheet-open .sidebar { position: fixed; z-index: 95; inset: 0 0 calc(var(--mobile-mode-nav-height) + env(safe-area-inset-bottom)) 0; height: auto; max-height: none; display: flex; flex-direction: column; overflow: hidden; padding: calc(15px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left)); border: 0; background: #f8fbf9; box-shadow: 0 -16px 48px rgba(18,42,36,.22); }
  body.mobile-scope-sheet-open .workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) .sidebar { height: auto; max-height: none; padding: calc(15px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left)); overflow: hidden; }
  body.mobile-scope-sheet-open .sidebar-heading { flex: none; min-height: 48px; padding: 0 2px 10px; }
  body.mobile-scope-sheet-open .sidebar-heading > span { display: block !important; }
  body.mobile-scope-sheet-open .workspace.scope-sidebar-collapsed #collapseAll { display: grid; }
  body.mobile-scope-sheet-open .workspace.scope-sidebar-collapsed .scope-state-summary { display: grid; }
  body.mobile-scope-sheet-open .workspace.scope-sidebar-collapsed .unit-tree { display: grid; }
  body.mobile-scope-sheet-open .workspace.scope-sidebar-collapsed .sidebar-note { display: flex; }
  .desktop-scope-heading,
  body.mobile-scope-sheet-open #toggleScopeSidebar { display: none !important; }
  .mobile-scope-sheet-kicker { display: inline; color: #263f3a; font-size: 16px; font-weight: 850; letter-spacing: 0; }
  .mobile-scope-sheet-close { display: grid; border-color: #cfddd9; background: #fff; font-size: 21px; line-height: 1; }
  body.mobile-scope-sheet-open .scope-state-summary { position: static; flex: none; margin-inline: 0; box-shadow: 0 7px 18px rgba(24,48,41,.06); }
  body.mobile-scope-sheet-open .unit-tree { min-height: 0; flex: 1; overflow: auto; padding: 2px 2px 16px; overscroll-behavior: contain; }
  body.mobile-scope-sheet-open .sidebar-note { flex: none; max-height: 76px; overflow: auto; margin-top: 8px; padding: 10px 7px 0; }
  .tree-children { --tree-branch-indent: 18px; margin-left: 12px; }
  .tree-scope-button { min-height: 44px; }
  .tree-expander { min-height: 38px; }
  .main-content { padding: 14px 16px 50px; }
  .mobile-map-intro { margin: 4px 0 18px; border: 1px solid #dbe5e1; border-radius: 12px; background: rgba(255,255,255,.72); }
  .mobile-map-intro > summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: var(--active); font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
  .mobile-map-intro > summary::-webkit-details-marker { display: none; }
  .mobile-map-intro > summary::after { content: "+"; font-size: 18px; font-weight: 500; }
  .mobile-map-intro[open] > summary::after { content: "−"; }
  .mobile-map-intro > p { display: none !important; margin: 0 !important; padding: 0 12px 12px; font-size: 13px; line-height: 1.7; }
  .mobile-map-intro[open] > p { display: block !important; }
  .current-map-scope-action { align-items: stretch; flex-direction: column; }
  .current-map-scope-action .field-agent-launch { width: 100%; justify-content: center; }
  .hero-head, .unit-hero-head, .section-header { display: block; }
  .release-card { margin-top: 20px; }
  .unit-grid, .domain-grid, .direction-grid, .detail-grid { grid-template-columns: 1fr; }
  .paper-evidence-item { grid-template-columns: 1fr; }
  .unit-card { min-height: 250px; }
  .hero h1, .page-title { font-size: 38px; }
  .agent-workbench { border-left: 0; }
  .workbench-resizer { display: none; }
  .workspace.workbench-collapsed .agent-workbench { transform: none; }
  .workbench-head { min-height: 76px; gap: 5px; padding: calc(6px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 7px max(8px, env(safe-area-inset-left)); overflow: visible; }
  .workbench-head-primary { min-height: 28px; }
  .workbench-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 9px; }
  .workbench-context small { display: none; }
  .workbench-context strong { font-size: 12px; }
  .workbench-window-actions .workbench-expand-action,
  .workbench-window-actions .workbench-close-action { display: none; }
  .mobile-workbench-return { min-height: 34px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #c9d9d5; border-radius: 9px; color: #315f58; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
  .workbench-head-secondary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .workbench-scope-action { min-width: 0; min-height: 38px; padding: 4px 8px; }
  .workbench-scope-action span { font-size: 8px; }
  .workbench-scope-action strong { max-width: none; font-size: 11px; }
  .workbench-scope-action em { margin-left: 5px; }
  .workbench-head-secondary #locateAgentScope { display: none; }
  .mobile-workbench-evidence-open { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #add0c8; border-radius: 10px; color: #155f57; background: #e7f4f0; font-size: 10px; font-weight: 850; white-space: nowrap; cursor: pointer; }
  .mobile-workbench-return:focus-visible, .mobile-workbench-evidence-open:focus-visible { outline: 3px solid rgba(36,109,102,.22); outline-offset: 1px; }
  .workspace.workbench-focus .workbench-body { display: block; padding: 0; }
  .workspace.workbench-focus .workbench-chat-column { border: 0; border-radius: 0; box-shadow: none; }
  body.mobile-evidence-sheet-open .workbench-evidence,
  body.mobile-evidence-sheet-open .workbench-evidence.is-collapsed { position: fixed; z-index: 105; inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) calc(var(--mobile-mode-nav-height) + env(safe-area-inset-bottom) + 8px) max(8px, env(safe-area-inset-left)); width: auto; height: auto; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border-radius: 18px; box-shadow: 0 22px 70px rgba(14,38,32,.28); }
  body.mobile-evidence-sheet-open .workbench-evidence.is-collapsed .workbench-evidence-head { min-height: 58px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  body.mobile-evidence-sheet-open .workbench-evidence.is-collapsed .workbench-evidence-head > div { display: block; }
  body.mobile-evidence-sheet-open .workbench-evidence.is-collapsed .workbench-evidence-body { display: block; }
  body.mobile-evidence-sheet-open .workbench-evidence-head button { min-height: 42px; }
  body.mobile-evidence-sheet-open .workbench-evidence-body { padding-bottom: calc(14px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .scope-browser-backdrop { padding: 10px; }
  .scope-browser { width: 100%; height: calc(100vh - 20px); border-radius: 18px; }
  .scope-browser-head { padding: 16px; }
  .scope-browser-head h2 { font-size: 23px; }
  .scope-browser-search { margin: 10px 12px; }
  .scope-browser-columns { grid-template-columns: 1fr; grid-template-rows: 1.2fr .8fr .8fr; padding: 0 12px 10px; }
  .scope-browser-footer { padding: 10px 12px; flex-wrap: wrap; }
  .scope-candidate-copy { width: 100%; flex-basis: 100%; }
  .scope-browser-search-results button { grid-template-columns: 52px minmax(0,1fr); }
  .scope-browser-search-results span { grid-column: 1 / -1; }
}

/* Mobile navigation: choose a node first, read its full introduction on demand. */
@media (max-width: 780px) {
  .topbar { min-height: 60px; gap: 6px; padding: 8px 14px; }
  .brand { min-height: 44px; min-width: 0; }
  .brand-mark, .product-nav > a, .product-nav .feature-guide-trigger > span:first-child { display: none; }
  .brand-copy strong { font-size: 16px; }
  .product-nav { padding: 0; border: 0; background: none; }
  .product-nav .feature-guide-trigger { min-height: 44px; padding: 0 8px; font-size: 14px; box-shadow: none; }
  .mobile-search-toggle { display: block; min-width: 44px; min-height: 44px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; cursor: pointer; }
  .global-search { display: none; height: 44px; margin: 4px 0 0; }
  .mobile-search-open .global-search { display: flex; }
  .global-search input { font-size: 16px; }
  .mobile-search-open ~ .workspace { scroll-margin-top: 116px; }
  .search-panel { top: 118px; }
  .mobile-map-scope-bar { margin: 4px 14px 0; padding: 0; gap: 10px; min-height: 44px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .mobile-map-scope-copy > span, .mobile-map-scope-copy > strong { display: none; }
  .mobile-map-scope-copy > small { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
  .mobile-map-scope-bar > button { min-height: 44px; padding-inline: 10px; font-size: 14px; }
  .main-content { padding: 4px 16px 28px; }
  .breadcrumb { flex-wrap: wrap; gap: 0 6px; min-height: 44px; margin-bottom: 0; font-size: 14px; }
  .breadcrumb button { min-height: 44px; text-align: left; line-height: 1.5; }
  #currentMapScopeActionHome .current-map-scope-action { flex-direction: row; justify-content: flex-end; margin: 0 0 8px; padding: 0; border: 0; background: none; box-shadow: none; }
  #currentMapScopeActionHome .current-map-scope-action > div { display: none; }
  #currentMapScopeActionHome .field-agent-launch { width: auto; min-height: 44px; padding: 8px 12px; font-size: 14px; box-shadow: none; }
  #mainView .eyebrow, #mainView .principles, #mainView .release-card, #mainView .field-header-actions { display: none; }
  #mainView .hero-head, #mainView .unit-hero-head, #mainView .section-header { padding: 4px 0 12px; }
  #mainView h1 { margin: 0; font-size: 28px; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
  #mainView .mobile-map-intro { margin: 8px 0 12px; border: 0; background: none; }
  #mainView .mobile-map-intro > summary { min-height: 44px; justify-content: flex-start; gap: 12px; padding: 0; font-size: 14px; }
  #mainView .mobile-map-intro > p { padding: 4px 0 12px; font-size: 16px; line-height: 1.8; }
  #mainView .unit-grid, #mainView .domain-grid, #mainView .direction-grid, #mainView .topic-list, #mainView .line-list { gap: 8px; margin-top: 0; }
  #mainView .unit-card, #mainView .domain-card, #mainView .direction-card, #mainView .topic-card, #mainView .line-card { position: relative; display: block; min-height: 60px; padding: 17px 42px 17px 16px; border-radius: 13px; box-shadow: none; }
  #mainView .unit-card::after, #mainView .domain-card::after, #mainView .direction-card::after, #mainView .topic-card::after, #mainView .line-card::after { content: "›"; position: absolute; top: 50%; right: 16px; bottom: auto; width: auto; height: auto; border: 0; border-radius: 0; transform: translateY(-50%); color: var(--active); font-size: 24px; }
  #mainView .unit-card.disabled::after { content: ""; }
  #mainView .unit-card h2, #mainView .domain-card h2, #mainView .direction-card h3, #mainView .topic-card h3, #mainView .line-card h3 { margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
  #mainView .unit-card-top, #mainView .unit-card > p, #mainView .unit-meta, #mainView .domain-card > p, #mainView .direction-card > p, #mainView .topic-card p, #mainView .line-card > p, #mainView .card-meta, #mainView .topic-order { display: none; }
  #mainView .line-mentor { margin-top: 6px; font-size: 14px; line-height: 1.5; }
  #mainView .column-head { margin: 4px 0 12px; }
  #mainView .column-head h2 { margin: 0; font-size: 18px; }
  #mainView .topic-navigation > .column-head > .section-count { display: none; }
  #mainView .topic-navigation.is-empty { display: none; }
  #mainView .field-layout, #mainView .topic-layout { gap: 18px; }
  #mainView .mentor-column { padding: 0; }
  .mobile-related-mentors { border-top: 1px solid var(--line); }
  .mobile-related-mentors > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; color: var(--active); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
  .mobile-related-mentors > summary::-webkit-details-marker { display: none; }
  .mobile-related-mentors > summary::after { content: "+"; }
  .mobile-related-mentors[open] > summary::after { content: "−"; }
  .mobile-related-mentors:not([open]) > .related-mentors-content { display: none; }
  .mobile-related-mentors .column-head { display: none; }
  #mainView .mentor-card { min-height: 60px; }
  #mainView .mentor-card strong { font-size: 17px; }
  #mainView .mentor-card span { font-size: 14px; }
  #mainView .mentor-card span:last-child { display: none; }
  body.mobile-mode-map > .zwxd-feedback-button { top: auto !important; bottom: calc(var(--mobile-mode-nav-height) + env(safe-area-inset-bottom) + 12px) !important; transform: none !important; }
}

/* Native disclosures share one responsive open-state policy; desktop remains readable. */
.mobile-detail-identity { display: none; }
.mobile-detail-disclosure { display: contents; }
.mobile-detail-disclosure > summary { display: none; }
.mobile-detail-disclosure > .mobile-detail-content { display: contents; }
@media (max-width: 780px) {
  .mobile-detail-disclosure { display: block; width: 100%; margin: 8px 0; border-top: 1px solid var(--line); }
  .mobile-detail-disclosure > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--active); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
  .mobile-detail-disclosure > summary::-webkit-details-marker { display: none; }
  .mobile-detail-disclosure > summary::after { content: "+"; }
  .mobile-detail-disclosure[open] > summary::after { content: "−"; }
  .mobile-detail-disclosure:not([open]) > .mobile-detail-content { display: none; }
  .mobile-detail-disclosure[open] > .mobile-detail-content { display: block; padding-bottom: 12px; }
  .mobile-detail-identity { display: block; margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
  .modal-backdrop { padding: 8px; }
  .detail-modal { width: 100%; max-height: calc(100dvh - 16px); border-radius: 18px; }
  .modal-head { position: sticky; top: 0; z-index: 2; gap: 12px; padding: 16px; background: #fff; }
  .modal-head h2 { font-size: 24px; line-height: 1.4; overflow-wrap: anywhere; }
  .modal-head .icon-button { flex: none; min-width: 44px; min-height: 44px; }
  .modal-body { padding: 16px; }
  .modal-body p, .modal-body li { font-size: 16px; line-height: 1.75; }
  .modal-body .modal-primary-actions { gap: 0; }
  .modal-scope-action-slot .current-map-scope-action { padding: 0; border: 0; background: none; }
  .modal-scope-action-slot .current-map-scope-action > div { display: none; }
  .modal-scope-action-slot .field-agent-launch { min-height: 44px; font-size: 16px; }
  .modal-body .line-card { padding: 14px 16px; }
  .modal-body .line-card h3 { margin: 0; font-size: 17px; line-height: 1.5; }
  .modal-body .line-card > p, .modal-body .column-head .eyebrow { display: none; }
  #guideMentorTopics { margin: 0; }
  #guideMentorTopics .mobile-detail-content > h3 { display: none; }
  .modal-body .chip, .modal-body .source-link, .modal-body .mentor-correction-link, .evidence-line-jump { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .mentor-evidence-group > summary { min-height: 48px; font-size: 15px; }
  .search-result { min-height: 64px; padding: 14px 16px; }
  .search-result > small { font-size: 14px; }
  .search-result > strong { font-size: 17px; line-height: 1.5; }
  .search-result > span { display: none; }
}
/* Initial mobile-entry advice; native dialog keeps keyboard focus in the small card. */
.mobile-entry-hint { box-sizing: border-box; width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 22px 18px; border: 1px solid #c8ded7; border-radius: 20px; background: #fff; color: #243f39; box-shadow: 0 14px 50px #183e3429; }
.mobile-entry-hint::backdrop { background: #173a333d; }
.mobile-entry-hint h2 { margin: 0 28px 14px 0; font-size: 21px; line-height: 1.4; }
.mobile-entry-hint p { font-size: 15px; line-height: 1.75; }
.mobile-entry-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #46655e; font-size: 25px; cursor: pointer; }
.mobile-entry-close:hover { background: #edf5f1; }
.mobile-entry-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mobile-entry-actions button { min-height: 44px; white-space: normal; }
.mobile-entry-hint .mobile-entry-status { min-height: 1.75em; margin: 10px 0 0; font-size: 12px; color: #526c65; }

/* Static research-map layout: use the former question column for the map. */
.workspace { grid-template-columns: 316px minmax(0, 1fr); }
.workspace.scope-sidebar-collapsed:not(.workbench-expanded):not(.workbench-focus) { grid-template-columns: 54px minmax(0, 1fr); }
.scope-state-row { grid-template-columns: 58px minmax(0, 1fr); }
.map-help { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 26px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); box-shadow: var(--shadow); }
.map-help::backdrop { background: rgba(16, 35, 30, .4); backdrop-filter: blur(4px); }
.map-help header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.map-help h2 { margin: 0; font-size: 23px; }
.map-help ol { display: grid; gap: 16px; padding-left: 24px; line-height: 1.8; }
.map-help li::marker { color: var(--active); font-weight: 800; }
.map-help p { margin: 4px 0; color: var(--muted); }
.map-help-note { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; line-height: 1.8; }
@media (max-width: 1360px) and (min-width: 781px) { .workspace { grid-template-columns: 268px minmax(0, 1fr); } }
@media (max-width: 780px) {
  :root { --mobile-mode-nav-height: 0px; }
  body { padding-bottom: env(safe-area-inset-bottom); }
  .workspace { display: block; min-height: calc(100dvh - 74px); }
  .mobile-map-scope-copy > strong { display: block; font-size: 13px; white-space: normal; }
  body.mobile-scope-sheet-open .sidebar { bottom: 0; }
  .map-help { padding: 20px; }
}
