/* Shared research surfaces, intentionally isolated from the legacy landing page. */
.op-workspace, .op-workspace * { box-sizing: border-box; letter-spacing: 0; }
.section.op-workspace { position: fixed; inset: 0; z-index: 100; display: block; overflow-y: auto; padding: 0; background: #fff; color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 1.6; }
body:has(.op-workspace) { overflow: hidden; }
.op-workspace button, .op-workspace a, .op-workspace input, .op-workspace select, .op-workspace textarea { -webkit-tap-highlight-color: transparent; }
.op-workspace button, .op-workspace summary { cursor: pointer; }
.op-workspace button:disabled { opacity: .4; cursor: default; }
.op-workspace a { text-decoration: none; }
.op-workspace a:hover { color: #0066cc; }
.op-workspace :focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }
.op-workspace h1, .op-workspace h2, .op-workspace h3, .op-workspace p { margin: 0; font-family: inherit; }
.op-workspace svg { flex-shrink: 0; }
.op-topbar { height: 60px; padding: 0 max(28px, calc((100% - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fafafc; border-bottom: 1px solid #e9e9ed; }
.op-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; white-space: nowrap; }
.op-brand img { width: 25px; height: 25px; object-fit: contain; }
.op-home { display: flex; align-items: center; gap: 5px; color: #6e6e73; font-size: 12px; white-space: nowrap; }
.op-subnav { position: sticky; top: 0; z-index: 12; min-height: 58px; padding: 0 max(28px, calc((100% - 1240px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #ffffffed; backdrop-filter: blur(20px); border-bottom: 1px solid #dcdce1; }
.op-subnav > span { font-size: 18px; font-weight: 600; }
.op-subnav nav { display: flex; align-items: stretch; gap: 30px; }
.op-subnav a { display: flex; align-items: center; gap: 7px; height: 58px; color: #6e6e73; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.op-subnav a[aria-current] { color: #1d1d1f; border-color: #1d1d1f; }
.op-content { max-width: 1296px; margin: 0 auto; padding: 48px 28px 64px; min-height: calc(100dvh - 186px); }
.op-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.op-eyebrow { color: #77777d; font-size: 11px; font-weight: 600; margin-bottom: 8px !important; }
.op-heading h1 { font-size: 36px; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
.op-heading-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: #6e6e73; }
.op-live { color: #287a58; display: flex; align-items: center; gap: 7px; }
.op-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #30936b; }
.op-footer { padding: 22px max(28px, calc((100% - 1240px) / 2)); border-top: 1px solid #e8e8ed; background: #fafafc; display: flex; justify-content: space-between; gap: 20px; color: #86868b; font-size: 11px; }
/* 备案号悬挂：独占一行，不挤压页脚原有内容；颜色继承页脚，深浅两套页脚都适配 */
.site-footer, .op-footer { flex-wrap: wrap; }
.op-compliance { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; line-height: 1.5; }
.op-compliance .op-icp { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; opacity: 1; }
.op-compliance .op-icp img { display: block; }
.op-compliance .op-icp:hover, .op-compliance .op-icp:focus-visible { opacity: 1; text-decoration: underline; }
.op-research-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 48px; align-items: start; }
.op-filters { position: sticky; top: 82px; padding-right: 24px; border-right: 1px solid #e8e8ed; }
.op-side-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.op-side-title h2 { font-size: 16px; font-weight: 650; }
.op-side-title > span { font-size: 12px; color: #86868b; font-variant-numeric: tabular-nums; }
.op-filters h3 { margin: 26px 0 10px; color: #86868b; font-size: 11px; font-weight: 500; }
.op-library-tabs, .op-topic-list { display: grid; gap: 4px; }
.op-library-tabs button, .op-topic-list button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; text-align: left; border-radius: 6px; color: #626267; background: transparent; font-size: 12px; min-height: 38px; }
.op-topic-list button { justify-content: space-between; }
.op-topic-list button span:last-child { color: #86868b; font-size: 11px; font-variant-numeric: tabular-nums; }
.op-library-tabs button.selected, .op-topic-list button.selected { background: #edf4fc; color: #0066cc; font-weight: 600; }
.op-library-tabs button:hover, .op-topic-list button:hover { background: #f5f5f7; }
.op-field { display: flex; flex-direction: column; gap: 7px; color: #6e6e73; font-size: 11px; min-width: 0; }
.op-filters .op-field { margin-top: 22px; }
.op-field select, .op-field input { width: 100%; height: 36px; padding: 0 9px; background: #fff; border: 1px solid #d2d2d7; border-radius: 6px; font-size: 12px; color: #1d1d1f; min-width: 0; }
.op-field select { text-overflow: ellipsis; padding-right: 20px; }
.op-field input[type=number] { width: 86px; }
.op-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #0066cc; background: transparent; min-height: 34px; padding: 3px 0; }
.op-filters > .op-text-button { margin-top: 16px; }
.op-source { border-top: 1px solid #e8e8ed; margin-top: 24px; padding-top: 18px; font-size: 11px; line-height: 1.8; color: #77777d; }
.op-source summary { color: #55555c; }
.op-source p { margin-top: 10px; }
.op-search { min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid #d2d2d7; border-radius: 8px; background: #fafafc; color: #86868b; }
.op-search:focus-within { border-color: #0071e3; box-shadow: 0 0 0 3px #0071e314; }
.op-search input { border: none; background: none; font-size: 14px; color: #1d1d1f; outline: none !important; width: 100%; min-width: 0; height: 48px; }
.op-search input::placeholder { color: #86868b; }
.op-search input::-webkit-search-cancel-button { display: none; }
.op-results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 74px; color: #6e6e73; font-size: 12px; }
.op-results-toolbar strong { color: #1d1d1f; font-weight: 650; }
.op-results-toolbar .op-field { flex-direction: row; align-items: center; }
.op-results-toolbar .op-field select { border-color: transparent; width: 155px; }
.op-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.op-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; color: #6e6e73; background: transparent; border-radius: 6px; }
.op-icon-button:hover { color: #0066cc; background: #edf4fc; }
.op-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 11px; border: 1px solid #d2d2d7; border-radius: 6px; background: #fff; font-size: 12px; white-space: nowrap; }
.op-button:hover { background: #f5f5f7; }
.op-paper-list { border-top: 1px solid #e8e8ed; }
.op-paper { display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px; gap: 18px; padding: 26px 0; border-bottom: 1px solid #e8e8ed; background: #fff; }
.op-paper-date { display: flex; flex-direction: column; color: #a0a0a6; text-align: center; padding-top: 3px; }
.op-paper-date strong { font-size: 23px; line-height: 1.3; font-weight: 500; color: #929298; font-variant-numeric: tabular-nums; }
.op-paper-date span { font-size: 10px; }
.op-paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; color: #77777d; margin-bottom: 9px; }
.op-mobile-month { display: none; }
.op-mobile-filter-toggle { display: none; }
.op-journal { color: #0066cc; font-weight: 550; }
.op-quartile { color: #287a58; background: #eef7f1; border-radius: 4px; padding: 1px 5px; font-size: 10px; white-space: nowrap; }
.op-paper h2 { font-size: 17px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.op-paper h2 svg { display: inline-block; margin-left: 5px; vertical-align: -2px; color: #929298; }
.op-paper h2 .op-title-zh { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; line-height: 1.5; color: #515154; }
.op-paper h2 .op-title-zh:hover { color: #0066cc; }
.op-authors { margin-top: 9px !important; color: #6e6e73; font-size: 12px; overflow-wrap: anywhere; }
.op-paper-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; font-size: 10px; color: #929298; }
.op-topic-tag { color: #77777d; }
.op-save { align-self: start; }
.op-save.is-saved { color: #0071e3; }
.op-save.is-saved svg { fill: #e0edff; }
.op-pager { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 11px; color: #86868b; gap: 12px; font-variant-numeric: tabular-nums; }
.op-pager .op-row { gap: 10px; }
.op-empty { min-height: 340px; padding: 50px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; color: #929298; }
.op-empty h3 { font-size: 18px; color: #6e6e73; font-weight: 500; }
.op-empty p { font-size: 12px; max-width: 350px; }
.op-notice, .op-error { font-size: 12px; padding: 12px 14px; margin-bottom: 14px !important; border-radius: 6px; }
.op-notice { background: #fff7e6; color: #8b5e12; }
.op-error { background: #fff1f0; color: #b43c31; }
.op-tool-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.op-input-panel { padding-right: 28px; border-right: 1px solid #e8e8ed; }
.op-input-panel textarea { display: block; width: 100%; min-height: 110px; max-height: 420px; padding: 12px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.8; resize: vertical; border: 1px solid #d2d2d7; border-radius: 6px; background: #fafafc; }
.op-input-panel textarea::placeholder { color: #b0b0b5; }
.op-input-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #86868b; margin: 4px 0 20px; }
.op-parameter-grid { display: flex; flex-wrap: wrap; gap: 16px 12px; margin: 20px 0; }
.op-parameter-grid .op-field { flex: 1 1 85px; }
.op-parameter-grid .op-field input { width: 100%; }
.op-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; border-radius: 7px; background: #0071e3; color: #fff; gap: 9px; font-size: 13px; margin-top: 16px; }
.op-primary:hover { background: #0077ed; }
.op-output-panel { min-width: 0; }
.op-output-panel > .op-empty { background: #fafafc; border: 1px dashed #dcdce1; border-radius: 8px; min-height: 440px; }
.op-stats { display: flex; gap: 42px; border-bottom: 1px solid #e8e8ed; padding-bottom: 24px; margin-bottom: 22px; }
.op-stats > div { display: flex; flex-direction: column; gap: 5px; }
.op-stats strong { font-size: 30px; line-height: 1.2; font-weight: 550; font-variant-numeric: tabular-nums; }
.op-stats span { font-size: 11px; color: #86868b; }
.op-chart-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin: 22px 0; }
.op-chart-settings { color: #77777d; font-size: 11px; margin-bottom: 12px; }
.op-chart-settings input[type=color] { width: 36px; height: 34px; padding: 3px; cursor: pointer; }
.op-segment { display: inline-flex; align-items: center; gap: 3px; border-radius: 7px; padding: 3px; background: #f0f0f3; }
.op-segment button { min-height: 32px; min-width: 34px; display: flex; align-items: center; justify-content: center; padding: 5px 10px; background: transparent; border: none; border-radius: 5px; color: #77777d; font-size: 12px; }
.op-segment button.selected { background: #fff; color: #1d1d1f; box-shadow: 0 1px 4px #00000012; }
.op-export { display: flex; flex-wrap: wrap; gap: 7px; }
.op-chart { background: #fff; padding: 14px 0; margin-bottom: 24px; overflow-x: auto; }
.op-chart > svg { display: block; width: 100%; min-width: 580px; height: auto; }
.op-venn-chart > svg { min-width: 0; max-width: 590px; max-height: 540px; margin: 0 auto; }
.op-unmatched { font-size: 12px; color: #77777d; margin-bottom: 18px; }
.op-unmatched p, .op-term p { overflow-wrap: anywhere; margin-top: 8px; }
.op-table-scroll { overflow-x: auto; margin-top: 16px; }
.op-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.op-table th { background: #f5f5f7; color: #77777d; font-size: 11px; font-weight: 500; padding: 11px 12px; white-space: nowrap; }
.op-table td { border-bottom: 1px solid #eeeef1; padding: 14px 12px; vertical-align: top; }
.op-table tbody tr:hover { background: #fafafc; }
.op-table td:not(.op-term) { font-variant-numeric: tabular-nums; }
.op-term { min-width: 240px; overflow-wrap: anywhere; }
.op-term details p { font-size: 11px; color: #77777d; }
.op-category { font-size: 10px; color: #0071e3; }
.op-category.MF { color: #9a6a19; }.op-category.CC { color: #248477; }.op-category.KEGG { color: #bc5374; }
.op-set-input { margin-top: 22px; }
.op-set-input .op-row { margin-bottom: 8px; }
.op-set-input input:not([type=color]) { min-width: 0; width: 100%; height: 34px; padding: 5px 8px; border: 1px solid #d2d2d7; border-radius: 5px; font-size: 12px; }
.op-set-input input[type=color] { flex: 0 0 30px; width: 30px; height: 30px; padding: 2px; border: 1px solid #d2d2d7; border-radius: 5px; cursor: pointer; }
.op-muted { font-size: 11px; color: #86868b; }
.op-checkbox { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; }
.op-checkbox input { accent-color: #0071e3; width: 15px; height: 15px; }
.op-journal-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; padding: 24px 0 0; }
.op-journal-filters .op-field:first-child { flex: 1; max-width: 470px; min-width: 200px; }
.op-journal-filters .op-field { min-width: 130px; }
.op-journal-filters select { height: 38px; }
.op-journal-table { min-width: 780px; }
.op-journal-table td:first-child { width: 44%; }
.op-journal-table td:not(:first-child) { white-space: nowrap; }
.op-journal-name { display: inline-flex; align-items: center; gap: 8px; text-align: left; color: #1d1d1f; font-size: 13px; font-weight: 550; }
.op-journal-name:hover { color: #0066cc; }
.op-journal-name svg { color: #929298; }
.op-journal-table small { display: block; color: #929298; font-size: 10px; margin-top: 6px; }
.op-journal-detail { background: #f9f9fb; padding: 20px; border-left: 3px solid #0071e3; margin-bottom: 20px; }
.op-journal-detail h2 { font-size: 18px; overflow-wrap: anywhere; }
/* 考研申博 · 中国地图选校 */
.op-map-stats { margin-bottom: 22px; }
.op-map-stage { width: 100%; }
.op-map-full { width: 100%; height: auto; max-height: 82vh; display: block; margin: 0 auto; }
.op-prov-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.op-back { border: 1px solid #d2d2d7; background: #fff; color: #0066cc; font-size: 13px; padding: 7px 16px; border-radius: 980px; cursor: pointer; font-family: inherit; }
.op-back:hover { background: #f5f5f7; }
.op-map-layout { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 36px; align-items: start; }
.op-map-panel { position: sticky; top: 96px; cursor: pointer; }
.op-map { width: 100%; height: auto; display: block; }
.op-map .op-prov { fill: #5e9cf6; stroke: #1a1a1a; stroke-width: 1; cursor: pointer; transition: fill .15s ease; }
.op-map .op-prov:hover { fill: #2f7de9; }
.op-map .op-prov.active { fill: #1d4ed8; stroke: #0f0f10; stroke-width: 1.2; cursor: default; }
.op-map .op-southsea { fill: #5e9cf6; stroke: #1a1a1a; stroke-width: 1; }
.op-map-hint { margin-top: 10px; font-size: 12px; color: #929298; }
.op-school-list { display: flex; flex-direction: column; gap: 12px; }
.op-school { border: 1px solid #e8e8ed; border-radius: 12px; padding: 15px 17px; background: #fff; }
.op-school-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.op-school-name { font-size: 15px; font-weight: 600; }
.op-school-city { font-size: 12px; color: #929298; }
.op-school-tag { font-size: 10px; color: #0066cc; background: #eef4fc; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.op-school-note { margin-top: 8px; font-size: 12.5px; color: #6e6e73; line-height: 1.65; }
@media (max-width: 1050px) {
  .op-research-layout { gap: 28px; grid-template-columns: 195px minmax(0, 1fr); }
  .op-tool-layout { gap: 28px; grid-template-columns: 260px minmax(0, 1fr); }
  .op-input-panel { padding-right: 22px; }
  .op-subnav nav { gap: 20px; }
}
@media (max-width: 760px) {
  .op-topbar { padding: 0 20px; height: 56px; }.op-brand { font-size: 15px; }
  .op-subnav { padding: 0 20px; gap: 0; }.op-subnav > span { display: none; }
  .op-subnav nav { width: 100%; justify-content: space-between; gap: 8px; }.op-subnav a { font-size: 12px; height: 52px; gap: 5px; }
  .op-content { padding: 30px 20px 40px; }.op-heading { margin-bottom: 28px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .op-heading h1 { font-size: 28px; }.op-heading-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 14px; font-size: 11px; }
  .op-research-layout, .op-tool-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .op-filters { position: static; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid #e8e8ed; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .op-filters .op-side-title, .op-filters h3 { display: none; }
  .op-filters .op-source { grid-column: 1/-1; margin-top: 0; padding-top: 8px; border: 0; }
  .op-mobile-filter-toggle { grid-column: 1/-1; display: flex; align-items: center; gap: 8px; color: #0066cc; font-size: 12px; min-height: 32px; }
  .op-filters:not(.is-open) .op-topic-list, .op-filters:not(.is-open) .op-field, .op-filters:not(.is-open) > .op-text-button, .op-filters:not(.is-open) .op-source { display: none; }
  .op-mobile-month { display: inline; }
  .op-library-tabs { grid-column: 1/-1; grid-template-columns: 1fr 1fr; }.op-library-tabs button { justify-content: center; }
  .op-topic-list { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 4px; }.op-topic-list button { width: auto; gap: 8px; padding: 6px 8px; min-height: 32px; }.op-topic-list button span:last-child { display: none; }
  .op-filters .op-field { margin: 0; }.op-filters > .op-text-button { margin: 0; justify-self: start; }
  .op-paper { grid-template-columns: minmax(0, 1fr) 30px; gap: 10px; padding: 23px 0; }.op-paper-date { display: none; }.op-paper h2 { font-size: 16px; }
  .op-paper-meta { gap: 8px; }.op-paper-bottom { font-size: 10px; }
  .op-results-toolbar { gap: 8px; }.op-results-toolbar .op-field > span { display: none; }.op-results-toolbar .op-field select { width: 143px; padding-left: 0; font-size: 11px; }
  .op-results-toolbar .op-row { gap: 0; }.op-results-toolbar p { white-space: nowrap; }.op-results-toolbar p > span { display: none; }
  .op-search input { font-size: 13px; }.op-search { gap: 9px; padding: 0 11px; }
  .op-input-panel { padding: 0 0 26px; border-right: 0; border-bottom: 1px solid #e8e8ed; }
  .op-input-panel textarea { min-height: 100px; }.op-input-panel .op-source { margin-top: 20px; }
  .op-stats { gap: 28px; }.op-stats strong { font-size: 28px; }.op-chart-toolbar { gap: 12px; }
  .op-tool-layout .op-source p { font-size: 11px; }.op-empty { min-height: 280px; }.op-output-panel > .op-empty { min-height: 280px; }
  .op-footer { padding: 20px; }.op-journal-filters { gap: 14px; }.op-journal-filters .op-field:first-child { flex-basis: 100%; max-width: none; }
  .op-journal-detail { padding: 14px; }.op-journal-detail h2 { font-size: 16px; }
  .op-map-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .op-map-panel { position: static; max-width: 420px; margin: 0 auto; }
  .op-map-full { max-height: 60vh; }
}
@media (max-width: 370px) { .op-subnav a svg { display: none; }.op-content { padding-inline: 16px; }.op-topbar { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .op-workspace * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* ============================================================
   账号系统 · CloudBase 身份认证（src/auth-client.js）
   toast / 验证码弹窗 / 已登录面板，全部挂在 body 上，不受 React 重渲染影响
   ============================================================ */
.op-toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
.op-toast { max-width: 100%; font-size: 13.5px; line-height: 1.5; padding: 11px 16px; border-radius: 12px; background: #0a1128; color: #fff; box-shadow: 0 10px 28px #0a112826; animation: op-toast-in .22s ease-out; word-break: break-word; }
.op-toast--ok { background: #0b6b74; }
.op-toast--error { background: #b3261e; }
.op-toast.is-out { opacity: 0; transform: translateY(-6px); transition: opacity .26s, transform .26s; }
@keyframes op-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.op-modal[hidden] { display: none; }
.op-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.op-modal__mask { position: absolute; inset: 0; background: #0a11285c; backdrop-filter: blur(2px); }
.op-modal__panel { position: relative; width: min(100%, 400px); background: #fff; border-radius: 20px; padding: 30px 28px 26px; box-shadow: 0 24px 64px #0a11283d; animation: op-modal-in .24s cubic-bezier(.22,.9,.3,1); }
@keyframes op-modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.op-modal__title { margin: 0 0 8px; font-size: 19px; font-weight: 650; color: #1d1d1f; letter-spacing: -.01em; }
.op-modal__desc { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: #6e6e73; }
.op-modal__email { color: #1d1d1f; font-weight: 600; word-break: break-all; }
.op-modal__code { width: 100%; box-sizing: border-box; font-size: 22px; letter-spacing: .38em; text-align: center; color: #1d1d1f; background: #fafafa; border: 1px solid #e3e3e8; border-radius: 12px; padding: 14px 10px 14px 18px; outline: none; transition: border-color .2s, background .2s; }
.op-modal__code:focus { border-color: #0b6b74; background: #fff; }
.op-modal__msg { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; border-radius: 9px; padding: 8px 11px; }
.op-modal__msg.is-error { color: #8c1d18; background: #fdeceb; }
.op-modal__msg.is-ok { color: #0b6b74; background: #e4f5f4; }
.op-modal__actions { display: flex; gap: 10px; margin-top: 18px; }
.op-modal__actions .op-btn { flex: 1; }
.op-modal__close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #9a9aa0; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.op-modal__close:hover { background: #f2f2f5; color: #1d1d1f; }
html.op-modal-open { overflow: hidden; }

.op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; font-family: inherit; line-height: 1.2; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.op-btn--primary { background: #0a1128; color: #fff; }
.op-btn--primary:hover { background: #050d1a; transform: translateY(-1px); }
.op-btn--ghost { background: #fff; color: #1d1d1f; border-color: #dcdce2; }
.op-btn--ghost:hover { background: #f6f6f8; }
.op-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.op-account[hidden] { display: none; }
.op-account { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 90px 5vw 60px; background: #fff; overflow-y: auto; }
.op-account__card { width: min(100%, 440px); background: #fff; border: 1px solid #e8e8ed; border-radius: 20px; padding: 34px 32px; box-shadow: 0 12px 32px #0000000f; text-align: left; }
.op-account__eyebrow { margin: 0 0 10px; font-size: 11px; letter-spacing: .16em; color: #0b6b74; font-weight: 700; }
.op-account__title { margin: 0 0 16px; font-size: 26px; font-weight: 650; color: #1d1d1f; letter-spacing: -.02em; }
.op-account__hello { margin: 0 0 4px; font-size: 15px; color: #1d1d1f; }
.op-account__email { margin: 0 0 18px; font-size: 13px; color: #6e6e73; word-break: break-all; }
.op-account__note { margin: 0 0 22px; font-size: 12.5px; line-height: 1.65; color: #86868b; }
.op-account__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.op-account__actions .op-btn { flex: 1 1 auto; }

@media (max-width: 520px) {
  .op-modal__panel { padding: 26px 20px 22px; border-radius: 18px; }
  .op-account { padding: 76px 16px 40px; align-items: flex-start; }
  .op-account__card { padding: 26px 20px; }
  .op-account__title { font-size: 22px; }
  .op-toast { font-size: 13px; }
}
.op-auth-hint { margin: 2px 0 -2px; font-size: 12.5px; line-height: 1.6; color: #86868b; }

/* ---- 导航栏已登录态：头像 + 昵称 ---- */
.nav a.op-nav-account { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 14px 11px 9px; text-align: left; }
.nav a.op-nav-account .op-nav-user { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.op-nav-avatar { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #5dcaa5; color: #04342c; font-size: 11px; font-weight: 600; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.op-nav-name { max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.nav a.op-nav-account:hover .op-nav-avatar, .nav a.op-nav-account:focus-visible .op-nav-avatar { background: #9fe1cb; color: #04342c; }
@media (max-width: 900px) { .nav a.op-nav-account { justify-content: flex-start; } .op-nav-name { max-width: none; } }

/* ---- 账号面板：头像行 + 昵称编辑 ---- */
.op-account__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.op-account__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #e1f5ee; color: #085041; font-size: 20px; font-weight: 500; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.op-account__head .op-account__title { margin: 0 0 3px; font-size: 22px; line-height: 1.3; }
.op-account__head .op-account__email { margin: 0; }
.op-account__nick { margin: 0 0 18px; padding: 14px; background: #fafafa; border: 1px solid #eeeef2; border-radius: 14px; }
.op-account__nick-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; color: #1d1d1f; margin-bottom: 8px; }
.op-account__nick-label span { font-size: 11.5px; font-weight: 400; color: #9a9aa0; }
.op-account__nick-row { display: flex; gap: 8px; }
.op-account__nick-input { flex: 1 1 auto; min-width: 0; font-family: inherit; font-size: 14px; color: #1d1d1f; background: #fff; border: 1px solid #e3e3e8; border-radius: 10px; padding: 9px 12px; outline: none; transition: border-color .2s; }
.op-account__nick-input:focus { border-color: #0b6b74; }
.op-account__nick-row .op-btn { flex: none; padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.op-account__hint { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: #9a9aa0; }
.op-account__hint:empty { display: none; }

/* ---- 弹窗新增：昵称输入 ---- */
.op-modal__label { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 600; color: #1d1d1f; margin: 0 0 7px; }
.op-modal__label + .op-modal__code, .op-modal__nick + .op-modal__label { margin-top: 14px; }
.op-modal__opt { font-size: 11.5px; font-weight: 400; color: #9a9aa0; }
.op-modal__nick { width: 100%; box-sizing: border-box; margin: 0 0 14px; font-family: inherit; font-size: 14px; color: #1d1d1f; background: #fafafa; border: 1px solid #e3e3e8; border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .2s, background .2s; }
.op-modal__nick:focus { border-color: #0b6b74; background: #fff; }
.op-modal__desc { margin-bottom: 18px; }

@media (max-width: 520px) {
  .op-account__head { gap: 12px; margin-bottom: 18px; }
  .op-account__avatar { width: 44px; height: 44px; font-size: 17px; }
  .op-account__head .op-account__title { font-size: 19px; }
  .op-account__nick-label { display: block; }
  .op-account__nick-label span { display: block; margin-top: 2px; }
}

/* ---- 弹窗新增：身份 / 学校单位（必填） ---- */
.op-modal__panel { max-height: 86vh; overflow-y: auto; }
.op-modal__section { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 18px 0 12px; padding-top: 14px; border-top: 1px solid #eeeef2; font-size: 12.5px; font-weight: 600; color: #1d1d1f; }
.op-modal__section span { font-size: 11.5px; font-weight: 400; color: #9a9aa0; }
.op-modal__req { font-size: 11px; font-weight: 500; color: #b45309; background: #fff6e8; border-radius: 5px; padding: 1px 5px; }
.op-modal__select, .op-modal__inst { width: 100%; box-sizing: border-box; margin: 0 0 14px; font-family: inherit; font-size: 14px; color: #1d1d1f; background: #fafafa; border: 1px solid #e3e3e8; border-radius: 12px; padding: 11px 12px; outline: none; transition: border-color .2s, background .2s; }
.op-modal__select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b6b70' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.op-modal__select:focus, .op-modal__inst:focus { border-color: #0b6b74; background-color: #fff; }

/* ---- 账号面板：身份与单位 ---- */
.op-account__profile { margin: 0 0 18px; padding: 14px; background: #fafafa; border: 1px solid #eeeef2; border-radius: 14px; }
.op-account__profile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: #1d1d1f; }
.op-account__profile-head span { font-size: 11.5px; font-weight: 400; color: #9a9aa0; }
.op-account__profile-view { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.op-account__profile-view[hidden], .op-account__profile-edit[hidden] { display: none; }
.op-account__profile-val { margin: 0; font-size: 14px; line-height: 1.5; color: #1d1d1f; }
.op-account__profile-val.is-empty { font-size: 13px; color: #9a9aa0; }
.op-account__sep { margin: 0 6px; color: #c7c7cc; }
.op-account__link { flex: none; font-family: inherit; font-size: 12.5px; color: #0b6b74; background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.op-account__profile-edit { display: grid; gap: 8px; }
.op-account__select { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; color: #1d1d1f; background: #fff; border: 1px solid #e3e3e8; border-radius: 10px; padding: 9px 30px 9px 12px; outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b6b70' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.op-account__select:focus { border-color: #0b6b74; }
.op-account__profile-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.op-account__profile-actions .op-btn { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.op-account__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.op-frontier-scope { margin: 0 0 16px; color: #6e7d85; font-size: 12px; line-height: 1.8; }

/* ---- 外部预测平台页（青光眼 / AREDs） ---- */
/* Research model pages share a violet theme and a two-column editorial layout. */
:is(#glaucoma-risk, #areds-risk) {
  --model-paper: #f8f7fa;
  --model-ink: #211b2a;
  --model-muted: #574f63;
  --model-line: #dcd5e5;
  --model-panel: #eee8f5;
  --model-accent: #633b98;
  --model-on-accent: #fbf8ff;
  background: var(--model-paper);
  color: var(--model-ink);
}
:is(#glaucoma-risk, #areds-risk) :is(.op-topbar,.op-subnav,.op-footer,.op-source) {
  color: var(--model-ink);
  border-color: var(--model-line);
  background: var(--model-paper);
}
:is(#glaucoma-risk, #areds-risk) :is(.op-topbar,.op-subnav,.op-footer,.op-source) :is(a,span,summary) { color: inherit; }
:is(#glaucoma-risk, #areds-risk) .op-subnav a[aria-current="page"] {
  color: var(--model-accent);
  background: var(--model-panel);
}
:is(#glaucoma-risk, #areds-risk) .op-content { max-width: 1160px; }
:is(#glaucoma-risk, #areds-risk) .op-heading { margin-bottom: 19px; border: 0; padding-bottom: 0; }
:is(#glaucoma-risk, #areds-risk) .op-heading h1 {
  color: var(--model-ink);
  font-size: clamp(30px, 4.4vw, 62px);
  letter-spacing: -.055em;
  font-weight: 700;
  line-height: 1.14;
  text-wrap: balance;
}
:is(#glaucoma-risk, #areds-risk) .op-eyebrow { color: var(--model-accent); }
.op-model-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 7vw, 106px);
  align-items: center;
}
.op-model-lede { color: var(--model-muted); font-size: clamp(16px, 1.7vw, 20px); line-height: 1.8; }
.op-model-art { display: block; width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; border-radius: 18px; }
.op-model-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--model-accent);
  color: var(--model-on-accent);
  font-weight: 650;
  white-space: nowrap;
}
.op-model-cta:hover { color: var(--model-on-accent); text-decoration: underline; text-underline-offset: 3px; }
:is(#glaucoma-risk, #areds-risk) :is(a, summary):focus-visible { outline: 2px solid var(--model-accent); outline-offset: 4px; }
.op-model-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  margin: 39px 0 0;
  padding: 24px 0;
  border-block: 1px solid var(--model-line);
}
.op-model-stats > div { display: flex; flex-direction: column-reverse; gap: 4px; justify-content: end; }
.op-model-stats dt, .op-model-specs dt, .op-model-tags { color: var(--model-muted); }
.op-model-stats dd, .op-model-specs dd { margin: 0; overflow-wrap: anywhere; }
.op-model-stats dd { color: var(--model-accent); font-size: clamp(24px, 3.5vw, 44px); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.op-model-details {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(0,1fr);
  gap: clamp(25px, 7vw, 86px);
  align-items: start;
  margin-top: 42px;
}
.op-model-details h2 { color: var(--model-ink); font-size: 23px; margin: 0 0 12px; }
.op-model-tags { font-size: 13px; }
.op-model-specs > div { display: grid; grid-template-columns: 7em minmax(0,1fr); gap: 12px; padding-top: 12px; line-height: 1.65; font-size: 14px; }
.op-model-notes { background: var(--model-panel); padding: 23px; border-radius: 18px; }
.op-model-notes p, .op-model-points p { color: var(--model-muted); line-height: 1.7; font-size: 14px; }
.op-model-notes p + p { margin-top: 12px; }
.op-model-notes .op-model-warn { color: var(--model-ink); font-weight: 650; }
.op-model-points { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 35px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--model-line); }
.op-model-points h3 { color: var(--model-ink); margin-bottom: 6px; font-size: 16px; }
@media (prefers-color-scheme: dark) {
  :is(#glaucoma-risk, #areds-risk) {
    --model-paper: #1b1821;
    --model-ink: #f2edf7;
    --model-muted: #c7bed2;
    --model-line: #433a50;
    --model-panel: #2c2438;
    --model-accent: #c8a8f5;
    --model-on-accent: #271439;
  }
}
@media (max-width: 767px) {
  .op-model-hero, .op-model-details, .op-model-points { grid-template-columns: minmax(0,1fr); }
  .op-model-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 25px; }
  .op-model-details, .op-model-points { margin-top: 28px; }
  .op-model-specs > div { grid-template-columns: minmax(0,1fr); gap: 2px; }
  :is(#glaucoma-risk, #areds-risk) .op-subnav nav { flex-wrap: wrap; }
}

/* Postgraduate directory: stable map/list layout and restrained map colors. */
#kaoyan .op-content { padding-top: 36px; padding-bottom: 36px; }
#kaoyan .op-heading { margin-bottom: 28px; }
.pg-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) 200px 152px 36px; align-items: end; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid #e7e8eb; }
.pg-toolbar .op-search { min-height: 42px; background: #fff; }
.pg-toolbar .op-search input { height: 42px; }
.pg-toolbar .op-field { gap: 6px; }
.pg-toolbar .op-field select { height: 44px; background: #fafafb; }
.pg-toolbar > .op-icon-button { height: 44px; }
.pg-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; padding-top: 28px; align-items: start; }
.pg-geography { min-width: 0; background: #f7f8fa; border-radius: 8px; overflow: hidden; }
.pg-map-heading, .pg-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.pg-map-heading { padding: 16px 22px 10px; }
.pg-map-heading h2, .pg-result-heading h2 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.pg-map-heading p, .pg-result-heading p { margin-top: 4px; color: #777b83; font-size: 12px; }
.pg-map-heading strong { color: #505861; font-weight: 500; font-variant-numeric: tabular-nums; }
.pg-separator { margin: 0 8px; }
.pg-national { display: inline-flex; gap: 6px; align-items: center; padding: 6px 0 6px 10px; min-height: 34px; font-size: 12px; color: #0066cc; background: transparent; white-space: nowrap; }
.pg-map-canvas { height: 410px; padding: 4px 16px 0; }
.pg-map { display: block; width: 100%; height: 100%; overflow: visible; }
.pg-region { fill: #edf0f3; stroke: #fafbfd; stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 160ms ease, stroke 160ms ease; }
.pg-region.has-schools { fill: #cdd9df; }
.pg-region:hover, .pg-region:focus { fill: #a9c5d0; stroke: #547f8f; outline: none; }
.pg-region.is-selected, .pg-region.is-selected:hover { fill: #39859e; stroke: #2d697f; }
.pg-region:focus-visible { stroke: #0066cc; stroke-width: 2.5; outline: none !important; }
.pg-southsea { fill: none; stroke: #a9b5bf; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.pg-map-caption { min-height: 54px; padding: 12px 20px; border-top: 1px solid #e5e9ed; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #6a737e; }
.pg-location { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.pg-location > span { color: #858c94; font-size: 10px; }
.pg-legend, .pg-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pg-legend { gap: 12px; font-size: 10px; }
.pg-legend i { width: 8px; height: 8px; border-radius: 2px; }
.pg-key-covered { background: #cdd9df; }.pg-key-selected { background: #39859e; }
.pg-results { min-width: 0; }
.pg-result-heading { padding: 10px 0 16px; border-bottom: 1px solid #e7e8eb; }
.pg-result-scroll { height: 410px; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; overscroll-behavior: contain; padding-right: 12px; }
.pg-result-scroll:focus-visible { outline-offset: -3px; }
.pg-school { padding: 20px 0; border-bottom: 1px solid #eceef0; }
.pg-school:last-child { border-bottom: none; }
.pg-school-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; color: #868b93; font-size: 11px; margin-bottom: 7px; }
.pg-school-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-tag { color: #6b7480; background: #f1f3f5; font-size: 10px; padding: 1px 5px; border-radius: 3px; }
.pg-tag.distinction { color: #886b33; background: #f7f3e9; }
.pg-school h3 { font-size: 17px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.pg-school .pg-school-note { color: #70757d; font-size: 12px; line-height: 1.85; margin-top: 8px; overflow-wrap: anywhere; }
.pg-results .op-pager { height: 54px; padding: 10px 0; border-top: 1px solid #e7e8eb; }
.pg-result-scroll > .op-empty { min-height: 100%; padding: 24px 20px; }
.pg-result-scroll > .op-empty h3 { font-size: 16px; }
.pg-source { margin-top: 28px; padding-top: 18px; }
/* Five navigation destinations must fit without squeezing their labels. */
@media (max-width: 900px) {
  .op-subnav > span { display: none; }
  .op-subnav nav { width: 100%; justify-content: space-between; gap: 12px; }
  .pg-layout { gap: 24px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .pg-toolbar { grid-template-columns: minmax(160px, 1fr) 158px 116px 34px; gap: 12px; }
  .pg-map-heading { padding-inline: 16px; }.pg-map-caption { padding-inline: 16px; }
}
@media (max-width: 700px) {
  #kaoyan .op-content { padding-top: 26px; }
  #kaoyan .op-heading { margin-bottom: 22px; gap: 12px; }
  .pg-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) 34px; gap: 14px 10px; padding-bottom: 20px; }
  .pg-toolbar .op-search { grid-column: 1 / -1; }
  .pg-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .pg-geography { display: grid; grid-template-columns: minmax(0, 1fr) 166px; grid-template-rows: auto auto; height: 176px; }
  .pg-map-heading { flex-direction: column; align-items: flex-start; justify-content: center; padding: 14px; min-height: 120px; gap: 8px; }
  .pg-map-heading h2 { font-size: 15px; }.pg-map-heading p { font-size: 10px; }
  .pg-national { padding-left: 0; min-height: 28px; font-size: 11px; }
  .pg-map-canvas { grid-column: 2; grid-row: 1 / 3; height: 176px; padding: 8px 12px 8px 0; }
  .pg-map-caption { grid-column: 1; grid-row: 2; border: 0; padding: 0 0 14px 14px; min-height: 40px; align-items: flex-end; }
  .pg-location { font-size: 10px; gap: 4px; }.pg-location > span, .pg-legend { display: none; }
  .pg-result-heading { min-height: 64px; padding-top: 0; }
  .pg-result-scroll { height: 410px; padding-right: 6px; }
  .pg-school { padding: 18px 0; }.pg-school h3 { font-size: 16px; }
  .pg-school-meta { font-size: 10px; }.pg-school .pg-school-note { font-size: 12px; }
  .pg-source { margin-top: 22px; }
}
@media (max-width: 540px) {
  .op-subnav { padding-inline: 16px; min-height: 50px; }
  .op-subnav nav { gap: 8px; }
  .op-subnav a { font-size: 11px; height: 50px; gap: 0; }
  .op-subnav a svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pg-region { transition: none; } }

/* Larger geographic explorer and source-backed Beijing hospital directory. */
#kaoyan .op-content { max-width: 1504px; padding-inline: 40px; }
.pg-layout { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 36px; }
.pg-geography { background: #f1f6f7; border: 1px solid #e0eaed; border-radius: 20px; }
.pg-map-heading { padding: 22px 24px 0; min-height: 84px; }
.pg-map-heading h2 { font-size: 19px; font-weight: 650; }
.pg-map-canvas { position: relative; height: 660px; padding: 0 24px 8px; overflow: hidden; background: radial-gradient(ellipse at 55% 38%, #ffffffa6, transparent 66%); }
.pg-map { position: relative; overflow: hidden; width: 100%; height: 100%; touch-action: pan-y; }
.pg-map-world { transition: transform 200ms ease-out; }
.pg-map-depth { fill: #7499a4; stroke: #7499a4; stroke-width: 1; pointer-events: none; }
.pg-region, .pg-region.has-schools { fill: var(--pg-region-fill); stroke: #f8fcfd; stroke-width: 1.2; transition: fill 160ms, stroke 160ms; }
.pg-region:hover, .pg-region:focus { fill: #72a7b4; stroke: #326b7a; }
.pg-region.is-selected, .pg-region.is-selected:hover { fill: #236a80; stroke: #e0f8ff; stroke-width: 2; }
.pg-southsea { stroke: #6e919c; }
.pg-map-labels { pointer-events: none; fill: #224c5c; font-size: 20px; font-weight: 600; }
.pg-map-labels text { paint-order: stroke; stroke: #f6fbfc; stroke-width: 4px; stroke-linejoin: round; }
.pg-map-labels circle { stroke: white; stroke-width: 2px; }
.pg-map-labels .is-active { fill: #13435a; }
.pg-map-watermark { position: absolute; left: 26px; top: 28px; font-size: 12px; letter-spacing: .18em; color: #65808b; line-height: 1.9; }
.pg-map-watermark span { display: block; font-size: 10px; letter-spacing: .08em; color: #91a5ad; }
.pg-map-mode { display: flex; align-items: center; padding: 3px; background: #e3ecef; border-radius: 9px; gap: 2px; }
.pg-map-mode button { padding: 6px 11px; color: #687c86; background: transparent; font-size: 11px; border: 0; border-radius: 7px; white-space: nowrap; }
.pg-map-mode button[aria-pressed=true] { background: #fff; color: #245c6d; box-shadow: 0 1px 4px #1e4c5a15; }
.pg-map-controls { position: absolute; right: 20px; bottom: 28px; display: flex; flex-direction: column; align-items: center; padding: 5px; background: #ffffffed; border: 1px solid #dce7eb; border-radius: 12px; box-shadow: 0 6px 20px #2d5b6910; }
.pg-map-controls > button { width: 32px; height: 32px; display: grid; place-items: center; color: #315d6d; font-size: 21px; background: transparent; border: 0; border-radius: 7px; }
.pg-map-controls > button:hover { background: #edf4f6; }
.pg-map-controls > span { font-size: 9px; color: #7e929b; }
.pg-map-controls .op-icon-button svg { width: 15px; height: 15px; }
.pg-map-quick { position: absolute; left: 22px; bottom: 24px; display: flex; align-items: center; gap: 10px; }
.pg-beijing-shortcut { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #245f72; border: 1px solid #d7e5ea; border-radius: 24px; padding: 9px 13px; font-size: 12px; }
.pg-map-caption { padding: 14px 24px; border-color: #dce7eb; }
.pg-legend .pg-density-ramp { width: 48px; background: linear-gradient(90deg, #dbe8eb, #5d9cae); }
.pg-key-selected { background: #236a80; }
.pg-map-footnote { padding: 0 24px 16px; font-size: 10px; line-height: 1.7; color: #7c929c; }
.pg-result-heading { min-height: 84px; }
.pg-result-scroll { height: 660px; }
.pg-school { padding: 22px 0; }
.pg-school-detail-link { margin-top: 13px; padding: 0; border: 0; background: transparent; color: #247084; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.pg-school-detail-link:hover { color: #124b5b; text-decoration: underline; text-underline-offset: 4px; }
.pg-beijing { margin-top: 64px; padding-top: 44px; border-top: 1px solid #dce6ea; scroll-margin-top: 96px; }
.pg-beijing-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.pg-section-label { font-size: 10px; letter-spacing: .12em; color: #577b87; font-weight: 600; }
.pg-beijing h2 { font-size: 34px; line-height: 1.3; margin-top: 12px; letter-spacing: -.04em; }
.pg-beijing-heading > div > p:last-child { margin-top: 14px; font-size: 12px; color: #7a858c; }
.pg-checked { color: #6f7f86; font-size: 11px; white-space: nowrap; }
.pg-directory-note { max-width: 880px; margin-top: 22px !important; color: #72818a; font-size: 12px; line-height: 1.9; }
.pg-coverage-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin:26px 0; padding:24px 0; border-top:1px solid #dce5e8; border-bottom:1px solid #dce5e8; }
.pg-coverage-summary strong { display:block; font-size:25px; font-weight:500; color:#24596b; letter-spacing:-.04em; }
.pg-coverage-summary span { display:block; margin-top:7px; color:#72818a; font-size:12px; }
.pg-coverage-summary p { grid-column:1/-1; margin:0; font-size:11px; color:#89969e; line-height:1.7; }
.pg-school-coverage { margin:18px 0 0; color:#537581; font-size:12px; line-height:1.8; }
.pg-gap-summary { margin:0 0 24px; }
.pg-gap-summary p { font-size:12px; line-height:1.8; }
.pg-gap-links { display:flex; flex-wrap:wrap; gap:10px; padding:12px 0; }
.pg-gap-links button { border:1px solid #dce5e8; border-radius:8px; background:#f6f9fa; text-align:left; padding:10px 14px; color:#315b6a; font:inherit; font-size:12px; cursor:pointer; }
.pg-gap-links small { display:block; color:#8a969c; font-size:10px; margin-top:5px; }
@media(max-width:600px) { .pg-coverage-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px; } .pg-coverage-summary strong {font-size:23px;} }
.pg-university-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-bottom: 24px; border-bottom: 1px solid #e4eaee; }
.pg-university-tabs button { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px 18px; background: #f5f7f8; color: #53656e; border: 1px solid transparent; border-radius: 10px; font-size: 13px; }
.pg-university-tabs button span { color: #87959d; font-size: 10px; }
.pg-university-tabs button[aria-pressed=true] { color: #19596c; border-color: #bfd7df; background: #eaf3f5; }
.pg-mentor-toolbar { margin: 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: end; gap: 18px; }
.pg-mentor-toolbar input { height: 42px; }
.pg-mentor-toolbar .op-search { min-height: 42px; }
.pg-hospital-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
.pg-hospital-nav { padding: 16px 0; border-top: 2px solid #2a6577; }
.pg-nav-label { font-size: 11px; color: #84939b; padding: 0 12px 12px; }
.pg-hospital-nav > button { width: 100%; padding: 15px 32px 15px 12px; border: 0; border-bottom: 1px solid #e8edef; background: transparent; color: #5e7079; display: flex; flex-direction: column; align-items: flex-start; text-align: left; position: relative; gap: 6px; }
.pg-hospital-nav > button > span { font-size: 13px; line-height: 1.7; }
.pg-hospital-nav small { font-size: 10px; color: #8c9aa2; }
.pg-hospital-nav button > svg { position: absolute; right: 9px; top: 22px; }
.pg-hospital-nav > button[aria-pressed=true] { color: #1b5a70; background: #edf5f7; }
.pg-hospital-nav > button:hover { background: #f1f6f7; }
.pg-hospital-heading { padding-top: 14px; border-top: 2px solid #dce6ea; }
.pg-hospital-heading h3 { font-size: 25px; margin-top: 8px; }
.pg-hospital-heading > p:not(.pg-section-label) { color: #71818a; font-size: 12px; line-height: 1.9; margin-top: 12px; }
.pg-evidence-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; }
.pg-evidence-link { color: #36798c; font-size: 11px; display: inline-flex; align-items: center; gap: 3px; }
.pg-evidence-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.pg-admission-summary { padding: 18px 20px; margin-top: 25px; background: #f5f8f9; border-left: 2px solid #b6cfd7; }
.pg-beijing h4 { margin: 0; color: #405965; font-size: 13px; font-weight: 600; }
.pg-program-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding-top: 14px; align-items: start; }
.pg-year { color: #4e7c8c; font-size: 11px; font-variant-numeric: tabular-nums; }
.pg-program-row strong { font-weight: 500; font-size: 12px; color: #536a76; }
.pg-program-row p { color: #809099; font-size: 11px; line-height: 1.8; margin-top: 4px; }
.pg-mentor-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-bottom: 16px; }
.pg-mentor-heading > span { font-size: 11px; color: #8c9aa1; }
.pg-mentor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.pg-mentor { border-top: 1px solid #dfe8eb; padding: 22px 0 26px; min-width: 0; }
.pg-mentor-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-beijing h5 { font-size: 22px; line-height: 1.5; margin: 0; font-weight: 650; color: #263c49; }
.pg-mentor-position { color: #7c8b93; font-size: 12px; margin-top: 4px !important; }
.pg-qualifications { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.pg-qualifications span { font-size: 10px; color: #417b8a; background: #eef5f6; border-radius: 4px; padding: 2px 7px; }
.pg-direction-label { font-size: 10px; color: #98a3aa; }
.pg-mentor-directions { color: #5c707d; font-size: 12px; line-height: 1.95; margin-top: 5px !important; }
.pg-mentor-admissions { border-top: 1px dashed #dfe8ec; padding-top: 10px; margin-top: 16px; }
.pg-mentor-admissions p { font-size: 11px; color: #7d8d97; line-height: 1.85; margin-top: 8px; }
.pg-mentor-admissions strong { display: block; color: #687d88; font-weight: 500; }
.pg-mentor-admissions span { display: block; }
.pg-admission-pending { margin-top: 18px !important; font-size: 11px; color: #8a826b; }
.pg-mentor-note, .pg-hospital-note { margin-top: 14px !important; font-size: 10px; line-height: 1.85; color: #8a959d; }
.pg-profile-date { font-size: 9px; color: #99a4aa; margin-top: 12px !important; }
.pg-mentor-sources { font-size: 10px; color: #7b8d96; margin-top: 10px; }
.pg-mentor-sources p { margin-top: 5px; }
.pg-hospital-empty { padding: 14px; font-size: 12px; color: #8c9aa2; }
.pg-beijing-sources { margin-top: 24px; }
@media (max-width: 1100px) {
  #kaoyan .op-content { padding-inline: 28px; }
  .pg-layout { grid-template-columns: minmax(0, 1.35fr) minmax(270px, 1fr); gap: 26px; }
  .pg-map-canvas, .pg-result-scroll { height: 570px; }
  .pg-map-heading { padding: 16px 18px 0; }
  .pg-map-heading p { font-size: 10px; }
  .pg-hospital-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 760px) {
  #kaoyan .op-content { padding-inline: 20px; }
  .pg-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pg-geography { display: block; height: auto; }
  .pg-map-heading { flex-direction: row; align-items: center; justify-content: space-between; min-height: 76px; padding: 16px 18px 0; }
  .pg-map-canvas { height: 500px; padding: 0 10px; }
  .pg-map-watermark { left: 20px; top: 24px; }
  .pg-map-caption { display: flex; padding: 13px 18px; min-height: 48px; align-items: center; border-top: 1px solid #dce7eb; }
  .pg-map-footnote { padding: 0 18px 14px; }
  .pg-map-controls { right: 14px; bottom: 18px; }
  .pg-map-quick { left: 16px; bottom: 18px; }
  .pg-legend { display: flex; font-size: 9px; gap: 10px; }
  .pg-legend .pg-density-ramp { width: 30px; }
  .pg-result-heading { min-height: 65px; }
  .pg-result-scroll { height: 390px; }
  .pg-beijing { margin-top: 42px; padding-top: 30px; }
  .pg-beijing-heading { flex-direction: column; align-items: flex-start; gap: 15px; }
  .pg-beijing h2 { font-size: 27px; }
  .pg-university-tabs { gap: 7px; }
  .pg-university-tabs button { padding: 10px 12px; font-size: 12px; }
  .pg-mentor-toolbar { grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; }
  .pg-hospital-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pg-hospital-nav { display: flex; gap: 8px; overflow-x: auto; padding: 13px 0; }
  .pg-hospital-nav .pg-nav-label { display: none; }
  .pg-hospital-nav > button { min-width: 174px; width: auto; flex-shrink: 0; padding: 10px 14px; border: 1px solid #e1e9ed; border-radius: 8px; max-width: 220px; }
  .pg-hospital-nav button > svg { display: none; }
  .pg-hospital-heading h3 { font-size: 22px; }
  .pg-mentor-grid { gap: 0 22px; }
}
@media (max-width: 440px) {
  #kaoyan .op-content { padding-inline: 16px; }
  .pg-map-canvas { height: 430px; }
  .pg-map-mode button { padding: 5px 8px; font-size: 10px; }
  .pg-map-heading h2 { font-size: 16px; }
  .pg-legend > span:last-child { display: none; }
  .pg-mentor-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-mentor-toolbar { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pg-program-row { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .pg-program-row > a { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .pg-map-world, .pg-region { transition: none; } }

/* National mentor directory: verification tiers, map coverage rings, pending provinces. */
.pg-mentor-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pg-tier { font-size: 9px; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; white-space: nowrap; border: 1px solid transparent; font-weight: 500; }
.pg-tier.is-profiled { color: #1c6b5a; background: #e8f4ef; border-color: #c6e3d8; }
.pg-tier.is-listed { color: #7c6a37; background: #f8f4e7; border-color: #e9dfc5; }
.pg-map-dot { fill: none; stroke: #b4762a; stroke-width: 2.4; opacity: .85; pointer-events: none; }
.pg-key-mentors { background: transparent !important; border: 1.5px solid #b4762a; border-radius: 50% !important; }
.pg-done-list { margin-top: 32px; padding-top: 22px; border-top: 1px solid #e2eaee; }
.pg-done-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pg-done-chips button { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f5f8f9; border: 1px solid #dfe9ed; border-radius: 10px; color: #2b5f70; font-size: 13px; }
.pg-done-chips button:hover, .pg-done-chips button:focus-visible { background: #eaf3f5; border-color: #bfd7df; }
.pg-done-chips small { color: #8a99a1; font-size: 10px; font-variant-numeric: tabular-nums; }
.pg-pending-foot { margin-top: 20px; font-size: 11px; line-height: 1.9; color: #8a959d; }
@media (max-width: 760px) {
  .pg-done-chips button { width: 100%; }
  .pg-tier { font-size: 9px; }
}
.pg-mentor-meta { margin-top: 14px !important; font-size: 10px; color: #9aa5ab; letter-spacing: .01em; }
.pg-qualifications .is-pending { color: #8b7b57; background: #f7f4ec; border: 1px dashed #ddd2b6; }
.pg-directory-pending h2 { font-size: 26px; letter-spacing: -.02em; }
.pg-directory-pending .pg-directory-note { margin-top: 16px !important; }
.pg-mentor-grid + .op-pager { margin-top: 18px; border-top: 1px solid #e2eaee; }
.pg-pending-card { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding: 34px 36px 30px; background: #f6f9fa; border: 1px solid #e3ebee; border-radius: 18px; align-items: start; }
.pg-pending-main h2 { font-size: 26px; margin-top: 12px; }
.pg-pending-stat { margin-top: 14px !important; font-size: 12px; color: #6e7d85; }
.pg-pending-stat span { margin-left: 10px; color: #9aa5ab; }
.pg-pending-card .pg-directory-note { max-width: 620px; margin-top: 16px !important; }
.pg-pending-card .pg-done-list { margin: 0; padding: 0 0 0 30px; border-top: 0; border-left: 1px solid #e0e9ec; }
.pg-pending-card .pg-done-chips { flex-direction: column; }
.pg-pending-card .pg-done-chips button { justify-content: space-between; width: 100%; background: #fff; }
@media (max-width: 900px) {
  .pg-pending-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px 22px; }
  .pg-pending-card .pg-done-list { padding: 22px 0 0; border-left: 0; border-top: 1px solid #e0e9ec; }
}
.pg-pending-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pg-pending-steps span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 20px; border: 1px solid #dde6ea; background: #fff; color: #96a2a9; font-size: 11px; }
.pg-pending-steps i { width: 6px; height: 6px; border-radius: 50%; background: #d5dee2; }
.pg-pending-steps .is-done { color: #24697c; border-color: #c9dde5; background: #eef6f8; }
.pg-pending-steps .is-done i { background: #2f7f93; }
.pg-release-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 16px 20px; margin: 0 0 24px; border: 1px solid #dbe7eb; border-radius: 12px; background: #f3f8fa; color: #607782; font-size: 13px; line-height: 1.8; }
.pg-release-notice strong { color: #286579; font-weight: 600; }
.pg-coming-soon { padding: 30px; border: 1px solid #dfe9ed; border-radius: 16px; background: #f7fafb; }
.pg-coming-soon h2 { margin-top: 12px; }
.pg-coming-school { color: #286579; margin: 12px 0; }
@media (max-width: 440px) { .pg-coming-soon { padding: 24px 20px; } }

/* Open learning platform landing page; original iris artwork is retained. */
.hero-copy { width: min(49vw, 740px); }
.hero h1 { font-size: clamp(44px, 4.6vw, 78px); font-weight: 550; line-height: 1.24; letter-spacing: -.045em; gap: 0; }
.hero-copy > p { margin: 30px 0 26px; font-family: inherit; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.9; }
.hero-kicker { letter-spacing: .16em; }
/* Bilingual author signature replaces the repeated brand eyebrow.
   Native CSS, no card or extra motion; the iris remains the hero visual. */
.hero-copy .home-identity { max-width: 440px; display: grid; gap: 9px; border-left: 2px solid #286e83; padding-left: 16px; margin-bottom: 26px; font-family: var(--eyeop-font); }
.hero-copy .home-identity p { margin: 0; }
.home-identity-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 13px; line-height: 1.4; }
.home-identity-name strong { font-size: 20px; font-weight: 700; letter-spacing: .015em; color: #1d1d1f; }
.home-identity-name > span { font-size: 13px; font-weight: 500; letter-spacing: .025em; color: #46565d; }
.home-identity-affiliation { display: grid; gap: 4px; }
.home-identity-affiliation p[lang='zh-CN'] { color: #46565d; font-size: 13px; font-weight: 500; line-height: 1.6; }
.home-identity-affiliation p[lang='en'] { color: #5f6a70; font-size: 11.5px; line-height: 1.55; letter-spacing: 0; }
.home-identity-affiliation p[lang='en'] span { display: block; }
.nav a.nav-postgrad { color: #286e83; background: #edf5f7; border-color: #d2e4e9; font-weight: 650; }
.hero .cta-btn { background: #286e83; border: 1px solid #286e83; box-shadow: none; padding: 15px 25px; border-radius: 10px; }
.hero .cta-btn:hover { background: #205b6d; transform: translateY(-2px); box-shadow: 0 6px 16px #286e831c; }
.hero .cta-btn:active { transform: translateY(0); }
.hero a:focus-visible, .pg-spotlight a:focus-visible { outline: 3px solid #39859e; outline-offset: 4px; }
.pg-spotlight { max-width: 1440px; margin: auto; padding: 96px 6.5vw 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; color: #1d1d1f; }
.pg-spotlight *, .pg-spotlight { box-sizing: border-box; }
.pg-spotlight-kicker { font-size: 11px; color: #6e7e84; letter-spacing: .12em; margin: 0 0 26px; }
.pg-spotlight h2 { margin: 0; font-family: inherit; font-weight: 600; font-size: clamp(36px, 4vw, 58px); line-height: 1.2; letter-spacing: -.04em; }
.pg-spotlight-description { margin: 24px 0 32px; font-size: 15px; line-height: 1.9; color: #6e6e73; }
.pg-spotlight-link { display: inline-flex; align-items: center; gap: 34px; color: #286e83; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #a9c9d3; padding: 0 0 10px; }
.pg-spotlight-link:hover { color: #1b4b59; border-color: #286e83; }
.pg-spotlight-guide ol { list-style: none; padding: 0; margin: 0; }
.pg-spotlight-guide li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid #e5eaec; }
.pg-spotlight-guide li:first-child { padding-top: 0; }
.pg-step-number { font-size: 11px; color: #6993a0; font-variant-numeric: tabular-nums; line-height: 26px; }
.pg-spotlight-guide h3 { font-size: 17px; font-weight: 600; margin: 0 0 7px; }
.pg-spotlight-guide li p { font-size: 13px; color: #777b80; line-height: 1.8; margin: 0; }
.pg-quick-regions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; font-size: 12px; }
.pg-quick-regions > span { color: #858b8f; }
.pg-quick-regions a { display: inline-flex; align-items: center; gap: 4px; color: #286e83; text-decoration: none; padding: 6px 0; }
.pg-quick-regions a:hover { text-decoration: underline; text-underline-offset: 4px; }
#about { border-top: 1px solid #edf0f1; }
#about .section-label { color: #5f6a70; }
@media (max-width: 950px) {
  .hero-copy { width: 52vw; }
  .pg-spotlight { gap: 6vw; padding: 72px 6vw; }
}
@media (max-width: 620px) {
  .hero { min-height: 760px; }
  .hero-copy { width: 88vw; position: relative; top: auto; left: auto; transform: none; margin: 0 6vw; padding-top: 116px; }
  .hero-copy .home-identity { margin-bottom: 25px; padding-left: 12px; gap: 8px; max-width: 100%; }
  .home-identity-name strong { font-size: 18px; }
  .home-identity-name > span { font-size: 12px; }
  .home-identity-affiliation p[lang='zh-CN'] { font-size: 12px; }
  .home-identity-affiliation p[lang='en'] { font-size: 11px; }
  .hero h1 { font-size: clamp(34px, 8vw, 48px); }
  .hero-copy > p { font-size: 14px; margin-top: 22px; }
  .hero-kicker { font-size: 8px; letter-spacing: .1em; margin-bottom: 20px; }
  .iris-stage { width: 90vw; right: -24vw; top: 71%; }
  .hero .cta-btn { padding: 13px 20px; font-size: 14px; }
  .pg-spotlight { grid-template-columns: 1fr; gap: 42px; padding: 58px 6vw 64px; }
  .pg-spotlight-description { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .cta-btn { transition: none; transform: none; }
}
.eye-model-feature { max-width:1440px; margin:auto; padding:clamp(44px,7vw,104px) 6vw; display:grid; grid-template-columns:minmax(235px,0.85fr) minmax(0,1.8fr); gap:4vw; align-items:center; background:white; color:#1d292d; border-top:1px solid #dde6e7 }
.eye-model-feature h2 { margin:0; font-size:clamp(30px,3.6vw,56px); line-height:1.2; letter-spacing:-.04em }
.eye-model-feature p { margin:18px 0 24px; line-height:1.8; color:#53656a }
.eye-model-feature img { width:100%; height:auto; display:block }
.eye-model-feature .model-launch { display:inline-flex; padding:12px 20px; border-radius:9px; background:#286e83; color:white; text-decoration:none; font-weight:600 }
.eye-model-feature .model-launch:hover { background:#205768 }
@media(max-width:720px){.eye-model-feature{grid-template-columns:1fr;gap:24px}.eye-model-feature img{grid-row:1}}

/* Hong Kong admissions: the same white, editorial and blue-green Eye OP system. */
.hk-page { --hk-accent: #286e83; --hk-muted: #70777d; --hk-line: #e3e9eb; }
.hk-page .hk-topbar { background: #fff; }
.hk-content { max-width: 1296px; padding-left: 28px; padding-right: 28px; margin: 0 auto; }
.hk-schoolnav { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(28px, calc((100% - 1240px) / 2)); min-height: 58px; border-bottom: 1px solid var(--hk-line); background: #fffffff2; backdrop-filter: blur(16px); }
.hk-schoolnav > span { font-weight: 600; font-size: 16px; }
.hk-schoolnav nav { display: flex; align-items: center; gap: 30px; }
.hk-schoolnav nav > a, .hk-schoolnav nav > span { min-height: 58px; display: flex; align-items: center; gap: 7px; color: #91999e; font-size: 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
.hk-schoolnav nav > a { color: #666e73; }
.hk-schoolnav a[aria-current] { color: var(--hk-accent); border-bottom-color: var(--hk-accent); font-weight: 600; }
.hk-schoolnav small { font-size: 9px; color: #a0a5a9; }
.hk-stage-nav { max-width: 1296px; padding: 23px 28px 0; margin: auto; display: flex; align-items: center; gap: 18px; color: #abb1b5; font-size: 11px; }
.hk-stage-nav button { background: transparent; border: 0; color: #768087; font-size: inherit; padding: 6px 0; }
.hk-stage-nav button:hover { color: var(--hk-accent); }
.hk-page .hk-eyebrow { font-size: 10px; color: #72848b; font-weight: 600; letter-spacing: .13em; margin-bottom: 18px; }
.hk-university { padding-top: 35px; padding-bottom: 64px; }
.hk-university-hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: 66px; align-items: center; }
.hk-university-copy { min-width: 0; }
.hk-page .hk-university h1 { font-size: clamp(34px, 3.8vw, 56px); font-weight: 600; line-height: 1.3; letter-spacing: -.035em; margin: 0 0 14px; }
.hk-page .hk-subtitle { font-size: 18px; color: #637780; line-height: 1.7; margin-bottom: 20px; }
.hk-page .hk-prose { font-size: 14px; color: var(--hk-muted); line-height: 1.95; max-width: 570px; text-wrap: pretty; }
.hk-primary { display: inline-flex; align-items: center; justify-content: center; gap: 23px; padding: 14px 21px; background: var(--hk-accent); color: #fff !important; border: 1px solid var(--hk-accent); border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; min-height: 46px; transition: background 180ms, transform 180ms; }
.hk-primary:hover { background: #205b6d; transform: translateY(-2px); }
.hk-primary:active { transform: translateY(0); }
.hk-university-copy .hk-primary { margin-top: 26px; }
.hk-campus-image, .hk-department-image { margin: 0; min-width: 0; }
.hk-campus-image img { width: 100%; height: auto; aspect-ratio: 1.53; object-fit: cover; border-radius: 12px; display: block; }
.hk-page figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 10px; color: #93999d; padding-top: 11px; }
.hk-text-link { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: var(--hk-accent) !important; text-decoration: none; padding: 3px 0; }
.hk-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hk-page figcaption .hk-text-link { padding: 0; font-size: 10px; color: #93999d !important; }
.hk-facts { display: grid; grid-template-columns: 1.25fr 1fr 1fr; padding: 25px 0; border-top: 1px solid var(--hk-line); border-bottom: 1px solid var(--hk-line); margin: 33px 0; }
.hk-facts > * { display: flex; align-items: center; gap: 18px; color: #1d1d1f; min-width: 0; }
.hk-facts > * + * { border-left: 1px solid var(--hk-line); padding-left: 32px; }
.hk-facts strong { font-size: 40px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hk-facts strong > span { color: #96afb8; font-size: 24px; margin-right: 2px; }
.hk-facts b { font-size: 12px; font-weight: 600; }
.hk-facts small { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: #8a9297; font-size: 10px; }
.hk-facts > a:hover { color: var(--hk-accent); }
.hk-medicine { display: grid; grid-template-columns: .92fr 1.08fr; gap: 66px; align-items: start; }
.hk-page .hk-medicine .hk-eyebrow { margin-bottom: 10px; }
.hk-medicine h2 { font-size: 27px; font-weight: 500; line-height: 1.5; letter-spacing: -.02em; }
.hk-keywords { display: flex; flex-wrap: wrap; gap: 18px; font-size: 11px; color: #5b7d89; margin: 16px 0 8px; }
.hk-department { background: #f7f9fa; padding-top: 64px; scroll-margin-top: 58px; }
.hk-department-heading { margin-bottom: 34px; }
.hk-page .hk-department-heading .hk-eyebrow { margin-bottom: 12px; }
.hk-department-heading h2 { font-size: clamp(26px, 3vw, 42px); font-weight: 600; line-height: 1.4; letter-spacing: -.03em; }
.hk-page .hk-department-heading .hk-subtitle { font-size: 13px; margin: 8px 0 0; letter-spacing: .04em; }
.hk-department-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.hk-department-image { padding-top: 8px; }
.hk-department-image img { width: 100%; height: auto; border-radius: 12px; display: block; }
.hk-department-copy h3 { font-size: 31px; line-height: 1.5; font-weight: 500; letter-spacing: -.03em; margin-bottom: 17px; }
.hk-department-points { margin: 20px 0 25px; }
.hk-department-points > div { display: grid; grid-template-columns: 78px 1fr; gap: 15px; border-top: 1px solid #e2e7ea; padding: 12px 0; }
.hk-department-points span { color: #5c7b87; font-size: 11px; padding-top: 2px; }
.hk-department-points p { color: #777f85; font-size: 12px; line-height: 1.85; }
.hk-department-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; }
.hk-sources { padding-top: 44px; padding-bottom: 32px; color: #90979b; font-size: 10px; }
.hk-sources > div { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; }
.hk-sources .hk-text-link { font-size: 10px; color: #819098 !important; }
.hk-mentor-content { padding-top: 52px; padding-bottom: 64px; min-height: calc(100dvh - 186px); }
.hk-mentor-heading { margin-bottom: 36px; }
.hk-mentor-heading h1 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 550; line-height: 1.4; letter-spacing: -.03em; margin-bottom: 14px; }
.hk-mentor-heading .hk-text-link { margin-top: 13px; }
.hk-mentor-toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 22px; align-items: end; }
.hk-mentor-toolbar .op-search { min-width: 0; }
.hk-results-meta { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: 12px; color: #8a9399; }
.hk-results-meta strong { color: var(--hk-accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.hk-faculty-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.hk-person { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 23px; padding: 28px 0; border-top: 1px solid var(--hk-line); min-width: 0; }
.hk-person > img { width: 106px; height: 106px; object-fit: cover; border-radius: 8px; background: #eef2f3; }
.hk-person-copy { display: flex; flex-direction: column; align-items: start; min-width: 0; }
.hk-person h2 { font-size: 20px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.hk-page .hk-person-english { color: #777f85; font-size: 12px; margin-top: 3px; }
.hk-page .hk-person-role { color: #898e94; font-size: 11px; margin-top: 8px; line-height: 1.7; }
.hk-person-topics { display: flex; gap: 5px 12px; flex-wrap: wrap; margin-top: 14px; }
.hk-person-topics button { background: #edf4f6; border: 0; color: #557d8b; border-radius: 3px; font-size: 10px; padding: 3px 6px; transition: background 160ms; }
.hk-person-topics button:hover { background: #dcebef; }
.hk-page .hk-person-summary { margin: 12px 0 14px; font-size: 12px; color: #737b82; line-height: 1.9; }
.hk-person .hk-text-link { margin-top: auto; font-size: 11px; }
.hk-mentor-note { border-top: 1px solid var(--hk-line); margin-top: 30px; padding-top: 22px; color: #8a9298; font-size: 11px; line-height: 1.85; }
.hk-mentor-note p + p { margin-top: 8px; }
.hk-mentor-note a { color: #668590; }
.hk-gateway { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; max-width: 1440px; margin: auto; border-top: 1px solid #edf0f1; padding: 72px 6.5vw 80px; }
.hk-gateway h2 { font-size: 36px; font-family: inherit; font-weight: 600; letter-spacing: -.03em; margin: 0 0 22px; }
.hk-gateway > div > p:last-child { color: #777b80; font-size: 14px; line-height: 1.9; max-width: 420px; }
.hk-gateway-school { display: flex; align-items: center; gap: 20px; text-decoration: none; color: #286e83; padding: 19px 0; border-bottom: 1px solid #e5eaec; }
.hk-gateway-school:first-child { padding-top: 0; }
.hk-gateway-school > span:first-child { font-size: 11px; color: #7296a2; font-variant-numeric: tabular-nums; }
.hk-gateway-school > div { flex: 1; min-width: 0; }
.hk-gateway-school strong { font-size: 20px; font-weight: 600; }
.hk-gateway-school small { display: block; font-size: 12px; color: #8b9297; margin-top: 5px; }
.hk-gateway-school > svg { flex: none; }
.hk-gateway-school:hover { color: #205b6d; }
.hk-upcoming { color: #8c959b; }
.hk-gateway-school .hk-coming { color: #a1a8ac; font-size: 10px; }
.hk-gateway a:focus-visible { outline: 3px solid #39859e; outline-offset: 5px; }
.pg-hongkong-link { display: inline-flex; align-items: center; gap: 7px; color: #286e83; font-size: 12px; margin-bottom: 23px; }
@media (max-width: 1100px) {
  .hk-university-hero, .hk-medicine { gap: 36px; }
  .hk-department-grid { gap: 40px; }
  .hk-facts > * { gap: 13px; }
  .hk-facts > * + * { padding-left: 24px; }
  .hk-facts strong { font-size: 34px; }
  .hk-faculty-list { column-gap: 32px; }
  .hk-person { grid-template-columns: 85px minmax(0, 1fr); gap: 18px; }
  .hk-person > img { width: 85px; height: 85px; }
}
@media (max-width: 900px) {
  .hk-university-hero { grid-template-columns: 1fr; gap: 32px; }
  .hk-university-copy .hk-prose { max-width: 620px; }
  .hk-campus-image img { aspect-ratio: 1.9; }
  .hk-facts { grid-template-columns: 1fr 1fr 1fr; }
  .hk-facts > * { display: block; }
  .hk-facts > * > div { margin-top: 8px; }
  .hk-medicine { grid-template-columns: .8fr 1.2fr; }
  .hk-department-grid { grid-template-columns: 1fr; gap: 30px; }
  .hk-department-image { max-width: 680px; }
  .hk-department-copy .hk-prose { max-width: none; }
  .hk-department-points { max-width: 680px; }
  .hk-person { grid-template-columns: 65px minmax(0, 1fr); gap: 15px; }
  .hk-person > img { width: 65px; height: 65px; }
}
@media (max-width: 620px) {
  .hk-content { padding-left: 20px; padding-right: 20px; }
  .hk-topbar { padding: 0 20px; }
  .hk-topbar .op-brand { font-size: 14px; gap: 8px; }
  .hk-topbar .op-brand img { width: 22px; height: 22px; }
  .hk-topbar .op-home { font-size: 10px; }
  .hk-schoolnav { padding: 12px 20px 0; flex-direction: column; align-items: stretch; gap: 4px; }
  .hk-schoolnav > span { font-size: 13px; }
  .hk-schoolnav nav { gap: 23px; flex-wrap: wrap; }
  .hk-schoolnav nav > a, .hk-schoolnav nav > span { min-height: 41px; font-size: 11px; gap: 4px; }
  .hk-schoolnav small { font-size: 8px; }
  .hk-stage-nav { padding: 18px 20px 0; }
  .hk-university { padding-top: 27px; padding-bottom: 46px; }
  .hk-page .hk-eyebrow { font-size: 9px; letter-spacing: .06em; margin-bottom: 13px; }
  .hk-page .hk-subtitle { font-size: 15px; }
  .hk-page .hk-prose { font-size: 13px; }
  .hk-campus-image img { aspect-ratio: 1.5; border-radius: 9px; }
  .hk-facts { gap: 0; margin: 27px 0; padding: 21px 0; }
  .hk-facts strong { font-size: 29px; }
  .hk-facts > * + * { padding-left: 13px; }
  .hk-facts strong > span { font-size: 18px; }
  .hk-facts b { font-size: 10px; }
  .hk-facts small { font-size: 9px; flex-wrap: wrap; gap: 2px; }
  .hk-medicine { grid-template-columns: 1fr; gap: 19px; }
  .hk-medicine h2 { font-size: 24px; }
  .hk-primary { font-size: 12px; padding: 13px 16px; gap: 15px; }
  .hk-department { padding-top: 45px; scroll-margin-top: 88px; }
  .hk-department-heading { margin-bottom: 23px; }
  .hk-department-heading h2 { font-size: 25px; }
  .hk-department-copy h3 { font-size: 26px; }
  .hk-department-points > div { grid-template-columns: 65px 1fr; gap: 12px; }
  .hk-sources { padding-top: 30px; font-size: 9px; }
  .hk-mentor-content { padding-top: 35px; padding-bottom: 44px; }
  .hk-mentor-heading { margin-bottom: 25px; }
  .hk-mentor-heading h1 { font-size: 30px; }
  .hk-mentor-toolbar { grid-template-columns: 1fr; gap: 15px; }
  .hk-faculty-list { grid-template-columns: 1fr; }
  .hk-person { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 25px 0; }
  .hk-person > img { width: 76px; height: 76px; }
  .hk-person h2 { font-size: 19px; }
  .hk-person-topics { gap: 6px; }
  .hk-gateway { grid-template-columns: 1fr; gap: 36px; padding: 54px 6vw 62px; }
  .hk-gateway h2 { font-size: 30px; }
  .hk-gateway > div > p:last-child { font-size: 13px; }
  .hk-gateway-school { gap: 14px; }
  .hk-gateway-school small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hk-primary, .hk-person-topics button { transition: none; transform: none; }
}

/* Apple-inspired web UI, implemented with native CSS. Not an Apple component library.
   Radii: media 28px, grouped cards 24px, fields 14px, interactive pills 999px.
   Layers: sticky school navigation 15, existing route overlay 100. */
:root { --eyeop-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; --sans: var(--eyeop-font); --serif: var(--eyeop-font); }
/* Hide the legacy landing page before its first paint when a Hong Kong page opens. */
html[data-eyeop-view='hongkong'] main > :not(.hk-page) { display: none !important; }
html[data-eyeop-auth='login'] #login, html[data-eyeop-auth='register'] #register { display: block; }
.hero h1, .pg-spotlight h2, .hk-gateway h2, #about h2, #contact h2,
.op-workspace h1, .op-workspace h2, .op-workspace h3 { font-family: var(--eyeop-font); font-weight: 700; }
.section.op-workspace.hk-page { --hk-bg: #f5f5f7; --hk-surface: #fff; --hk-soft: #f0edf5; --hk-text: #1d1d1f; --hk-muted: #60666e; --hk-faint: #656c75; --hk-line: #e3e4e8; --hk-accent: #73518d; --hk-glass: #ffffffed; background: var(--hk-bg); color: var(--hk-text); font-family: var(--eyeop-font); }
.hk-page a:hover { color: var(--hk-accent); }
.hk-page h1, .hk-page h2, .hk-page h3 { color: var(--hk-text); font-family: var(--eyeop-font); font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.hk-page .hk-topbar { background: var(--hk-bg); border-color: var(--hk-line); }
.hk-page .hk-schoolnav { background: var(--hk-glass); border-color: var(--hk-line); box-shadow: inset 0 1px 0 #ffffff55; }
.hk-page .hk-schoolnav > span { font-size: 16px; font-weight: 700; }
.hk-page .hk-schoolnav nav > a { color: var(--hk-muted); }
.hk-page .hk-schoolnav nav > span, .hk-page .hk-schoolnav small { color: var(--hk-faint); }
.hk-page .hk-schoolnav nav > a[aria-current] { color: var(--hk-accent); border-color: var(--hk-accent); }
.hk-page .op-brand, .hk-page .op-home { color: var(--hk-text); }
.hk-page .op-home { color: var(--hk-muted); }
.hk-page .hk-stage-nav { padding-top: 18px; gap: 14px; }
.hk-page .hk-stage-nav button { color: var(--hk-muted); padding: 6px 0; }
.hk-page .hk-text-link { color: var(--hk-accent) !important; font-weight: 600; }
.hk-page .hk-prose { font-size: 15px; color: var(--hk-muted); line-height: 1.9; }
.hk-page .hk-subtitle { color: var(--hk-muted); }
.hk-page .hk-primary { background: var(--hk-accent); border-color: var(--hk-accent); border-radius: 999px; padding: 14px 22px; gap: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hk-page .hk-primary:hover { background: #614175; transform: translateY(-1px); }
.hk-page .hk-primary:active { transform: scale(.98); }
.hk-page :focus-visible { outline-color: var(--hk-accent); }
.hk-page .op-footer { background: var(--hk-bg); border-color: var(--hk-line); color: var(--hk-faint); }
.hk-page .op-footer a { color: var(--hk-accent); }
.hk-page .hk-sources { color: var(--hk-faint); }
.hk-page .hk-sources .hk-text-link { color: var(--hk-muted) !important; }
.cuhk-university { padding-top: 20px; padding-bottom: 84px; }
.cuhk-chapters { display: flex; gap: 4px; padding-bottom: 28px; flex-wrap: wrap; }
.cuhk-chapters button { border: 0; background: transparent; padding: 9px 16px; font-size: 12px; font-weight: 600; color: var(--hk-muted); border-radius: 999px; transition: background 180ms, color 180ms; }
.cuhk-chapters button:hover { background: var(--hk-surface); color: var(--hk-accent); }
.cuhk-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; padding: 12px 0; scroll-margin-top: 90px; }
.cuhk-intro-copy { min-width: 0; }
.cuhk-school-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cuhk-school-identity img { width: 66px; height: 55px; object-fit: contain; border-radius: 12px; background: #fff; padding: 5px; }
.cuhk-school-identity > span { color: var(--hk-muted); font-size: 11px; line-height: 1.7; font-weight: 600; }
.hk-page .cuhk-university h1 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.25; font-weight: 700; margin-bottom: 22px; letter-spacing: -.045em; }
.cuhk-intro .hk-prose { max-width: 490px; font-size: 14px; }
.cuhk-intro-copy > .hk-primary { margin-top: 26px; }
.cuhk-photo-gallery { margin: 0; min-width: 0; }
.cuhk-photo-gallery > img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; object-fit: contain; border-radius: 28px; }
.hk-page .cuhk-photo-gallery figcaption { align-items: center; padding-top: 16px; font-size: 10px; color: var(--hk-faint); }
.cuhk-photo-tabs { display: flex; padding: 4px; border-radius: 999px; background: var(--hk-surface); gap: 2px; }
.cuhk-photo-tabs button { border: 0; background: transparent; color: var(--hk-muted); padding: 7px 12px; font-size: 10px; font-weight: 600; border-radius: 999px; }
.cuhk-photo-tabs button[aria-pressed='true'] { background: var(--hk-soft); color: var(--hk-accent); }
.cuhk-teaching, .cuhk-rankings, .cuhk-medicine { padding-top: 80px; scroll-margin-top: 84px; }
.cuhk-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.cuhk-section-heading h2 { font-size: 36px; font-weight: 700; line-height: 1.35; }
.hk-page .cuhk-section-description { color: var(--hk-muted); font-size: 15px; line-height: 1.9; max-width: 730px; margin-bottom: 30px; }
.cuhk-teaching-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 18px; }
.cuhk-teaching-photo { grid-row: span 2; background: var(--hk-surface); margin: 0; overflow: hidden; border-radius: 24px; display: flex; flex-direction: column; }
.cuhk-teaching-photo img { width: 100%; height: 100%; flex: 1; min-height: 250px; object-fit: cover; }
.hk-page .cuhk-teaching-photo figcaption { padding: 17px 22px; color: var(--hk-muted); font-size: 11px; }
.cuhk-teaching-tile, .cuhk-teaching-culture { background: var(--hk-surface); padding: 28px 25px; border-radius: 24px; }
.cuhk-teaching-tile > svg { color: var(--hk-accent); margin-bottom: 18px; }
.cuhk-teaching-tile h3, .cuhk-teaching-culture h3 { font-size: 20px; line-height: 1.45; }
.hk-page .cuhk-teaching-tile p, .hk-page .cuhk-teaching-culture p { color: var(--hk-muted); font-size: 13px; line-height: 1.85; margin-top: 10px; }
.cuhk-teaching-culture { grid-column: 2 / 4; background: var(--hk-soft); }
.hk-facts.cuhk-ranking-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; padding: 30px 0; border: 0; background: #82754f; border-radius: 24px; }
.hk-facts.cuhk-ranking-highlights > a { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; padding: 0 24px; min-height: 230px; color: #fff; position: relative; }
.hk-facts.cuhk-ranking-highlights > a + a { border-left: 1px solid #ffffff65; }
.cuhk-rank-provider { font-size: 10px; font-weight: 600; color: #fff7e6; min-height: 34px; }
.hk-facts.cuhk-ranking-highlights strong { font-size: 76px; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; margin: 0 0 18px; }
.hk-facts.cuhk-ranking-highlights strong > span { font-size: 28px; color: #e9ddba; vertical-align: top; display: inline-block; margin: 10px 3px 0 0; }
.hk-facts.cuhk-ranking-highlights b { font-size: 13px; line-height: 1.7; color: #fff; max-width: 270px; }
.hk-facts.cuhk-ranking-highlights small { color: #fff; font-size: 11px; margin-top: 10px; }
.cuhk-ranking-highlights > a > svg { position: absolute; right: 18px; bottom: 0; color: #fff; }
.cuhk-ranking-details { display: grid; gap: 12px; }
.cuhk-ranking-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 100px; align-items: center; padding: 22px 25px; background: var(--hk-surface); border: 1px solid transparent; border-radius: 20px; }
.cuhk-ranking-row:hover { border-color: var(--hk-accent); }
.cuhk-ranking-copy h3 { font-size: 16px; line-height: 1.5; font-weight: 700; }
.cuhk-ranking-copy > span { display: block; color: var(--hk-muted); font-size: 11px; margin-top: 5px; }
.cuhk-ranking-place { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--hk-accent); font-size: 10px; }
.cuhk-ranking-number { text-align: right; color: var(--hk-accent); }
.cuhk-ranking-number strong { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cuhk-ranking-number strong > span { font-size: 17px; vertical-align: top; display: inline-block; margin-top: 8px; }
.hk-page .cuhk-rank-note { font-size: 10px; color: var(--hk-faint); margin-top: 16px; }
.cuhk-medicine-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 22px; }
.cuhk-medicine-feature { padding: 36px; border-radius: 24px; background: var(--hk-surface); }
.cuhk-medicine-feature h3 { font-size: 28px; }
.hk-page .cuhk-medicine-feature p { color: var(--hk-muted); font-size: 14px; line-height: 1.9; margin-top: 18px; max-width: 580px; }
.cuhk-medicine-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.cuhk-medical-rank { display: flex; align-items: start; flex-direction: column; gap: 5px; padding: 30px 32px; border-radius: 24px; background: var(--hk-soft); position: relative; color: var(--hk-text); }
.cuhk-medical-rank > span { color: var(--hk-muted); font-size: 14px; font-weight: 600; }
.cuhk-medical-rank > strong { font-size: 66px; color: var(--hk-accent); font-weight: 700; line-height: 1.3; margin: 10px 0; letter-spacing: -.045em; }
.cuhk-medical-rank b { font-size: 14px; }
.cuhk-medical-rank small { color: var(--hk-muted); font-size: 11px; }
.cuhk-medical-rank > svg { position: absolute; top: 30px; right: 30px; color: var(--hk-accent); }
.hk-page .hk-department { background: var(--hk-surface); padding-top: 64px; }
.hk-dovs-heading { display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.hk-dovs-heading h2 { font-size: 40px; line-height: 1.35; font-weight: 700; }
.hk-page .hk-dovs-heading .hk-subtitle { margin: 8px 0 0; font-size: 14px; }
.hk-page .hk-dovs-intro { max-width: 820px; margin: 22px 0 32px; }
.hk-team-figure { padding-top: 0; }
.hk-team-frame { aspect-ratio: 1887 / 682; border-radius: 28px; overflow: hidden; background: var(--hk-bg); }
.hk-team-frame.is-focused { aspect-ratio: 1.7; max-width: 960px; margin: 0 auto; }
.hk-page .hk-team-frame img { width: 100%; height: 100%; object-fit: cover; object-position: right; display: block; border-radius: 0; }
.hk-page .hk-team-figure figcaption { padding-top: 14px; align-items: center; color: var(--hk-faint); font-size: 11px; }
.hk-team-figure figcaption button { background: var(--hk-bg); color: var(--hk-accent); border: 0; border-radius: 999px; padding: 8px 15px; font-size: 11px; font-weight: 600; }
.hk-dovs-context { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; padding: 40px 0 0; }
.hk-dovs-context h3 { font-size: 26px; font-weight: 700; }
.hk-page .hk-dovs-context p { font-size: 14px; color: var(--hk-muted); line-height: 1.9; margin-top: 16px; }
.hk-dovs-research { padding: 20px 0; }
.hk-dovs-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.hk-dovs-topics span { background: var(--hk-bg); color: var(--hk-muted); border-radius: 999px; padding: 6px 11px; font-size: 11px; }
.hk-dovs-study { padding: 30px; border-radius: 24px; background: var(--hk-bg); }
.hk-dovs-study > strong { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.03em; color: var(--hk-accent); margin-top: 15px; }
.hk-dovs-study .hk-text-link { margin-top: 20px; }
.hk-page .hk-mentor-heading h1 { font-size: 44px; font-weight: 700; }
.hk-page .hk-mentor-heading .hk-eyebrow { font-size: 11px; color: var(--hk-muted); letter-spacing: 0; }
.hk-page .hk-faculty-list { gap: 18px; }
.hk-page .hk-person { border: 0; padding: 26px; border-radius: 24px; background: var(--hk-surface); }
.hk-page .hk-person > img { border-radius: 14px; }
.hk-page .hk-person h2 { font-weight: 700; }
.hk-page .hk-person-english, .hk-page .hk-person-role, .hk-page .hk-person-summary { color: var(--hk-muted); }
.hk-page .hk-person-role { font-size: 12px; }
.hk-page .hk-person-summary { font-size: 13px; }
.hk-page .hk-person-topics button { background: var(--hk-soft); color: var(--hk-accent); border-radius: 999px; padding: 4px 8px; }
.hk-page .hk-mentor-note { color: var(--hk-muted); border-color: var(--hk-line); }
.hk-page .hk-results-meta { color: var(--hk-muted); }
.hk-page .hk-results-meta strong { color: var(--hk-accent); }
.hk-page .op-search { background: var(--hk-surface); border-color: var(--hk-line); border-radius: 14px; }
.hk-page .op-search input, .hk-page .op-field select { color: var(--hk-text); }
.hk-page .op-search input::placeholder { color: var(--hk-muted); }
.hk-page .op-field > span { color: var(--hk-muted); }
.hk-page .op-field select { background: var(--hk-surface); border-color: var(--hk-line); border-radius: 14px; }
.hk-page .op-button, .hk-page .op-icon-button { color: var(--hk-text); background: var(--hk-surface); border-color: var(--hk-line); }
.hk-page .op-empty, .hk-page .op-empty h3 { color: var(--hk-text); }
.hk-page .op-empty p { color: var(--hk-muted); }
@media (max-width: 1100px) {
  .cuhk-intro { gap: 36px; }
  .cuhk-teaching-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .cuhk-teaching-tile, .cuhk-teaching-culture { padding: 22px; }
  .cuhk-medicine-layout { grid-template-columns: 1.6fr 1fr; }
  .hk-dovs-heading h2 { font-size: 34px; }
  .hk-dovs-context { gap: 36px; }
}
@media (max-width: 900px) {
  .cuhk-intro { grid-template-columns: 1fr; gap: 32px; }
  .cuhk-intro .hk-prose { max-width: 700px; }
  .cuhk-teaching-grid { grid-template-columns: 1fr 1fr; }
  .cuhk-teaching-photo { grid-column: 1 / 3; grid-row: auto; }
  .cuhk-teaching-photo img { max-height: 320px; aspect-ratio: 16 / 9; }
  .cuhk-teaching-culture { grid-column: 1 / 3; }
  .cuhk-medicine-layout { grid-template-columns: 1fr; }
  .cuhk-medical-rank { gap: 0; }
  .hk-dovs-heading { flex-wrap: wrap; }
  .hk-dovs-context { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .cuhk-university { padding-top: 12px; padding-bottom: 52px; }
  .cuhk-chapters { gap: 0; padding-bottom: 20px; }
  .cuhk-chapters button { padding: 8px 11px; font-size: 11px; }
  .cuhk-school-identity { margin-bottom: 18px; }
  .cuhk-school-identity img { width: 58px; height: 48px; }
  .hk-page .cuhk-university h1 { font-size: 34px; margin-bottom: 18px; }
  .hk-page .hk-prose, .hk-page .cuhk-section-description { font-size: 13px; }
  .cuhk-photo-gallery > img { border-radius: 22px; }
  .cuhk-photo-tabs button { font-size: 9px; padding: 7px 10px; }
  .hk-page .cuhk-photo-gallery figcaption { font-size: 9px; }
  .cuhk-teaching, .cuhk-rankings, .cuhk-medicine { padding-top: 50px; scroll-margin-top: 105px; }
  .cuhk-intro { scroll-margin-top: 105px; }
  .cuhk-section-heading { flex-wrap: wrap; gap: 12px; }
  .cuhk-section-heading h2 { font-size: 28px; }
  .cuhk-teaching-grid { grid-template-columns: 1fr; gap: 14px; }
  .cuhk-teaching-photo, .cuhk-teaching-culture { grid-column: auto; }
  .cuhk-teaching-photo img { min-height: 190px; }
  .cuhk-teaching-tile, .cuhk-teaching-culture { padding: 24px; }
  .cuhk-teaching-tile > svg { margin-bottom: 14px; }
  .hk-facts.cuhk-ranking-highlights { grid-template-columns: 1fr; padding: 5px 23px; }
  .hk-facts.cuhk-ranking-highlights > a { display: grid; grid-template-columns: 72px 1fr; text-align: left; min-height: 0; padding: 24px 0; column-gap: 12px; }
  .hk-facts.cuhk-ranking-highlights > a + a { padding-left: 0; border-left: 0; border-top: 1px solid #ffffff70; }
  .cuhk-rank-provider { grid-column: 2; font-size: 8px; min-height: 0; }
  .hk-facts.cuhk-ranking-highlights strong { grid-column: 1; grid-row: 1 / 4; font-size: 51px; margin: 0; }
  .hk-facts.cuhk-ranking-highlights strong > span { font-size: 18px; margin-top: 7px; }
  .hk-facts.cuhk-ranking-highlights b { grid-column: 2; font-size: 11px; margin-top: 6px; }
  .hk-facts.cuhk-ranking-highlights small { grid-column: 2; margin-top: 6px; font-size: 10px; }
  .cuhk-ranking-highlights > a > svg { display: none; }
  .cuhk-ranking-row { grid-template-columns: 1fr 64px; padding: 20px; }
  .cuhk-ranking-place { display: none; }
  .cuhk-ranking-copy h3 { font-size: 13px; }
  .cuhk-ranking-number strong { font-size: 35px; }
  .cuhk-medicine-feature { padding: 26px; }
  .cuhk-medicine-feature h3 { font-size: 24px; }
  .hk-page .cuhk-medicine-feature p { font-size: 13px; }
  .hk-page .hk-primary { font-size: 12px; padding: 13px 18px; }
  .hk-dovs-heading h2 { font-size: 28px; }
  .hk-page .hk-dovs-heading .hk-subtitle { font-size: 13px; }
  .hk-page .hk-department { padding-top: 48px; }
  .hk-team-frame { border-radius: 20px; }
  .hk-team-frame.is-focused { aspect-ratio: 1.6; }
  .hk-team-figure figcaption button { font-size: 10px; }
  .hk-dovs-context { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .hk-dovs-context h3 { font-size: 24px; }
  .hk-dovs-study { padding: 26px; }
  .hk-page .hk-mentor-heading h1 { font-size: 31px; }
  .hk-page .hk-person { padding: 22px; grid-template-columns: 66px minmax(0, 1fr); gap: 16px; }
  .hk-page .hk-person > img { width: 66px; height: 66px; }
  .hk-page .hk-person h2 { font-size: 18px; }
}
@media (prefers-color-scheme: dark) {
  .section.op-workspace.hk-page { --hk-bg: #1c1c1e; --hk-surface: #29292c; --hk-soft: #352d40; --hk-text: #f3f3f5; --hk-muted: #b5b7c0; --hk-faint: #a7aab5; --hk-line: #444449; --hk-accent: #bd99db; --hk-glass: #29292cee; }
  .hk-page .hk-primary { background: #a783c3; border-color: #a783c3; color: #17131b !important; }
  .hk-page .hk-primary:hover { background: #b793d1; }
  .cuhk-ranking-row:hover { color: var(--hk-text); }
}
@media (prefers-reduced-transparency: reduce) {
  .hk-page .hk-schoolnav { background: var(--hk-surface); backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hk-page .hk-primary, .cuhk-chapters button, .hk-page .hk-person-topics button { transition: none; transform: none; }
}

/* Public platform and author profile. Photographs retain their full aspect ratio. */
.hero .cta-btn { border-radius: 999px; }
.hero-kicker { letter-spacing: .1em; }
#about .two-col { gap: 8vw; }
#about .prose { font-family: var(--eyeop-font); }
#about h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.4; }
.author-section { background: #f5f5f7; color: #1d1d1f; padding: 88px 6.5vw 96px; font-family: var(--eyeop-font); scroll-margin-top: 30px; }
.author-section *, .author-section { box-sizing: border-box; }
.author-content { max-width: 1120px; margin: auto; }
.author-section h2, .author-section h3, .author-section h4, .author-section p { margin: 0; }
.author-section-heading, .author-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.author-section .section-label { font-size: 11px; letter-spacing: .13em; color: #656b72; margin-bottom: 22px; }
.author-section h2 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.04em; line-height: 1.2; font-weight: 700; }
.author-email, .author-expand { display: inline-flex; align-items: center; gap: 10px; color: #286e83; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.author-email { padding: 12px 20px; background: #fff; border-radius: 999px; }
.author-email:hover { background: #e8eff2; }
.author-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; margin-top: 24px; }
.author-identity { display: flex; gap: 28px; align-items: center; }
.author-avatar { flex: 0 0 144px; width: 144px; height: 144px; position: relative; border-radius: 50%; overflow: hidden; background: #e1e4e8; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.5); transform-origin: 50% 20%; display: block; }
.author-identity h3 { font-size: 32px; font-weight: 700; letter-spacing: -.035em; line-height: 1.3; }
.author-section .author-english { font-size: 16px; font-weight: 600; color: #515960; margin-top: 7px; }
.author-section .author-degree { font-size: 14px; line-height: 1.85; color: #656b72; margin-top: 15px; }
.author-section .author-label { font-size: 11px; font-weight: 600; color: #656b72; letter-spacing: .045em; margin-bottom: 16px; }
.author-research h4 { font-size: 26px; font-weight: 700; letter-spacing: -.035em; line-height: 1.4; }
.author-topics { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.author-topics span { background: #e9edf0; color: #3c606e; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.author-section .author-team { font-size: 11px; line-height: 1.8; color: #656b72; margin-top: 21px; }
.author-team span { color: #40474e; font-size: 13px; overflow-wrap: anywhere; }
.author-academic { display: grid; grid-template-columns: 1fr .85fr 1.4fr; gap: 16px; }
.author-academic article { background: #fff; padding: 30px; border-radius: 24px; min-width: 0; }
.author-academic h4 { font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; }
.author-metrics { display: flex; gap: 28px; margin: 27px 0 30px; }
.author-metrics > div { display: flex; flex-direction: column; gap: 10px; }
.author-metrics strong { font-size: 50px; line-height: 1; letter-spacing: -.055em; font-weight: 700; font-variant-numeric: tabular-nums; }
.author-metrics strong small { font-size: 11px; letter-spacing: 0; font-weight: 500; margin-left: 5px; color: #656b72; }
.author-metrics span { font-size: 12px; color: #656b72; }
.author-publications > p:not(.author-label) { font-size: 11px; color: #656b72; }
.author-section .author-journals { font-size: 14px !important; color: #3e454d !important; line-height: 1.9; margin-top: 8px; }
.author-academic ul { list-style: none; padding: 0; margin: 17px 0 0; font-size: 14px; line-height: 1.7; color: #555d65; }
.author-academic li + li { margin-top: 7px; }
.author-section .author-scholarship-school { color: #656b72; font-size: 12px; line-height: 1.7; margin-top: 8px; }
.author-section .author-award-description { color: #555d65; font-size: 14px; line-height: 1.85; margin-top: 24px; }
.author-honors ul { margin-top: 9px; }
.author-honors li + li { margin-top: 3px; }
.author-gallery { margin-top: 72px; }
.author-gallery-heading { margin-bottom: 26px; }
.author-gallery h3 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.04em; line-height: 1.4; font-weight: 700; }
.author-expand { border: 0; background: transparent; padding: 10px 0; cursor: pointer; }
.author-photo { margin: 0; }
.author-photo-frame { height: clamp(220px, 42vw, 540px); padding: 22px; background: #e9e9ec; border-radius: 28px; }
.author-photo-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.author-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 19px 0 21px; min-height: 60px; }
.author-photo figcaption strong { font-size: 14px; font-weight: 600; line-height: 1.6; }
.author-photo figcaption p { font-size: 12px; line-height: 1.8; color: #656b72; margin-top: 5px; }
.author-photo-controls { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.author-photo-controls button, .author-dialog-close { width: 40px; height: 40px; display: grid; place-items: center; background: #fff; color: #40474e; border: 0; border-radius: 50%; cursor: pointer; }
.author-photo-controls button:hover { background: #e1e8ec; }
.author-photo-count { color: #656b72; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.author-thumbnails { display: flex; overflow-x: auto; gap: 10px; padding: 5px 3px 12px; position: relative; scrollbar-width: thin; }
.author-thumbnails button { flex: 0 0 108px; border: 2px solid transparent; background: #e9e9ec; padding: 3px; border-radius: 12px; position: relative; cursor: pointer; }
.author-thumbnails button[aria-pressed='true'] { border-color: #286e83; }
.author-thumbnails button img { display: block; width: 98px; height: 70px; object-fit: contain; border-radius: 6px; }
.author-thumbnails button > span { position: absolute; right: 6px; bottom: 5px; background: #ffffffed; padding: 2px 5px; font-size: 9px; font-weight: 600; border-radius: 4px; color: #40474e; }
.author-section :focus-visible { outline: 3px solid #286e83; outline-offset: 4px; }
.author-photo-dialog { max-width: calc(100vw - 40px); width: 1200px; max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 24px; background: #f5f5f7; color: #1d1d1f; }
.author-photo-dialog::backdrop { background: #111921cc; }
.author-dialog-content { padding: 24px; position: relative; }
.author-dialog-content > img { display: block; width: 100%; height: calc(100dvh - 175px); object-fit: contain; }
.author-dialog-close { position: absolute; top: 16px; right: 16px; box-shadow: 0 2px 14px #11192122; z-index: 1; }
.author-dialog-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.author-dialog-caption p { font-size: 13px; line-height: 1.6; }
@media (max-width: 1050px) {
  .author-profile { gap: 28px; }
  .author-identity { gap: 18px; }
  .author-avatar { width: 120px; height: 120px; flex-basis: 120px; }
  .author-academic { grid-template-columns: 1fr 1fr; }
  .author-honors { grid-column: 1 / -1; }
  .author-honors ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .author-honors li + li { margin: 0; }
}
@media (max-width: 700px) {
  .author-section { padding: 60px 6vw 64px; }
  .author-profile { grid-template-columns: 1fr; padding: 32px 0; gap: 30px; }
  .author-research { border-top: 1px solid #dedfe3; padding-top: 27px; }
  .author-identity h3 { font-size: 28px; }
  .author-section-heading { align-items: end; gap: 12px; }
  .author-email { font-size: 12px; gap: 6px; padding: 10px 13px; }
  .author-academic { gap: 12px; }
  .author-academic article { padding: 23px; }
  .author-metrics { gap: 22px; }
  .author-metrics strong { font-size: 40px; }
  .author-gallery { margin-top: 48px; }
  .author-gallery-heading { align-items: end; }
  .author-gallery h3 { max-width: 220px; }
  .author-expand { font-size: 12px; gap: 6px; }
  .author-photo-frame { padding: 12px; border-radius: 20px; }
  .author-photo figcaption { flex-direction: column; align-items: start; gap: 15px; }
  .author-photo-controls { gap: 12px; }
  .author-dialog-content { padding: 14px; }
  .author-dialog-caption { flex-direction: column; align-items: start; gap: 8px; }
  .author-dialog-content > img { height: calc(100dvh - 220px); }
}
@media (max-width: 430px) {
  .author-academic { grid-template-columns: 1fr; }
  .author-honors { grid-column: auto; }
  .author-honors ul { display: block; }
  .author-honors li + li { margin-top: 7px; }
  .author-avatar { width: 96px; height: 96px; flex-basis: 96px; }
  .author-identity { gap: 20px; }
  .author-identity h3 { font-size: 26px; }
  .author-section .author-degree { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .author-section * { scroll-behavior: auto; } }

/* CUHK guide entry uses the existing HK tokens: media 28px, pill buttons.
   Editorial information, with still photographs and interaction feedback only. */
.hk-application-entry { margin-top: 64px; display: grid; grid-template-columns: .9fr 1.1fr; background: var(--hk-surface); border-radius: 28px; overflow: hidden; scroll-margin-top: 88px; }
.hk-application-copy { padding: 48px; align-self: center; min-width: 0; }
.hk-page .hk-application-label { color: var(--hk-accent); font-size: 12px; font-weight: 600; margin: 0 0 18px; }
.hk-page .hk-application-copy h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.035em; }
.hk-application-copy > p:not(.hk-application-label) { color: var(--hk-muted); font-size: 15px; line-height: 1.9; margin: 24px 0; max-width: 360px; }
.hk-application-copy .hk-primary { display: inline-flex; }
.hk-application-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hk-application-photo { margin: 0; min-width: 0; min-height: 350px; }
.hk-application-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) { .hk-application-copy { padding: 32px; } }
@media (max-width: 768px) {
  .hk-application-entry { grid-template-columns: 1fr; margin-top: 40px; border-radius: 24px; }
  .hk-application-copy { padding: 28px; }
  .hk-application-photo { min-height: 0; }
  .hk-application-photo img { aspect-ratio: 4 / 3; height: auto; }
  .hk-page .hk-application-copy h3 { font-size: 31px; }
  .hk-application-copy > p:not(.hk-application-label) { font-size: 14px; margin: 20px 0; }
}

/* Full reading page. Existing layer scale: route 100, school nav 15.
   Sidebar uses native sticky positioning; no scroll-driven React updates. */
.guide-content { max-width: 1240px; margin: auto; padding: 36px 28px 80px; }
.guide-loading { padding-top: 60px; }
.guide-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.guide-hero-copy { min-width: 0; }
.guide-page .guide-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--hk-accent); margin-bottom: 20px; }
.guide-page .guide-hero h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.18; letter-spacing: -.04em; margin: 0; }
.guide-page .guide-lead { color: var(--hk-muted); font-size: 16px; line-height: 1.9; margin: 25px 0 28px; max-width: 375px; text-wrap: balance; }
.guide-hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.guide-secondary { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--hk-accent); padding: 12px 0; }
.guide-hero-photo { margin: 0; }
.guide-hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; display: block; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 20px 38px; margin: 36px 0 0; padding: 22px 0; border-bottom: 1px solid var(--hk-line); color: var(--hk-muted); font-size: 12px; }
.guide-meta strong, .guide-meta time { color: var(--hk-text); font-weight: 600; margin-left: 8px; }
.guide-page .guide-editor-note { color: var(--hk-muted); font-size: 12px; line-height: 1.85; margin: 18px 0 0; max-width: 850px; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 68px; margin-top: 58px; align-items: start; }
.guide-sidebar { position: sticky; top: 90px; }
.guide-sidebar > p { font-size: 12px; font-weight: 600; color: var(--hk-muted); margin-bottom: 18px; }
.guide-sidebar nav { display: grid; gap: 3px; }
.guide-sidebar nav button { border: 0; border-radius: 12px; padding: 11px 14px; background: transparent; color: var(--hk-muted); text-align: left; font-size: 13px; line-height: 1.6; }
.guide-sidebar nav button:hover { color: var(--hk-accent); background: var(--hk-surface); }
.guide-sidebar nav button[aria-current] { color: var(--hk-accent); background: var(--hk-soft); font-weight: 600; }
.guide-sidebar-download { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--hk-accent); margin: 28px 14px 0; }
.guide-article { min-width: 0; }
.guide-chapter { scroll-margin-top: 92px; }
.guide-chapter + .guide-chapter { margin-top: 64px; padding-top: 58px; border-top: 1px solid var(--hk-line); }
.guide-page .guide-chapter h2 { font-size: 30px; line-height: 1.4; margin-bottom: 24px; font-weight: 700; letter-spacing: -.035em; }
.guide-chapter h2:focus { outline: none; }
.guide-page .guide-chapter h3 { font-size: 19px; line-height: 1.6; margin: 28px 0 12px; font-weight: 700; }
.guide-page .guide-chapter p { color: var(--hk-muted); font-size: 15px; line-height: 1.95; }
.guide-chapter > p + p { margin-top: 18px; }
.guide-research-directions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 25px; padding: 24px; border-radius: 24px; background: var(--hk-surface); margin: 18px 0 24px; }
.guide-research-directions span { color: var(--hk-text); font-size: 14px; line-height: 1.7; }
.guide-chapter-sources { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.guide-page .guide-chapter-sources .hk-text-link { font-size: 11px; }
.guide-table-scroll { overflow-x: auto; margin: 22px 0; border-radius: 18px; border: 1px solid var(--hk-line); background: var(--hk-surface); }
.guide-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; line-height: 1.8; color: var(--hk-muted); }
.guide-table thead { background: var(--hk-soft); }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 16px 20px; }
.guide-table thead th { color: var(--hk-accent); font-weight: 600; }
.guide-table tbody th { width: 26%; font-weight: 600; color: var(--hk-text); }
.guide-table td { width: 37%; }
.guide-table tbody tr + tr { border-top: 1px solid var(--hk-line); }
.guide-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.guide-note { padding: 24px; background: var(--hk-soft); border-radius: 24px; margin-top: 25px; }
.guide-note strong { color: var(--hk-text); font-size: 14px; font-weight: 600; display: block; margin-bottom: 9px; }
.guide-page .guide-note p { font-size: 13px; }
.guide-academic { display: grid; gap: 20px; }
.guide-academic > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 18px; }
.guide-academic strong { color: var(--hk-accent); font-size: 15px; padding-top: 3px; }
.guide-checklist-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 26px 0 14px; }
.guide-page .guide-checklist-toolbar p { font-size: 13px; }
.guide-checklist-toolbar strong { color: var(--hk-accent); }
.guide-checklist-toolbar button { background: transparent; border: 0; color: var(--hk-accent); font-size: 12px; padding: 10px 0 10px 10px; }
.guide-checklist { background: var(--hk-surface); padding: 8px 26px; border-radius: 24px; }
.guide-material { padding: 24px 0; }
.guide-material + .guide-material { border-top: 1px solid var(--hk-line); }
.guide-material label { display: flex; align-items: start; gap: 12px; color: var(--hk-text); font-size: 15px; font-weight: 600; line-height: 1.7; cursor: pointer; }
.guide-material input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--hk-accent); flex-shrink: 0; }
.guide-page .guide-material p { font-size: 13px; margin: 10px 0 0 30px; }
.guide-page .guide-storage-note { font-size: 12px; margin-bottom: 12px; }
.guide-process { list-style-type: decimal; margin: 0; padding-left: 28px; }
.guide-process li { padding-left: 14px; }
.guide-process li + li { margin-top: 26px; }
.guide-process li::marker { color: var(--hk-accent); font-size: 15px; font-weight: 600; }
.guide-page .guide-process h3 { margin: 0 0 8px; font-size: 18px; }
.guide-timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.guide-timeline li { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 22px; padding: 22px 0; }
.guide-timeline li + li { border-top: 1px solid var(--hk-line); }
.guide-timeline-date { color: var(--hk-accent); font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 4px; font-size: 14px; }
.guide-timeline-date small { display: block; margin-top: 7px; color: var(--hk-muted); font-size: 11px; font-weight: 400; }
.guide-page .guide-timeline h3 { font-size: 17px; margin: 0 0 8px; }
.guide-page .guide-timeline p { font-size: 13px; }
.guide-funding-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; margin-top: 34px; }
.guide-funding-grid article { padding: 26px; background: var(--hk-surface); border-radius: 24px; }
.guide-funding-grid article:last-child { background: var(--hk-soft); }
.guide-page .guide-funding-grid h3 { font-size: 16px; margin: 0; }
.guide-page .guide-funding-value { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.04em; color: var(--hk-text); line-height: 1.35; margin: 23px 0 8px; white-space: nowrap; }
.guide-page .guide-funding-unit { font-size: 11px; margin-bottom: 18px; color: var(--hk-accent); }
.guide-page .guide-funding-grid article > p:last-child { font-size: 13px; }
.guide-page .guide-small-note { font-size: 12px; }
.guide-contact { margin: 28px 0 0; background: var(--hk-surface); padding: 26px; border-radius: 24px; font-style: normal; display: grid; gap: 10px; }
.guide-contact strong { font-size: 14px; }
.guide-contact a { color: var(--hk-accent); font-size: 13px; overflow-wrap: anywhere; width: fit-content; }
.guide-page .guide-contact p { font-size: 12px; }
.guide-notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.guide-page .guide-notes-grid h3 { font-size: 16px; margin: 0 0 8px; }
.guide-page .guide-notes-grid p { font-size: 13px; }
.guide-faq { margin: 25px 0 0; }
.guide-faq details { padding: 20px 0; border-bottom: 1px solid var(--hk-line); }
.guide-faq summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; list-style: none; color: var(--hk-text); font-size: 15px; font-weight: 600; line-height: 1.8; }
.guide-faq summary::-webkit-details-marker, .guide-mobile-toc summary::-webkit-details-marker { display: none; }
.guide-faq details[open] summary svg { transform: rotate(90deg); }
.guide-page .guide-faq details > p { padding-top: 15px; font-size: 14px; }
.guide-article-footer { padding-top: 30px; margin-top: 38px; border-top: 1px solid var(--hk-line); }
.guide-page .guide-article-footer p { font-size: 12px; color: var(--hk-muted); line-height: 1.9; margin-bottom: 18px; }
.guide-article-footer > button { display: block; border: 0; background: transparent; font-size: 12px; color: var(--hk-accent); padding: 12px 0; margin-top: 8px; }
.guide-mobile-toc { display: none; }
@media (max-width: 1024px) {
  .guide-hero { gap: 35px; }
  .guide-layout { gap: 36px; grid-template-columns: 185px minmax(0, 1fr); }
  .guide-funding-grid { grid-template-columns: 1fr; }
  .guide-timeline li { grid-template-columns: 125px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
  .guide-content { padding: 28px 20px 48px; }
  .guide-hero { grid-template-columns: 1fr; gap: 28px; }
  .guide-page .guide-hero h1 { font-size: 39px; }
  .guide-page .guide-lead { font-size: 15px; margin: 22px 0; }
  .guide-hero-photo img { aspect-ratio: 16 / 9; border-radius: 24px; }
  .guide-meta { gap: 13px 25px; padding: 20px 0; margin-top: 25px; font-size: 11px; }
  .guide-layout { grid-template-columns: 1fr; margin-top: 28px; }
  .guide-sidebar { display: none; }
  .guide-mobile-toc { display: block; margin-top: 28px; border-radius: 18px; background: var(--hk-surface); padding: 18px; }
  .guide-mobile-toc summary { display: flex; align-items: center; justify-content: space-between; list-style: none; color: var(--hk-text); font-size: 14px; font-weight: 600; }
  .guide-mobile-toc[open] summary svg { transform: rotate(90deg); }
  .guide-mobile-toc nav { display: grid; gap: 5px; padding-top: 14px; }
  .guide-mobile-toc nav button { background: transparent; color: var(--hk-muted); font-size: 13px; text-align: left; padding: 9px 6px; border: 0; }
  .guide-mobile-toc nav button[aria-current] { color: var(--hk-accent); font-weight: 600; }
  .guide-page .guide-chapter h2 { font-size: 26px; margin-bottom: 20px; }
  .guide-chapter + .guide-chapter { padding-top: 36px; margin-top: 40px; }
  .guide-page .guide-chapter p { font-size: 14px; }
  .guide-page .guide-note p, .guide-page .guide-material p, .guide-page .guide-timeline p, .guide-page .guide-small-note, .guide-page .guide-notes-grid p { font-size: 13px; }
  .guide-research-directions { padding: 20px; gap: 14px; }
  .guide-research-directions span { font-size: 13px; }
  .guide-note { padding: 20px; border-radius: 20px; }
  .guide-academic > div { grid-template-columns: 1fr; gap: 8px; }
  .guide-checklist { padding: 6px 20px; }
  .guide-material label { font-size: 14px; }
  .guide-notes-grid { grid-template-columns: 1fr; gap: 24px; }
  .guide-timeline li { grid-template-columns: 1fr; gap: 10px; }
  .guide-timeline-date small { display: inline; margin-left: 12px; }
  .guide-page .guide-funding-value { font-size: 30px; }
  .guide-table th, .guide-table td { padding: 13px 16px; }
}
@media (max-width: 620px) {
  .guide-schoolnav { flex-direction: column; align-items: start; gap: 0; padding: 12px 20px 0; }
  .guide-schoolnav nav { gap: 22px; flex-wrap: nowrap; }
  .guide-schoolnav nav > a { min-height: 43px; font-size: 11px; }
  .guide-chapter { scroll-margin-top: 108px; }
  .guide-page .guide-hero h1 { font-size: 36px; }
  .guide-hero-actions { gap: 14px; }
  .guide-secondary { font-size: 12px; }
  .guide-research-directions { grid-template-columns: 1fr; }
  .guide-hero-photo img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .guide-page *, .hk-application-entry * { scroll-behavior: auto; } }

/* Apple-inspired web styling. Layers: existing route100; local modal120.
   Shape scale: composer24, panels20, fields10, action pills999. */
.xg-app{--xg-bg:#f5f5f7;--xg-surface:#fefefe;--xg-text:#202124;--xg-muted:#62666e;--xg-line:#dcdfe5;--xg-accent:#1763ce;--xg-soft:#edf3fc;--xg-danger:#a32624;--xg-shadow:0 8px 35px #283b4f0b}
.section.xg-app{background:var(--xg-bg);color:var(--xg-text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;line-height:1.65;font-size:14px}
.xg-app *{box-sizing:border-box}.xg-app h1,.xg-app h2,.xg-app h3,.xg-app p,.xg-app figure{margin:0}.xg-app button,.xg-app input,.xg-app textarea,.xg-app select{font:inherit;letter-spacing:0}.xg-app button{cursor:pointer;white-space:nowrap}.xg-app button:disabled{opacity:.45;cursor:default}.xg-app button:active:not(:disabled){transform:scale(.98)}.xg-app :focus-visible{outline:3px solid var(--xg-accent);outline-offset:4px}.xg-app button{transition:background .15s,transform .15s}.xg-app button,.xg-app a{-webkit-tap-highlight-color:transparent}.xg-app a{color:inherit;text-decoration:none}
.xg-top{height:64px;border-bottom:1px solid var(--xg-line);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 36px;gap:16px;background:var(--xg-surface)}.xg-brand{display:flex;gap:9px;align-items:center;font-weight:600;font-size:16px}.xg-product{font-size:15px;font-weight:600;letter-spacing:-.02em}.xg-top-actions{display:flex;gap:18px;align-items:center;justify-content:flex-end}.xg-connect,.xg-text{border:0;background:transparent;color:var(--xg-muted);padding:7px 0;font-size:12px}.xg-connect{display:flex;align-items:center;gap:6px}.xg-main{max-width:850px;padding:42px 24px 30px;margin:0 auto;min-height:calc(100dvh - 64px)}.xg-intro{margin-bottom:32px;text-align:center}.xg-intro h1{font-size:36px;font-weight:600;letter-spacing:-.035em;line-height:1.3}.xg-intro p{font-size:15px;color:var(--xg-muted);margin-top:11px}.xg-thread{display:grid;gap:24px}.xg-welcome{text-align:center;padding:27px 0 43px;color:var(--xg-muted)}.xg-welcome>svg{margin:0 auto 15px;color:var(--xg-accent)}.xg-welcome p{color:var(--xg-text);font-size:16px}.xg-welcome span{display:block;font-size:13px;margin-top:7px}.xg-message{max-width:96%;min-width:0}.xg-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9}.xg-speaker{display:block;font-size:11px;font-weight:600;color:var(--xg-muted);margin-bottom:8px}.xg-user{justify-self:end;background:var(--xg-soft);padding:12px 18px;border-radius:20px 20px 5px 20px;max-width:85%}.xg-assistant{padding:0 4px}.xg-review,.xg-results{background:var(--xg-surface);border:1px solid var(--xg-line);border-radius:20px;padding:25px;box-shadow:var(--xg-shadow)}.xg-fileline{display:flex;align-items:center;gap:12px;min-width:0;padding-bottom:19px;margin-bottom:21px;border-bottom:1px solid var(--xg-line)}.xg-fileline>svg{color:var(--xg-accent)}.xg-fileline>div{flex:1;min-width:0}.xg-fileline strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}.xg-fileline span{display:block;color:var(--xg-muted);font-size:12px;margin-top:2px}.xg-review h2,.xg-results h2{font-size:20px;font-weight:600;letter-spacing:-.025em}.xg-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px 20px;margin:20px 0}.xg-field{display:grid;gap:7px;min-width:0;color:var(--xg-text);font-size:12px}.xg-field select,.xg-field input{width:100%;min-width:0;border-radius:10px;border:1px solid var(--xg-line);padding:10px 12px;background:var(--xg-bg);color:var(--xg-text);font-size:14px}.xg-details{margin:16px 0;color:var(--xg-muted);font-size:12px}.xg-details summary{cursor:pointer;color:var(--xg-text);padding:4px 0}.xg-details[open]>summary{margin-bottom:12px}.xg-details p{margin:7px 0;line-height:1.8}.xg-details h3{font-size:12px;font-weight:600;color:var(--xg-text);margin-top:17px}.xg-features{display:grid;gap:10px;margin:12px 0}.xg-features label{display:flex;align-items:center;gap:9px;min-width:0}.xg-features small{margin-left:auto;color:var(--xg-muted);font-size:11px}.xg-features input,.xg-consent input{accent-color:var(--xg-accent);width:16px;height:16px;flex-shrink:0}.xg-ready{display:flex;align-items:flex-start;gap:7px;font-size:12px;color:var(--xg-accent);margin:18px 0!important}.xg-ready svg{margin-top:2px}.xg-findings{padding:14px 16px;background:var(--xg-bg);border-radius:10px;font-size:12px;margin:16px 0;color:var(--xg-danger)}.xg-findings p{margin-top:8px}.xg-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:var(--xg-muted);margin:19px 0;line-height:1.8}.xg-consent input{margin-top:4px}.xg-primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:999px;padding:11px 23px;background:var(--xg-accent);color:#fff;font-size:13px;font-weight:500;min-height:43px}.xg-plan>.xg-text{margin-left:18px}.xg-plan p{font-size:13px;color:var(--xg-muted);margin-top:10px}.xg-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:999px;color:var(--xg-muted);background:transparent}.xg-working{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--xg-muted);padding:10px 4px}.xg-skeleton{width:45px;height:7px;background:var(--xg-line);border-radius:9px;display:block}.xg-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.xg-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:27px 0 15px}.xg-metrics dt{font-size:11px;color:var(--xg-muted)}.xg-metrics dd{font-size:32px;font-weight:500;letter-spacing:-.04em;margin:7px 0 0;font-variant-numeric:tabular-nums;color:var(--xg-text)}.xg-result-note{font-size:12px;color:var(--xg-muted)}.xg-charts{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:25px}.xg-chart{min-width:0}.xg-chart figcaption{font-size:13px;font-weight:500}.xg-chart svg{width:100%;height:auto;color:var(--xg-muted)}.xg-confusion h3{font-size:12px;margin-top:8px}.xg-confusion p,.xg-limit{font-size:12px;color:var(--xg-muted);margin-top:7px!important}.xg-details pre{font:11px/1.7 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;padding:12px;background:var(--xg-bg);border-radius:10px}.xg-error{font-size:13px;color:var(--xg-danger);line-height:1.8;margin:18px 0!important;overflow-wrap:anywhere}.xg-composer{border:1px solid var(--xg-line);border-radius:24px;box-shadow:var(--xg-shadow);background:var(--xg-surface);padding:17px 18px 12px;margin-top:26px}.xg-composer:focus-within,.xg-composer.is-dragging{border-color:var(--xg-accent)}.xg-composer textarea{display:block;width:100%;resize:vertical;min-height:62px;max-height:160px;border:0;background:transparent;color:var(--xg-text);font-size:14px;line-height:1.8;padding:0;outline:none!important}.xg-composer textarea::placeholder{color:var(--xg-muted)}.xg-composer-actions{display:flex;align-items:center;gap:12px;margin-top:8px}.xg-attach{display:flex;gap:6px;align-items:center;border:0;background:transparent;color:var(--xg-text);font-size:12px;padding:6px 0}.xg-composer-actions>span{font-size:10px;color:var(--xg-muted)}.xg-send{width:34px;height:34px;margin-left:auto;display:flex;align-items:center;justify-content:center;border-radius:999px;border:0;background:var(--xg-accent);color:#fff;padding:0}.xg-send:disabled{opacity:1;background:var(--xg-bg);color:var(--xg-muted)}.xg-sample{display:block;margin:18px auto 0;border:0;background:transparent;font-size:12px;color:var(--xg-accent);padding:5px}.xg-footnote{text-align:center;font-size:10px;line-height:1.8;color:var(--xg-muted);margin-top:20px!important}.xg-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px;background:#26314155;backdrop-filter:blur(8px)}.xg-modal{position:relative;width:min(100%,390px);background:var(--xg-surface);color:var(--xg-text);padding:31px;border-radius:20px;box-shadow:0 24px 90px #17222d35}.xg-modal>svg{color:var(--xg-accent);margin-bottom:17px}.xg-modal h2{font-size:22px;letter-spacing:-.025em}.xg-modal>p{font-size:12px;color:var(--xg-muted);margin:10px 0 24px}.xg-modal .xg-primary{width:100%;margin-top:20px}.xg-close{position:absolute;top:12px;right:12px}.xg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.xg-opening{max-width:800px;margin:10vh auto;text-align:center}.xg-opening h1{font-size:30px}.xg-opening p{color:var(--xg-muted);margin-top:16px}
@media(prefers-color-scheme:dark){.xg-app{--xg-bg:#18191c;--xg-surface:#232429;--xg-text:#f1f2f5;--xg-muted:#adb1ba;--xg-line:#41444c;--xg-accent:#77afff;--xg-soft:#293649;--xg-danger:#ffaaa4;--xg-shadow:none}.xg-primary,.xg-send{background:#1763ce;color:#fff}.xg-top{background:#1f2024}}
@media(prefers-reduced-motion:no-preference){.xg-skeleton{animation:xg-wait 1.4s ease-in-out infinite}@keyframes xg-wait{50%{opacity:.3}}.xg-results{animation:xg-in .2s ease-out}@keyframes xg-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-transparency:reduce){.xg-backdrop{backdrop-filter:none;background:#333b49e8}}
@media(max-width:767px){.xg-top{height:58px;padding:0 18px;gap:8px}.xg-brand{font-size:14px}.xg-product{font-size:14px}.xg-top-actions{gap:12px}.xg-top-actions>.xg-text{font-size:11px}.xg-connect{font-size:0;gap:0;min-width:25px}.xg-main{padding:32px 18px 25px;min-height:calc(100dvh - 58px)}.xg-intro{margin-bottom:23px}.xg-intro h1{font-size:28px}.xg-intro p{font-size:13px}.xg-welcome{padding:27px 0 29px}.xg-welcome p{font-size:14px}.xg-welcome span{font-size:11px}.xg-review,.xg-results{padding:19px 17px}.xg-fields{gap:13px;grid-template-columns:1fr 1fr}.xg-field select{padding:9px 7px;font-size:13px}.xg-charts{grid-template-columns:1fr;gap:15px}.xg-chart{max-width:360px;width:100%;margin:auto!important}.xg-metrics{gap:9px}.xg-metrics dd{font-size:27px}.xg-result-heading h2{font-size:19px}.xg-result-heading .xg-primary{padding:10px 16px;font-size:12px}.xg-composer{padding:15px 15px 11px;border-radius:20px}.xg-composer-actions{gap:9px}.xg-composer-actions>span{font-size:9px}.xg-composer textarea{font-size:16px}.xg-message p{font-size:13px}.xg-thread{gap:21px}.xg-features small{font-size:10px}.xg-features label{flex-wrap:wrap}.xg-modal{padding:27px}.xg-footnote{font-size:10px}}
.xg-mapping-summary{font-size:13px;line-height:1.9;color:var(--xg-muted);margin:15px 0}.xg-mapping-summary strong{font-weight:500;color:var(--xg-text)}
.xg-comparison{margin:24px 0;font-size:12px}.xg-comparison h3{font-size:13px}.xg-comparison p{color:var(--xg-muted);margin:8px 0}.xg-comparison table{width:100%;border-collapse:collapse}.xg-comparison th,.xg-comparison td{padding:9px 6px;text-align:left;border-bottom:1px solid var(--xg-line);font-variant-numeric:tabular-nums}
.xg-result-actions{display:flex;align-items:center;gap:12px}.xg-result-actions>.xg-text{font-size:12px;white-space:nowrap}.xg-charts{gap:28px 22px;align-items:start}.xg-chart{margin:0!important;max-width:none;display:block}.xg-chart figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;margin-bottom:10px;font-size:14px;font-weight:600}.xg-chart figcaption b{display:inline-block;margin-right:10px;color:#ad3159;font:600 13px/1.5 ui-monospace,monospace}.xg-figure-save{border:0;background:none;color:var(--xg-muted);font-size:10px;letter-spacing:.04em;padding:8px;cursor:pointer}.xg-figure-save:hover{color:var(--xg-accent)}.xg-vector{background:#fff;border:1px solid var(--xg-line);border-radius:10px;overflow:hidden}.xg-vector>svg{display:block;width:100%;height:auto;color:#24262b}.xg-vector svg text{font-family:Arial,'Microsoft YaHei',sans-serif}.xg-chart-note{font-size:11px;line-height:1.8;color:var(--xg-muted);margin:10px 0 0!important;overflow-wrap:anywhere}.xg-shap-panel{margin-top:30px;padding-top:25px;border-top:1px solid var(--xg-line)}.xg-shap-heading h3{font-size:15px;font-weight:600}.xg-shap-heading p{font-size:11px;color:var(--xg-muted);margin:8px 0 0}.xg-shap-panel .xg-charts{margin-top:22px}
@media(max-width:600px){.xg-result-heading{align-items:flex-start;flex-wrap:wrap;gap:15px}.xg-result-actions{gap:10px}.xg-charts{grid-template-columns:minmax(0,1fr);gap:25px}.xg-chart{max-width:440px!important;width:100%;margin:0 auto!important}.xg-results{padding:19px 14px}.xg-chart figcaption{font-size:14px}.xg-chart-note{font-size:11px}}

@media(prefers-color-scheme:dark){.xg-chart figcaption b{color:#df86a2}}

.xg-model-picker{max-width:480px;margin:0 auto 30px}.xg-model-picker>.xg-field select{font-size:15px;padding:12px}.xg-model-picker>p{font-size:12px;line-height:1.8;color:var(--xg-muted);margin:10px 0}.xg-model-picker>.xg-details{margin:8px 0;font-size:11px}.xg-model-picker a{color:var(--xg-accent);overflow-wrap:anywhere}
