/* UE AI directory presentation. Original CSS; references recorded in docs/界面设计参考.md. */
:root {
  --bg: #0c1015;
  --surface: #141a22;
  --raised: #1b232d;
  --border: #28313d;
  --text: #edf2f7;
  --muted: #a3afbf;
  --subtle: #8794a6;
  --accent: #a4f1d1;
  --accent-strong: #84dfbb;
  --accent-bg: #1b322e;
  --sidebar: 224px;
  --blue: #8fbaff;
  --amber: #e9c388;
  --violet: #b9acfa;
  --hero-bg: #121c25;
  --shadow: 0 12px 36px #00000024;
}
:root[data-theme=light] {
  --bg: #f3f5f8;
  --surface: #fff;
  --raised: #edf1f6;
  --border: #dce3eb;
  --text: #1d2939;
  --muted: #536279;
  --subtle: #627188;
  --accent: #17765c;
  --accent-strong: #116149;
  --accent-bg: #e4f4ed;
  --blue: #3369b9;
  --amber: #976317;
  --violet: #7458b6;
  --hero-bg: #eaf2f3;
  --shadow: 0 12px 36px #253c5910;
}
body { font-size: 14px; letter-spacing: .01em; }
::selection { background: var(--accent); color: var(--bg); }
.topbar { height: 74px; padding: 0 32px; gap: 48px; background: var(--bg); }
.brand { font-size: 23px; letter-spacing: -.7px; }
.brand img { width: 34px; height: 34px; }
.brand small { font-size: 11px; letter-spacing: .04em; }
.topnav { height: 100%; gap: 28px; align-items: center; }
.topnav a { display: flex; align-items: center; height: 100%; position: relative; }
.topnav a[aria-current] { color: var(--text); }
.topnav a[aria-current]::after { content: ''; position: absolute; bottom: -1px; height: 2px; background: var(--accent); left: 0; right: 0; }
.top-actions { gap: 18px; }
.admin-link { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); }
.admin-link svg { width: 14px; height: 14px; color: var(--accent); }
.admin-link:hover { border-color: var(--accent); }
.directory-shell { max-width: 1720px; padding: 0 32px; }
.sidebar { padding: 30px 20px 24px 0; scrollbar-color: var(--border) transparent; }
.sidebar-heading { font-size: 10px; margin: 0 10px 20px; letter-spacing: .12em; }
.module-link { font-size: 12px; padding: 10px; gap: 11px; border-radius: 8px; }
.module-link.active { box-shadow: inset 3px 0 var(--accent); border-color: transparent; }
.module-symbol { color: var(--subtle); font-size: 10px; }
.module-link.active .module-symbol { color: var(--accent); }
.module-link .count { min-width: 22px; text-align: center; border-radius: 4px; background: var(--raised); font-size: 10px; }
.module-link.active .count { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.all-link { margin-bottom: 13px; }
.sidebar-note { margin: 27px 0 0; padding: 17px 15px; background: var(--surface); border-style: dashed; border-radius: 10px; }
.sidebar-note > svg { display: block; color: var(--accent); margin-bottom: 12px; width: 19px; height: 19px; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note p { font-size: 11px; line-height: 1.9; }
.sidebar-foot { padding-left: 3px; font-size: 9px; }
.directory-main { padding: 26px 0 34px 30px; }

/* A small node graph gives the directory a connection to Unreal's authoring tools. */
.workspace-hero { min-height: 266px; padding: 28px 32px; border: 1px solid var(--border); border-radius: 16px; background: radial-gradient(ellipse at 88% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%), var(--hero-bg); overflow: hidden; gap: 12px; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero .eyebrow { font-size: 9px; margin-bottom: 15px; letter-spacing: .12em; }
.hero .eyebrow > span:first-child { border-radius: 50%; }
.hero h1 { font-size: clamp(30px, 2.8vw, 43px); font-weight: 650; letter-spacing: -1.4px; line-height: 1.4; margin-bottom: 12px; }
.hero h1 span { margin: 0 3px; }
.hero p { font-size: 12px; line-height: 1.95; }
.hero-labels { display: flex; gap: 8px; margin-top: 17px; }
.hero-labels span { font: 9px/1.6 ui-monospace, Consolas, monospace; border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); color: var(--muted); padding: 2px 7px; border-radius: 4px; }
.workflow-art { position: relative; width: 365px; height: 240px; flex-shrink: 0; background-image: radial-gradient(color-mix(in srgb, var(--muted) 25%, transparent) .8px, transparent .8px); background-size: 15px 15px; }
.art-caption, .art-footer { position: absolute; left: 10px; right: 2px; display: flex; justify-content: space-between; font: 8px ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--subtle); }
.art-caption { top: 4px; }
.art-footer { bottom: 0; align-items: center; }
.art-cross { font-size: 16px; color: var(--accent); }
.workflow-lines { position: absolute; top: 8px; left: 0; width: 100%; height: 220px; stroke: var(--accent); stroke-width: 1; opacity: .5; }
.workflow-lines circle { fill: var(--accent); }
.workflow-node { position: absolute; display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.workflow-node small { display: block; font: 7px/1.5 ui-monospace, Consolas, monospace; color: var(--subtle); letter-spacing: .08em; margin-bottom: 4px; }
.workflow-node strong { font-size: 12px; letter-spacing: -.2px; font-weight: 550; }
.node-agent { top: 34px; left: 0; }
.node-skill { bottom: 32px; left: 10px; }
.node-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.node-icon svg { width: 17px; height: 17px; }
.node-skill .node-icon { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); }
.workflow-node > i { position: absolute; right: -4px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.node-engine { right: 0; top: 71px; width: 133px; flex-direction: column; gap: 0; border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); padding: 17px 8px; }
.engine-mark { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-bg); border-radius: 9px; color: var(--accent); margin-bottom: 10px; }
.engine-mark svg { width: 25px; height: 25px; }
.engine-caption { font-size: 9px; color: var(--subtle); margin-top: 6px; }
.directory-overview { display: flex; gap: 28px; align-items: center; padding: 17px 3px 20px; }
.directory-overview > div { display: flex; align-items: baseline; gap: 8px; }
.directory-overview strong { font: 22px/1.2 ui-monospace, Consolas, monospace; letter-spacing: -1px; }
.directory-overview > div > span { font-size: 10px; color: var(--muted); }
.overview-update { margin-left: auto; color: var(--subtle); font-size: 10px; }
.overview-update i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 5px; }

.search-box { height: 60px; border-radius: 11px; padding-left: 19px; box-shadow: 0 5px 20px #00000008; }
.search-box input { font-size: 13px; }
.search-box > svg { color: var(--muted); }
.search-submit { padding: 12px 21px; border-radius: 7px; gap: 20px; }
.search-suggestions { margin: 12px 0 19px; gap: 10px; }
.search-suggestions > span { margin-right: 3px; }
.search-suggestions a { border: 1px solid var(--border); padding: 2px 9px; border-radius: 5px; font-size: 10px; }
.search-suggestions a:hover { background: var(--raised); border-color: var(--subtle); }
.search-suggestions a:last-child { border: 0; }
.workflow-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.workflow-shortcuts > a { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 14px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: border-color .2s, background .2s; }
.workflow-shortcuts > a:hover { background: var(--raised); border-color: var(--subtle); }
.shortcut-icon { width: 33px; height: 33px; display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
.shortcut-icon svg { width: 18px; height: 18px; }
.blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.mint { color: var(--accent); background: var(--accent-bg); }
.violet { color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, transparent); }
.workflow-shortcuts strong { display: block; font-size: 11px; font-weight: 550; }
.workflow-shortcuts small { display: block; color: var(--subtle); font-size: 9px; margin-top: 3px; }
.shortcut-arrow { margin-left: auto; color: var(--subtle); font-size: 12px; }
.discovery-controls { align-items: center; min-height: 43px; gap: 12px; }
.view-tabs { gap: 24px; min-width: 0; }
.view-tabs > a { padding: 9px 1px 13px; font-size: 12px; }
.view-tabs > a.selected { color: var(--text); border-color: var(--accent); }
.view-tabs span { color: var(--accent); }
.filters { align-self: center; margin: 0; }
.filters > summary { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: 11px; }
.filters[open] > summary { margin-left: auto; color: var(--accent); }
.filters[open] summary > span { transform: rotate(45deg); }
.filter-panel { margin: 5px 0 17px; padding: 20px; }
.filter-panel fieldset { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { border: 1px solid var(--border); border-radius: 6px; padding: 5px 11px; margin: 0; }
.check-chip:has(input:checked) { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
.filter-selects select { padding: 9px; }
.results-toolbar { padding: 24px 0 9px; }
.results-toolbar h2 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.result-total { border: none; border-radius: 5px; background: var(--raised); padding: 2px 7px; font: 10px/1.6 ui-monospace, Consolas, monospace; }
.results-actions .icon-button { border: 1px solid var(--border); width: 30px; height: 30px; }
.results-note { font-size: 11px; margin-bottom: 18px; }
.active-filters { padding: 8px 12px; border-radius: 6px; background: var(--accent-bg); margin: 6px 0 10px; }

/* Cards keep compatibility visible and move supporting information down the page. */
.tool-grid { gap: 16px; align-items: stretch; }
.tool-card { --card-tone: var(--accent); padding: 21px 20px 0; border-radius: 12px; background: var(--surface); box-shadow: 0 3px 10px #00000005; position: relative; }
.tool-card[data-tone=blue] { --card-tone: var(--blue); }
.tool-card[data-tone=amber] { --card-tone: var(--amber); }
.tool-card:hover { border-color: color-mix(in srgb, var(--card-tone) 50%, var(--border)); transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-monogram { width: 42px; height: 42px; color: var(--card-tone, var(--accent)); background: color-mix(in srgb, var(--card-tone, var(--accent)) 10%, var(--surface)); border-color: color-mix(in srgb, var(--card-tone, var(--accent)) 20%, transparent); border-radius: 11px; font-size: 16px; }
.card-top { gap: 11px; }
.card-title h3 { font-size: 15px; line-height: 1.45; font-weight: 600; }
.card-title > span { font-size: 10px; overflow-wrap: anywhere; }
.card-external { width: 26px; height: 26px; border-radius: 6px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--border); padding: 0; }
.card-external svg { width: 13px; height: 13px; }
.card-external:hover { border-color: var(--accent); background: var(--accent-bg); }
.type-line { margin-top: 17px; }
.type-line > span:not(.price-label) { font-size: 9px; background: var(--raised); border-color: transparent; padding: 2px 6px; }
.price-label { font-size: 10px; }
.tool-summary { font-size: 12px; line-height: 1.85; margin: 13px 0; }
.module-tags { gap: 5px; margin-bottom: 18px; }
.module-tags a { padding: 2px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 9px; }
.module-tags a:hover { border-color: var(--accent); color: var(--accent); }
.card-evidence { font-size: 10px; color: var(--muted); margin-bottom: 11px; }
.has-report .card-evidence { color: var(--accent); }
.card-evidence small { font-size: 9px; }
.version-scope { background: color-mix(in srgb, var(--raised) 75%, var(--surface)); border: 0; border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 0 7px 7px 0; padding: 10px 12px; gap: 5px; margin-bottom: 13px; }
.version-scope-title { color: var(--subtle); font-size: 9px; letter-spacing: .04em; }
.version-scope strong { font-size: 11px; line-height: 1.8; font-weight: 500; }
.version-scope a { font-size: 9px; }
.card-meta { font-size: 9px; padding-bottom: 13px; }
.card-bottom { margin: 0 -20px; padding: 13px 20px; border-radius: 0 0 12px 12px; background: color-mix(in srgb, var(--raised) 20%, var(--surface)); }
.card-bottom > a { font-size: 11px; }
.card-bottom > a > span { margin-left: 8px; }
.list-layout .tool-card { grid-template-columns: 1fr 1.4fr; gap: 0 26px; }
.list-layout .version-scope { margin-top: 8px; }
.collection-footer { font-size: 10px; }
.pagination a { background: var(--surface); padding: 9px 15px; border-radius: 7px; }
.pagination a:hover { border-color: var(--accent); }
.footer { padding: 28px 32px; }
.detail-panel, .quick-facts { border-radius: 13px; box-shadow: 0 3px 10px #00000005; }
.detail-hero { padding: 30px; border: 1px solid var(--border); border-radius: 15px; background: var(--hero-bg); }
.detail-aside { top: 20px; }
.detail-main > .version-scope { padding: 18px 22px; }
.detail-main > .version-scope strong { font-size: 14px; }
.related-section .tool-card { padding: 20px 20px 0; }
.related-section .card-bottom { margin: 0 -20px; padding: 13px 20px; }
.button.primary { box-shadow: 0 3px 8px #00000010; }
.standards-grid article { border-radius: 12px; background: var(--surface); }

@media (min-width: 1280px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid.list-layout { grid-template-columns: 1fr; }
}
@media (min-width: 1600px) {
  .directory-main { padding-left: 40px; }
  .workspace-hero { padding: 30px 42px; }
  .workflow-art { margin-right: 30px; width: 395px; }
  .hero h1 { font-size: 46px; }
}
@media (max-width: 1199px) {
  :root { --sidebar: 202px; }
  .topbar { padding: 0 24px; gap: 30px; }
  .directory-shell { padding: 0 24px; }
  .directory-main { padding-left: 24px; }
  .sidebar { padding-right: 15px; }
  .workspace-hero { padding: 24px; }
  .workflow-art { width: 270px; }
  .node-agent { left: 0; padding: 12px 9px; }
  .node-skill { left: 0; padding: 12px 9px; }
  .node-engine { width: 113px; }
  .workflow-node strong { font-size: 10px; }
  .node-icon { width: 25px; height: 25px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 11px; }
  .hero .eyebrow { font-size: 8px; }
  .directory-overview { gap: 19px; }
  .overview-update { font-size: 9px; }
  .workflow-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-shortcuts > a { padding: 11px 14px; }
  .shortcut-arrow { display: inline; }
}
@media (max-width: 900px) {
  .topbar { height: 68px; }
  .directory-shell { grid-template-columns: 1fr; }
  .directory-main { padding: 18px 0 28px; }
  .mobile-modules { margin-top: 16px; padding: 9px 13px; border-radius: 8px; background: var(--surface); }
  .sidebar { top: auto; padding: 18px; max-height: none; background: var(--surface); }
  .sidebar-heading { margin-bottom: 13px; }
  .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-link { font-size: 12px; }
  .workspace-hero { min-height: 250px; }
  .workflow-art { width: 310px; }
  .hero h1 { font-size: 37px; }
  .node-engine { width: 126px; }
  .directory-overview { gap: 25px; }
  .directory-overview strong { font-size: 23px; }
  .overview-update { font-size: 10px; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 16px; gap: 15px; height: 64px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .topnav { display: none; }
  .top-actions { gap: 9px; }
  .admin-link { font-size: 10px; padding: 7px 10px; }
  .admin-link svg { display: block; width: 12px; height: 12px; }
  .directory-shell { padding: 0 16px; }
  .workspace-hero { padding: 26px 23px; min-height: 0; border-radius: 12px; }
  .workflow-art { display: none; }
  .hero h1 { font-size: 36px; line-height: 1.4; margin-bottom: 11px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .1em; margin-bottom: 15px; }
  .hero p { font-size: 11px; }
  .hero-labels { margin-top: 17px; }
  .directory-overview { gap: 0; justify-content: space-between; padding: 17px 2px 20px; }
  .directory-overview > div { flex-direction: column; gap: 5px; align-items: flex-start; }
  .directory-overview strong { font-size: 24px; }
  .directory-overview > div > span { font-size: 9px; }
  .overview-update { display: none; }
  .search-box { height: 54px; padding: 7px 7px 7px 13px; gap: 9px; }
  .search-box input { font-size: 11px; }
  .search-submit { font-size: 11px; padding: 10px 13px; gap: 5px; }
  .search-suggestions { gap: 7px; margin: 11px 0 18px; }
  .search-suggestions > span { font-size: 9px; }
  .search-suggestions a { padding: 2px 7px; font-size: 9px; }
  .search-suggestions a:last-child { margin-left: 0; }
  .workflow-shortcuts { gap: 8px; margin-bottom: 20px; }
  .workflow-shortcuts > a { padding: 12px 10px; gap: 8px; }
  .shortcut-icon { width: 29px; height: 29px; }
  .shortcut-icon svg { width: 16px; height: 16px; }
  .workflow-shortcuts strong { font-size: 10px; }
  .workflow-shortcuts small { font-size: 8px; }
  .shortcut-arrow { display: none; }
  .view-tabs { gap: 19px; min-width: 0; }
  .view-tabs > a { font-size: 11px; }
  .filters > summary { font-size: 10px; gap: 5px; padding: 5px 8px; }
  .filter-panel { padding: 14px; }
  .check-chip { font-size: 11px; padding: 4px 8px; }
  .results-toolbar { padding: 21px 0 10px; flex-wrap: wrap; gap: 12px; }
  .results-toolbar h2 { font-size: 14px; }
  .results-actions { margin-left: auto; }
  .results-note { font-size: 10px; }
  .tool-grid, .related-section .tool-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 20px 19px 0; }
  .card-title h3 { font-size: 16px; }
  .card-bottom { margin: 0 -19px; padding: 13px 19px; }
  .version-scope strong { font-size: 12px; }
  .module-tags a { font-size: 10px; }
  .list-layout .tool-card { display: flex; }
  .detail-hero { padding: 23px 19px; }
  .detail-hero h1 { font-size: 27px; }
  .detail-hero > .button { margin: 5px 0 0; }
  .footer { padding: 25px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card:hover { transform: none; }
}

/* Overview first: generous reading space; supporting information lives on the detail page. */
.tool-grid, .related-section .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tool-grid.list-layout { grid-template-columns: 1fr; }
.tool-card.tool-preview-card,
.related-section .tool-card.tool-preview-card,
.list-layout .tool-card.tool-preview-card { display: block; padding: 0; }
.tool-preview { display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: inherit; }
.tool-preview:focus-visible { outline-offset: 5px; }
.preview-heading { display: flex; align-items: center; gap: 16px; }
.preview-heading .tool-monogram { width: 54px; height: 54px; font-size: 21px; border-radius: 13px; }
.preview-heading h3 { font-size: 23px; line-height: 1.4; font-weight: 650; margin: 0; overflow-wrap: anywhere; letter-spacing: -.4px; }
.preview-arrow { margin-left: auto; color: var(--muted); width: 20px; height: 20px; }
.tool-preview:hover .preview-arrow, .tool-preview:hover h3 { color: var(--accent); }
.preview-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.preview-labels > span { font-size: 13px; line-height: 1.6; border-radius: 5px; padding: 3px 9px; background: var(--raised); color: var(--muted); }
.preview-summary { font-size: 16px; line-height: 1.9; color: var(--muted); margin: 20px 0 24px; }
.preview-version { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.preview-version > span { font-size: 13px; color: var(--subtle); }
.preview-version p { font-size: 15px; line-height: 1.85; margin: 7px 0 0; overflow-wrap: anywhere; }
.preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 24px; }
.preview-footer > span { font-size: 13px; color: var(--subtle); }
.preview-footer strong { font-size: 15px; font-weight: 550; color: var(--accent); white-space: nowrap; }
.preview-footer strong span { margin-left: 8px; }
.list-layout .tool-preview { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.7fr); gap: 16px 36px; }
.list-layout .preview-heading { grid-column: 1; grid-row: 1 / 3; align-self: start; }
.list-layout .preview-labels { grid-column: 2; margin-top: 0; }
.list-layout .preview-summary { grid-column: 2; margin: 0; }
.list-layout .preview-version, .list-layout .preview-footer { grid-column: 1 / -1; margin: 0; }
.list-layout .preview-footer { padding-top: 5px; }

/* Readable controls and navigation, including the narrow layouts. */
.topnav, .admin-link { font-size: 14px; }
.module-link { font-size: 14px; }
.module-link .count, .sidebar-heading { font-size: 12px; }
.sidebar-note strong { font-size: 14px; }
.sidebar-note p, .sidebar-note a { font-size: 13px; }
.hero p { font-size: 16px; }
.hero-labels span { font-size: 12px; }
.directory-overview > div > span, .overview-update { font-size: 13px; }
.search-box { height: 66px; }
.search-box input { font-size: 16px; }
.search-submit { font-size: 15px; }
.search-suggestions > span, .search-suggestions a { font-size: 13px; }
.workflow-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workflow-shortcuts strong { font-size: 16px; }
.workflow-shortcuts small { display: none; }
.workflow-shortcuts > a { padding: 16px; }
.view-tabs > a { font-size: 16px; }
.view-tabs span { font-size: 12px; }
.filters > summary, .check-chip, .filter-selects label, .risk-option { font-size: 14px; }
.filter-selects select, .filter-panel legend, .filter-panel > small { font-size: 14px; }
.filter-bottom .button { font-size: 14px; }
.results-toolbar h2 { font-size: 22px; }
.results-actions select, .result-total { font-size: 13px; }
.results-note, .active-filters, .collection-footer { font-size: 13px; }
.results-toolbar { flex-wrap: wrap; }
.module-link { gap: 8px; }
.module-link > span:nth-child(2) { min-width: 0; }

/* The full detail page has space for readable explanations and evidence. */
.detail-main { max-width: 1380px; }
.detail-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
.breadcrumb, .detail-hero .muted { font-size: 14px; }
.detail-hero p { font-size: 18px; line-height: 1.9; max-width: 800px; }
.detail-main .button { font-size: 15px; }
.detail-main > .version-scope strong { font-size: 17px; line-height: 1.9; }
.detail-main .version-scope-title, .detail-main .version-scope a { font-size: 14px; }
.detail-panel { padding: 32px; }
.detail-panel h2 { font-size: 25px; }
.detail-panel h3 { font-size: 18px; }
.detail-panel .prose, .detail-panel > p { font-size: 16px; line-height: 2; }
.section-label { font-size: 12px; }
.capability-list a { font-size: 16px; }
.capability-list span, .capability-list small, .capability-list .source-mini { font-size: 14px; line-height: 1.8; }
.source-list p { font-size: 16px; }
.source-list small, .source-list time, .source-kind { font-size: 13px; }
.detail-main table { font-size: 15px; line-height: 1.9; }
.detail-main td small { font-size: 13px; }
.dependency-list { font-size: 16px; }
.dependency-list span { font-size: 14px; }
.quick-facts h2 { font-size: 21px; }
.quick-facts dt, .quick-facts dd small { font-size: 13px; }
.quick-facts dd, .resource-links a { font-size: 15px; }
.aside-note, .notice p { font-size: 14px; }
.notice { font-size: 16px; }
.source-list h3, .prose, .resource-links, .quick-facts dd { overflow-wrap: anywhere; }
@media (max-width: 1199px) {
  .workflow-art { display: none; }
  .workspace-hero { min-height: 0; }
  .tool-grid, .related-section .tool-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
}
@media (max-width: 900px) {
  .detail-layout { display: flex; flex-direction: column; }
  .detail-aside { position: static; width: 100%; order: 1; }
  .list-layout .tool-preview { display: flex; gap: 0; }
  .list-layout .preview-labels { margin-top: 18px; }
  .list-layout .preview-summary { margin: 20px 0 24px; }
  .list-layout .preview-footer { margin-top: 24px; }
}
@media (max-width: 620px) {
  .tool-preview { padding: 22px; }
  .preview-heading { gap: 12px; }
  .preview-heading h3 { font-size: 21px; }
  .preview-heading .tool-monogram { width: 46px; height: 46px; font-size: 19px; }
  .preview-summary { font-size: 16px; }
  .preview-footer > span { display: none; }
  .preview-footer strong { margin-left: auto; }
  .hero p { font-size: 15px; }
  .directory-overview > div > span { font-size: 12px; }
  .search-box input { font-size: 16px; }
  .search-box { height: 60px; }
  .search-submit { font-size: 14px; padding: 10px; }
  .search-submit span { display: none; }
  .search-suggestions { gap: 8px; }
  .workflow-shortcuts strong { font-size: 14px; }
  .workflow-shortcuts > a { padding: 13px 10px; }
  .view-tabs > a { font-size: 15px; }
  .filters > summary { font-size: 13px; }
  .results-toolbar h2 { font-size: 20px; }
  .results-actions { margin-left: 0; }
  .results-actions select { font-size: 13px; max-width: none; }
  .filter-selects { grid-template-columns: 1fr; }
  .detail-panel { padding: 22px; }
  .detail-panel h2 { font-size: 23px; }
  .detail-hero p { font-size: 16px; }
  .capability-list { grid-template-columns: 1fr; }
  .detail-main > .version-scope strong { font-size: 16px; }
  .quick-facts dl { grid-template-columns: 90px minmax(0, 1fr); }
}
