/* Xquant · Deloitte digital workspace
   Reference: dtt_style/deloitte_brand_guidelines.md. Official logos stay intact.
   Type: 400 / 600. Spacing: 4 / 8 / 12 / 16 / 24 / 32 / 40 / 48. */
:root {
  --ink: #000; --muted: #53565a; --green: #046a38; --brand-green: #86bc25;
  --action: #0076a8; --action-hover: #005587; --danger: #a52822;
  --line: #e7e9e8; --control: #75787b; --canvas: #f5f6f6; --white: #fff;
  --sidebar: 240px; --gutter: 40px; --radius: 8px;
  --font: "Open Sans", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.75 var(--font); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; min-width: 44px; }
button:disabled { cursor: wait; opacity: .65; }
:where(a, button, input, textarea, select, summary, [tabindex="0"]):focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--action-hover); }
main:focus { outline: none; }
a, button { -webkit-tap-highlight-color: transparent; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 20px; background: #fff; color: #000; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Brand and application shell */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; width: var(--sidebar); padding: 32px 20px 24px; display: flex; flex-direction: column; overflow-y: auto; background: #000; color: #fff; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { display: block; padding: 8px 12px; }
.brand-logo img, .footer-logo { display: block; height: auto; object-fit: contain; }
.brand { display: block; padding: 28px 12px; margin-bottom: 28px; border-bottom: 1px solid #292b2c; }
.brand > span { display: block; white-space: nowrap; font-size: 20px; font-weight: 400; line-height: 1.5; letter-spacing: -.3px; }
.brand small { display: block; margin-top: 8px; color: #d0d0ce; font-size: 10px; letter-spacing: 1.3px; }
.nav-label { margin: 0 12px 12px; color: #a8aaa9; font-size: 12px; }
.sidebar nav { display: grid; gap: 4px; margin-bottom: 28px; }
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 12px; border-radius: 4px; color: #d0d0ce; font-size: 14px; transition: background-color .16s, color .16s; }
.sidebar nav a:hover { background: #191919; color: #fff; }
.sidebar nav a.active { background: #20241b; color: #fff; }
.sidebar nav a.active::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--brand-green); }
.sidebar nav a.active .icon { color: var(--brand-green); }
.sidebar-footer { margin-top: auto; padding: 24px 12px 0; color: #d0d0ce; font-size: 12px; }
.sidebar-footer > div { display: flex; align-items: center; gap: 8px; }
.sidebar-footer .icon { width: 16px; height: 16px; }
.sidebar-footer small { display: block; margin-top: 8px; font-size: 12px; color: #a8aaa9; }
.sidebar-head, .brand, .sidebar-footer { flex-shrink: 0; }
.sidebar .navigation { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width:thin; scrollbar-color:#4c4f4d transparent; }
.sidebar .navigation::-webkit-scrollbar { width:5px; }
.sidebar .navigation::-webkit-scrollbar-thumb { background:#4c4f4d; border-radius:4px; }
.sidebar .navigation::-webkit-scrollbar-track { background:transparent; }
body:not(.public-shell) .brand { margin-bottom: 20px; padding-bottom: 20px; }
.sidebar-assistant { display: grid; grid-template-columns: 24px minmax(0, 1fr) 14px; gap: 10px; align-items: center; flex-shrink: 0; padding: 16px 12px; margin-bottom: 28px; border: 1px solid #455231; border-left: 3px solid var(--brand-green); border-radius: 4px; background: #20241b; }
.sidebar-assistant:hover, .sidebar-assistant.is-current { border-color: var(--brand-green); background: #2a3121; }
.assistant-entry-icon { color: var(--brand-green); }
.sidebar-assistant strong { display: block; font-size: 14px; }
.sidebar-assistant small { display: block; margin-top: 4px; font-size: 11px; color: #d0d0ce; }
.sidebar-assistant > .icon { width: 14px; height: 14px; color: #d0d0ce; }
.mobile-assistant { display: none; }
.menu-toggle { display: none; }
.workspace { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.topbar { min-height: 72px; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.breadcrumb a { color: var(--ink); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.topbar-user, .user-link, .access-label { display: flex; align-items: center; gap: 10px; }
.topbar-user { flex-shrink: 0; }
.user-link { min-height: 44px; }
.user-name { overflow-wrap: anywhere; max-width: 160px; }
.access-label { color: var(--muted); }
.access-label .icon { width: 16px; height: 16px; }
.avatar, .mini-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #e7e9e8; color: #292b2c; font-size: 13px; font-weight: 600; }
.mini-avatar { width: 24px; height: 24px; font-size: 11px; }
.avatar.large { width: 56px; height: 56px; font-size: 24px; }
.environment { display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter); background: #f0f1ee; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.environment > span { flex-shrink: 0; padding: 0 5px; border: 1px solid #75787b; border-radius: 2px; font-size: 10px; font-weight: 600; }
main { width: 100%; max-width: 1520px; margin: 0 auto; padding: 40px var(--gutter) 48px; flex: 1; min-width: 0; }
.page-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px var(--gutter); border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; }
.footer-logo { flex-shrink: 0; margin: 8px 8px 8px 0; }
.copyright, .footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact { margin-left: auto; font-style: normal; }
.footer-contact > span { color: var(--ink); font-weight: 600; }
.footer-contact a { color: var(--action); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Typography and shared layout */
h1, h2, h3, h4, p { margin-top: 0; }
p { margin-bottom: 16px; }
h1 { font-size: 36px; line-height: 1.35; font-weight: 400; letter-spacing: -.5px; margin-bottom: 12px; overflow-wrap: anywhere; }
h2 { font-size: 22px; line-height: 1.45; font-weight: 600; margin-bottom: 20px; overflow-wrap: anywhere; }
h3 { font-size: 17px; line-height: 1.5; font-weight: 600; margin-bottom: 12px; }
h4 { margin: 24px 0 8px; font-weight: 600; }
strong, b { font-weight: 600; }
.eyebrow { font-size: 11px; line-height: 1.5; font-weight: 600; color: var(--green); letter-spacing: 1.5px; margin-bottom: 12px; }
.muted, .fine, .small { color: var(--muted); }
.fine { font-size: 13px; line-height: 1.65; }
.small { font-size: 14px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading p { margin-bottom: 0; max-width: 54em; }
.page-heading > .primary, .page-heading > .secondary { flex-shrink: 0; }
.panel { min-width: 0; padding: 32px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel.narrow { max-width: 680px; }
.panel > :last-child { margin-bottom: 0; }
.two-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.two-columns > *, .resource-layout > * { min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading h2 + p { margin-top: 8px; }
.count-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.actions, .form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.actions form { margin: 0; }
.form-actions { margin-top: 28px; }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.prose { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.back { display: inline-flex; align-items: center; min-height: 36px; margin-bottom: 20px; font-size: 13px; color: var(--action); text-decoration: underline; text-underline-offset: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
code { background: #f5f6f6; border-radius: 3px; padding: 2px 5px; font-size: 12px; }
.wrap { overflow-wrap: anywhere; }
.align-right { text-align: right; }
.helper { color: var(--muted); background: #fafafa; font-size: 14px; }
.helper h2 { color: var(--ink); font-size: 20px; }
.helper h3 { color: var(--ink); margin-top: 24px; font-size: 15px; }
.helper .eyebrow + h2 { margin-top: 0; }
.feature-list { padding-left: 20px; margin: 0 0 20px; }
.feature-list li + li { margin-top: 12px; }

/* Controls, feedback and dialog */
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; line-height: 1.5; font-weight: 600; text-align: center; transition: background-color .16s, border-color .16s; }
.primary { background: var(--action); color: #fff; }
.primary:hover { background: var(--action-hover); }
.primary:active { background: #004368; }
.secondary { border-color: var(--control); background: #fff; color: var(--ink); }
.secondary:hover { border-color: #292b2c; background: #f5f6f6; }
.secondary:active { background: #e7e9e8; }
.full { width: 100%; }
.link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--action); font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.link:hover { color: var(--action-hover); }
.link .icon { width: 16px; height: 16px; }
.danger { color: var(--danger) !important; }
.destructive { background: var(--danger); color: #fff; }
.destructive:hover { background: #801e19; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 3px; background: #f0f1f1; color: var(--muted); font-size: 12px; white-space: nowrap; }
.badge.green { background: #e7f2e8; color: var(--green); }
.badge.danger { background: #fff0ed; }
.notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 16px; border: 1px solid #b1cbb9; border-left: 3px solid var(--green); border-radius: 4px; background: #f2ffef; color: var(--green); font-size: 14px; }
.notice .icon { margin-top: 2px; }
.notice > span { min-width: 0; overflow-wrap: anywhere; }
.notice.error { background: #fff0ed; border-color: #d6a19b; border-left-color: var(--danger); color: var(--danger); }
.notice.info, .notice.warning { background: #eaf7ff; border-color: #a3c6d9; border-left-color: var(--action-hover); color: var(--action-hover); }
.toast { position: fixed; bottom: 28px; left: calc(50% + var(--sidebar) / 2); z-index: 20; transform: translate(-50%, 12px); max-width: calc(100vw - 48px); width: max-content; padding: 14px 20px; border-radius: 4px; background: #121212; color: #fff; box-shadow: 0 4px 20px #0002; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.is-copied { outline: 2px solid var(--green); outline-offset: 2px; }
.dialog { width: min(520px, calc(100vw - 40px)); max-height: calc(100vh - 48px); padding: 32px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); overflow-y: auto; box-shadow: 0 16px 56px #0003; }
.dialog:not([open]) { display: none; }
.dialog::backdrop { background: #0008; }
.dialog h2 { margin-bottom: 12px; font-size: 24px; font-weight: 400; }
.dialog p { color: var(--muted); overflow-wrap: anywhere; }
.dialog-symbol { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%; background: #fff0ed; color: var(--danger); }
.dialog.neutral .dialog-symbol { background: #eaf7ff; color: var(--action); }
.dialog-actions { justify-content: flex-end; margin-top: 32px; }

/* Forms */
label { display: block; margin: 0 0 8px; font-size: 14px; line-height: 1.6; font-weight: 600; }
.required-mark { margin-left: 10px; font-size: 11px; font-weight: 400; color: var(--muted); }
.field { margin-bottom: 24px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
input:not([type=checkbox]):not([type=file]):not([type=hidden]), textarea, select { display: block; width: 100%; min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid var(--control); border-radius: 4px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.6; }
input::placeholder, textarea::placeholder { opacity: 1; color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--action); }
textarea { resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--action); margin: 2px 0 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check label { display: flex; align-items: center; min-height: 44px; margin: 0; font-weight: 400; cursor: pointer; }
.check input { margin: 0; }
.field-check .helptext { margin-left: 28px; }
.helptext { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.helptext ul { margin: 8px 0 0; padding-left: 18px; }
.field-counter { display: block; margin-top: 4px; text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.field-counter + .helptext { margin-top: 4px; }
.errorlist { padding-left: 18px; margin: 8px 0 0; list-style-type: disc; }
.field-errors { color: var(--danger); margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
.field-errors .errorlist { margin: 0; }
.has-error :is(input, select, textarea), [aria-invalid=true] { border-color: var(--danger) !important; }
.form-errors { margin: 0 0 24px; padding: 16px 20px; background: #fff0ed; color: var(--danger); border: 1px solid #d6a19b; border-left: 3px solid var(--danger); border-radius: 4px; font-size: 14px; }
.form-errors ul { margin: 8px 0 0; padding-left: 18px; }
.form-errors { overflow-wrap: anywhere; }
.form-errors:focus { outline: 2px solid var(--action-hover); outline-offset: 3px; }
.password-control { position: relative; }
.js .password-control input { padding-right: 66px !important; }
.password-toggle { position: absolute; inset: 1px 1px 1px auto; min-width: 60px; border: 0; border-radius: 0 3px 3px 0; color: var(--action); background: #fff; font-size: 13px; }
.password-toggle:hover { background: #f5f6f6; }
.form-section + .form-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.form-section h2 { font-size: 20px; }
.upload-zone { padding: 28px 24px 24px; border: 1px dashed var(--control); border-radius: 6px; background: #f8f8f8; text-align: center; }
.upload-zone > .icon { width: 32px; height: 32px; color: var(--action); }
.upload-zone h3 { margin: 12px 0 4px; }
.upload-zone p { font-size: 13px; }
.file-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.file-picker { position: relative; display: inline-flex; margin: 0; overflow: hidden; cursor: pointer; }
.file-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-picker:focus-within { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--action-hover); }
.file-summary { margin: 0; overflow-wrap: anywhere; color: var(--muted); }
.upload-progress { margin-top: 24px; }
.upload-progress p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
progress { width: 100%; height: 8px; accent-color: var(--action); }
#upload-error { margin-top: 24px; }

/* Resource market */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 32px; overflow: hidden; }
.stats > div, .stats > a { display: flex; align-items: center; gap: 16px; padding: 24px; }
.stats > div { position: relative; }
.stats > div + div::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 0; width: 1px; background: var(--line); }
.stats strong { font-size: 32px; font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-icon { display: grid; place-items: center; width: 28px; color: var(--green); flex-shrink: 0; }
.stat-icon .icon { width: 24px; height: 24px; }
.assistant-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; margin-bottom: 24px; border-left: 3px solid var(--brand-green); border-radius: var(--radius); background: #121212; color: #fff; }
.assistant-banner-copy { min-width: 0; }
.assistant-banner .eyebrow { color: var(--brand-green); font-size: 10px; margin-bottom: 8px; }
.assistant-banner h2 { font-size: 24px; font-weight: 400; line-height: 1.5; margin-bottom: 8px; }
.assistant-banner p { max-width: 42em; margin: 0; font-size: 13px; color: #d0d0ce; }
.assistant-banner-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; align-items: center; }
.assistant-banner-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.assistant-banner-link:hover { color: var(--brand-green); }
.assistant-banner-link .icon { width: 16px; height: 16px; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.search-form { display: flex; align-items: center; gap: 12px; width: 62%; max-width: 580px; padding: 0 12px; border: 1px solid var(--control); border-radius: 4px; background: #fff; }
.search-form > .icon { color: var(--muted); }
.search-form input:not([type=hidden]):not([type=file]):not([type=checkbox]) { min-width: 0; margin: 0; padding: 12px 0; border: 0; border-radius: 0; background: none; font-size: 14px; }
.search-form button { min-height: 46px; padding: 8px 4px; border: 0; background: none; color: var(--action); font-size: 14px; white-space: nowrap; }
.result-count { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.result-count > span { font-size: 12px; padding-left: 12px; border-left: 1px solid #d0d0ce; }
.tabs { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 28px; border-bottom: 1px solid #d0d0ce; }
.tabs a { position: relative; display: block; padding: 12px 4px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.selected { color: var(--ink); font-weight: 600; }
.tabs a.selected::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--green); }
.filter-summary { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: -12px 0 20px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.resource-card { display: flex; flex-direction: column; min-width: 0; min-height: 320px; padding: 24px 24px 0; border: 1px solid #dfe2e1; border-radius: 8px; background: #fff; overflow-wrap: anywhere; transition: border-color .18s, box-shadow .18s; }
.resource-card:hover { border-color: var(--control); box-shadow: 0 4px 16px #0000000a; }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.resource-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: #f2ffef; color: var(--green); }
.resource-icon .icon { width: 24px; height: 24px; }
.resource-icon.script { color: #005587; background: #eaf7ff; }
.resource-icon.mcp { color: var(--green); background: #ddefe8; }
.resource-icon.knowledge { color: var(--muted); background: #f0f1f1; }
.type-label { font-size: 12px; color: var(--muted); }
.card-arrow { margin-left: auto; color: var(--muted); }
.card-arrow .icon { width: 18px; height: 18px; }
.resource-card h2 { font-size: 20px; line-height: 1.5; font-weight: 600; margin-bottom: 12px; }
.resource-card > p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.resource-card h2, .resource-card > p { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.resource-card h2 { -webkit-line-clamp: 2; }
.resource-card > p { -webkit-line-clamp: 3; }
.card-version { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; margin-bottom: 20px; font-size: 12px; color: var(--muted); }
.version { display: inline-block; padding: 1px 6px; background: #f5f6f6; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.card-author { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.auto-check { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; }
.auto-check .icon { width: 14px; height: 14px; }
.empty { grid-column: 1 / -1; padding: 56px 24px; border: 1px solid var(--line); border-radius: 8px; text-align: center; background: #fff; color: var(--muted); }
.empty > .icon { width: 40px; height: 40px; margin-bottom: 20px; color: var(--green); }
.empty h2 { margin-bottom: 12px; color: var(--ink); font-size: 24px; font-weight: 400; }
.empty h3 { color: var(--ink); font-size: 18px; }
.empty p { max-width: 38em; margin: 0 auto 24px; font-size: 14px; }
.empty p:last-child { margin-bottom: 0; }
.empty.compact { border: 0; padding: 32px 16px; background: transparent; }
.error-page { margin: 24px auto; padding: 64px 32px; max-width: 800px; }
.error-page .eyebrow { margin-top: 4px; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; margin: 32px 0 0; font-size: 13px; color: var(--muted); }
.pagination-disabled { padding: 10px 18px; color: var(--muted); }

/* Detail and reviews */
.resource-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.resource-main { grid-column: 1; grid-row: 1; }
.resource-rail { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
.install-card { padding: 24px; border-top: 3px solid var(--brand-green); }
.install-card h2 { font-size: 15px; color: var(--muted); font-weight: 400; margin-bottom: 12px; }
.release-number { font-size: 36px; line-height: 1.35; font-weight: 400; margin: 8px 0; overflow-wrap: anywhere; }
.install-card .primary { margin-top: 12px; }
.install-help { text-align: center; margin: 12px 0 20px; }
.install-card .auto-check { margin-top: 20px; display: flex; }
.technical-details { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.technical-details summary { font-size: 12px; color: var(--muted); }
.technical-details code { display: block; margin-top: 12px; }
.release-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.release-row:last-child { padding-bottom: 0; border: 0; }
.release-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.release-heading h3 { margin: 0; font-size: 18px; }
.release-heading time { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.release-row .prose { margin-bottom: 12px; }
.review { border-bottom: 1px solid var(--line); padding: 24px 0; }
.review-heading { display: flex; align-items: center; gap: 12px; }
.review .prose { margin-top: 16px; }
.review-compose { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.review-compose [data-field=release] { max-width: 240px; }
.review + .review-compose { border: 0; padding-top: 0; }
.review-editor form { margin-top: 16px; }
.review-editor .form-actions { margin-top: 16px; }
summary { cursor: pointer; min-height: 36px; color: var(--action); font-size: 13px; }
.management-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fafafa; }
.management-note h2 { font-size: 17px; margin-bottom: 8px; }
.management-note p { margin: 0; }
.management-note form { flex-shrink: 0; }

/* Tables and management */
.table-wrap { overflow-x: auto; border-radius: 4px; }
.table-hint { display: none; color: var(--muted); font-size: 12px; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.65; }
th { padding: 14px 16px; background: #f5f6f6; text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }
td small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.date-cell { white-space: nowrap; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-link { color: var(--action); text-decoration: underline; text-underline-offset: 4px; }
.resource-cell { min-width: 160px; }
.feedback-text { min-width: 200px; max-width: 400px; overflow-wrap: anywhere; }
.feedback-text p { margin-bottom: 8px; }
.filter-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 16px; align-items: start; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.filter-form .field { margin: 0; }
.filter-form label { font-size: 13px; }
.filter-form .form-errors { grid-column: 1 / -1; }
.filter-form input { font-size: 13px !important; }
.filter-actions { display: flex; gap: 12px; align-items: center; margin-top: 29px; }
.profile-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.profile-identity, .member-identity { display: flex; align-items: center; gap: 16px; }
.profile-identity h2 { margin-bottom: 4px; }
.profile-identity p { margin: 0; font-size: 14px; }
.profile-note .fine { margin: 8px 0 0; }
.enrollment-fields { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.enrollment-fields .field { margin-bottom: 0; }
.enrollment-fields .form-errors { grid-column: 1 / -1; }
.enrollment-layout .panel { margin-bottom: 24px; }
.enrollment-guide ol { margin: 24px 0; padding-left: 24px; }
.enrollment-guide li { padding-left: 4px; margin-bottom: 16px; }
.enrollment-guide li::marker { color: var(--green); font-weight: 600; }
.enrollment-guide li strong, .enrollment-guide li span { display: block; }
.enrollment-guide li span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.connection-ready { border-top: 3px solid var(--brand-green); }
.connection-ready h2 { margin-top: 12px; }
.connection-ready [data-enrollment-copy]:disabled { cursor: default; }
.connection-secret { padding: 20px 24px; border-radius: 4px; background: #f2f7ec; border: 1px solid #dce8cd; margin-bottom: 12px; }
.connection-secret code { font: 600 20px/1.6 "SFMono-Regular", Consolas, monospace; letter-spacing: .4px; color: var(--green); overflow-wrap: anywhere; }
.connection-instruction { margin-top: 24px; }
.connection-instruction summary { color: var(--action); cursor: pointer; font-size: 14px; }
.connection-legacy summary { color: var(--action); cursor: pointer; font-size: 14px; }
.connection-legacy[open] summary { margin-bottom: 16px; }
.connection-instruction textarea { margin-top: 16px; font-size: 13px; }
.connection-history { margin-top: 24px; }
.connection-row-actions { justify-content: flex-end; flex-wrap: nowrap; gap: 16px; }
.connection-row-actions .link { white-space: nowrap; }
@media (max-width: 620px) {
  .enrollment-fields { grid-template-columns: minmax(0, 1fr); }
  .connection-secret { padding: 16px; }
  .connection-secret code { font-size: 16px; }
  .connection-ready .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .connection-ready .actions { gap: 12px 20px; }
}
.member-identity { gap: 12px; min-width: 150px; }
.member-identity strong { font-size: 14px; }
.compact-actions { gap: 16px; }
.compact-actions .link { white-space: nowrap; }
.disclosure-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; color: var(--ink); font-size: 20px; font-weight: 600; }
.disclosure-panel > summary::-webkit-details-marker { display: none; }
.disclosure-panel > summary small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
.disclosure-panel[open] > summary > .icon { transform: rotate(45deg); }
.member-form { max-width: 640px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.recycle-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.recycle-row h3, .recycle-row p { margin-bottom: 4px; }
.audit-target { max-width: 360px; overflow-wrap: anywhere; }
.audit-target code { color: var(--muted); }

/* Login and connection */
.auth-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; max-width: 1080px; margin: 48px auto; }
.display { margin: 24px 0; font-size: 48px; font-weight: 400; line-height: 1.35; letter-spacing: -1px; }
.display::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 32px; background: var(--brand-green); }
.lead { font-size: 17px; line-height: 1.9; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill-row span { padding: 4px 10px; border: 1px solid #d0d0ce; border-radius: 3px; background: #fff; color: var(--muted); font-size: 12px; }
.auth-card { max-width: 440px; width: 100%; padding: 32px; margin: 0; border-top: 3px solid var(--brand-green); }
.auth-card h2 { font-size: 26px; font-weight: 400; margin: 8px 0; }
.auth-card form { margin-top: 28px; }
.auth-card .field { margin-bottom: 20px; }
.auth-help { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.assistant-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); align-items: center; gap: 40px; border-top: 3px solid var(--brand-green); }
.assistant-overview h2 { margin: 16px 0 12px; font-size: 26px; font-weight: 400; }
.assistant-overview-copy > p { max-width: 42em; color: var(--muted); font-size: 14px; }
.assistant-inclusions { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 12px; color: var(--green); }
.assistant-inclusions > span { display: inline-flex; align-items: center; gap: 6px; }
.assistant-inclusions .icon { width: 16px; height: 16px; }
.assistant-download { border-left: 1px solid var(--line); padding-left: 32px; }
.assistant-download p { margin: 16px 0 4px; font-size: 12px; }
.assistant-download .link { justify-content: flex-start; font-size: 12px; }
.connection-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.connection-step:first-child { padding-top: 0; }
.connection-step:last-child { padding-bottom: 0; border: 0; }
.connection-step h2 { margin-bottom: 12px; font-size: 20px; }
.step { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b1cbb9; border-radius: 50%; background: #f2ffef; color: var(--green); font-size: 12px; font-variant-numeric: tabular-nums; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; }
.platform { padding: 24px; border: 1px solid var(--control); border-radius: 6px; background: #fff; color: var(--action); text-align: left; }
.platform:hover { background: #eaf7ff; border-color: var(--action); }
.platform > .icon { width: 24px; height: 24px; }
.platform b { display: block; color: var(--ink); font-size: 18px; margin: 16px 0 8px; }
.platform small { display: block; color: var(--action); font-size: 12px; }
.prompt-example { padding: 16px 20px; margin-top: 12px; border-left: 3px solid var(--brand-green); background: #f5f6f6; color: #292b2c; font-size: 14px; overflow-wrap: anywhere; }
.auth-code { margin: 24px 0; padding: 20px; background: #f2ffef; color: var(--green); border-radius: 4px; text-align: center; font: 32px/1.5 monospace; letter-spacing: 5px; overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; margin: 24px 0; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; background: #f2ffef; color: var(--green); border-radius: 50%; }
.success-icon .icon { width: 28px; height: 28px; }

.feedback-table td { vertical-align: top; }
.feedback-table td:nth-child(2), .feedback-table td:nth-child(3) { white-space: nowrap; }
.feedback-details summary { display: block; list-style: none; cursor: pointer; }
.feedback-details summary::-webkit-details-marker { display: none; }
.feedback-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--ink); font-weight: 400; }
.feedback-details .show-more, .feedback-details .show-less { display: inline-flex; align-items: center; min-height: 44px; color: var(--action); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.feedback-details .show-less, .feedback-details[open] .show-more, .feedback-details[open] .feedback-preview { display: none; }
.feedback-details[open] .show-less { display: inline-flex; }
.feedback-full { padding-top: 8px; }
.error-page .actions { justify-content: center; }

/* Responsive layouts preserve controls and reading order. */
@media (min-width: 1600px) {
  :root { --gutter: 48px; }
  main { padding-top: 48px; }
  .resource-card { min-height: 328px; }
}
@media (max-width: 1199px) {
  :root { --sidebar: 220px; --gutter: 32px; }
  .sidebar { padding-inline: 16px; }
  .brand > span { font-size: 18px; }
  .brand small { letter-spacing: 1px; }
  h1 { font-size: 32px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .assistant-banner { padding: 24px; gap: 24px; }
  .assistant-banner h2 { font-size: 22px; }
  .assistant-overview { gap: 24px; }
  .assistant-download { padding-left: 24px; }
  .panel { padding: 24px; }
  .resource-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .auth-layout { gap: 32px; }
  .display { font-size: 40px; }
  .auth-card { padding: 24px; }
  .two-columns { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); }
  .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-actions { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 1023px) {
  .two-columns, .resource-layout { grid-template-columns: minmax(0, 1fr); }
  .assistant-banner { flex-wrap: wrap; }
  .assistant-banner-actions { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
  .assistant-overview { grid-template-columns: minmax(0, 1fr); }
  .assistant-download { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .assistant-download > .primary { width: auto; }
  .assistant-download p { max-width: 48em; }
  .resource-main, .resource-rail { grid-column: auto; grid-row: auto; position: static; }
  .install-card { max-width: none; }
  .install-help br { display: none; }
  .breadcrumb > span { display: none; }
  .stats > div { padding: 20px 16px; gap: 12px; }
  .auth-layout { grid-template-columns: 1fr; max-width: 480px; margin: 8px auto 32px; }
  .auth-intro .display { font-size: 36px; }
  .auth-intro .display br { display: none; }
  .auth-intro .display::after { margin-top: 20px; }
  .auth-intro .lead, .auth-intro .pill-row { display: none; }
  .auth-card { max-width: none; }
  .footer-contact { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; margin-left: 0; }
  .section-heading, .management-note, .recycle-row { flex-wrap: wrap; gap: 16px; }
  .table-hint { display: block; }
}
@media (max-width: 767px) {
  :root { --gutter: 24px; }
  html { scroll-padding-top: 72px; }
  .sidebar { position: static; width: 100%; padding: 20px 24px; overflow: visible; }
  .sidebar-head { width: 100%; }
  .brand-logo { padding: 6px 0; }
  .brand-logo img { width: 126px; }
  .brand { padding: 16px 0 0; margin: 0; border: 0; }
  body:not(.public-shell) .brand { margin: 0; padding-bottom: 0; }
  .sidebar-assistant { display: none; }
  .sidebar .navigation { flex: initial; overflow: visible; }
  .mobile-assistant { position: sticky; top: 0; z-index: 7; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px var(--gutter); border-bottom: 1px solid #455231; background: #20241b; color: #fff; font-size: 13px; }
  .mobile-assistant > .icon:first-child { color: var(--brand-green); }
  .mobile-assistant > span { margin-left: auto; color: #d0d0ce; font-size: 12px; }
  .mobile-assistant > .icon:last-child { width: 16px; height: 16px; }
  .mobile-assistant:hover { background: #2a3121; }
  .brand > span { font-size: 19px; }
  .brand small, .sidebar-footer { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #75787b; border-radius: 4px; background: #000; color: #fff; font-size: 13px; }
  .navigation { padding-top: 24px; }
  .js .navigation:not(.is-open) { display: none; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
  .sidebar nav:last-child { margin-bottom: 0; }
  .sidebar nav a { padding: 10px 12px; font-size: 13px; gap: 10px; }
  .sidebar nav .icon { width: 18px; height: 18px; }
  .nav-label { margin-left: 12px; margin-bottom: 8px; }
  .workspace { margin-left: 0; min-height: calc(100vh - 115px); }
  .topbar { min-height: 64px; padding-block: 8px; gap: 12px; }
  .breadcrumb { display: none; }
  .topbar-user { margin-left: auto; }
  .user-name { max-width: 130px; }
  .environment { padding-block: 8px; font-size: 11px; }
  main { padding-top: 28px; padding-bottom: 32px; }
  h1 { font-size: 30px; }
  h2 { font-size: 21px; }
  .page-heading { flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
  .page-heading p { font-size: 14px; }
  .page-heading .actions { justify-content: flex-start; }
  .resource-grid { grid-template-columns: minmax(0, 1fr); }
  .resource-card { min-height: 0; }
  .stats > div { padding: 20px 10px; gap: 8px; }
  .stat-icon { width: 20px; }
  .stat-icon .icon { width: 20px; height: 20px; }
  .stats strong { font-size: 26px; }
  .stats small { font-size: 12px; }
  .assistant-banner { padding: 24px 20px; gap: 20px; }
  .assistant-banner h2 { font-size: 22px; }
  .assistant-banner-actions { width: 100%; gap: 8px 20px; }
  .assistant-banner-actions > .primary { width: 100%; }
  .assistant-banner-link { width: 100%; justify-content: center; }
  .assistant-overview h2 { font-size: 24px; }
  .assistant-download > .primary { width: 100%; }
  .catalog-tools { flex-direction: column; align-items: stretch; gap: 12px; }
  .search-form { width: 100%; max-width: none; }
  .result-count { justify-content: space-between; }
  .result-count > span { border: 0; padding: 0; }
  .tabs { gap: 12px; }
  .tabs a { padding: 10px 2px; font-size: 13px; }
  .card-bottom { padding: 16px 0; }
  .release-heading time { margin-left: 0; }
  .filter-form { grid-template-columns: 1fr; gap: 20px; }
  .filter-form input { font-size: 16px !important; }
  .filter-actions { grid-column: auto; }
  .filter-actions .primary { min-width: 112px; }
  .table-wrap table { min-width: 580px; }
  .page-footer { padding-block: 28px; gap: 20px 24px; }
  .copyright { font-size: 12px; }
  .footer-contact { flex-direction: column; gap: 6px; font-size: 13px; }
  .toast { left: 50%; bottom: 20px; font-size: 13px; }
  .dialog { padding: 24px; }
  .dialog-actions { gap: 12px; }
  .dialog-actions button { flex: 1; }
  .auth-layout { margin: 0 auto 8px; gap: 20px; }
  .auth-intro .display { font-size: 32px; margin: 12px 0; }
  .auth-intro .display::after { display: none; }
  .auth-card { margin-top: 8px; }
  .public-shell .sidebar { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .public-shell .sidebar-head { width: auto; }
  .public-shell .brand { padding: 0; }
  .public-shell .brand > span { font-size: 16px; }
  .connection-step { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; padding: 20px; align-items: center; }
  .platform b { font-size: 18px; margin: 0; }
  .platform small { grid-column: 2; }
  .auth-code { font-size: 26px; letter-spacing: 3px; }
  dl { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .error-page { padding: 40px 24px; }
}
@media (max-width: 379px) {
  :root { --gutter: 20px; }
  .sidebar { padding-inline: 20px; }
  .public-shell .brand-logo img { width: 100px; }
  .public-shell .brand > span { font-size: 15px; }
  .public-shell .sidebar { gap: 16px; }
  .stat-icon { display: none; }
  .stats > div { justify-content: center; }
  .panel { padding: 20px; }
  .tabs { gap: 10px; }
  .tabs a { font-size: 12px; }
  .pagination { gap: 12px; }
  .pagination .secondary, .pagination-disabled { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Keep update records readable when the table scrolls on narrow screens. */
.table-wrap .update-table { min-width: 860px; }
.update-table .member-cell { white-space: nowrap; }
.update-table .device-cell { min-width: 120px; }
.update-table .resource-cell { min-width: 180px; max-width: 250px; }

/* Resource documentation: quiet reading surfaces, private archive contents. */
.resource-heading { align-items: flex-start; }
.resource-heading { margin-bottom: 24px; }
main:has(.resource-heading) { padding-top: 24px; }
main:has(.resource-heading) > .back { min-height: 28px; margin-bottom: 12px; }
.resource-heading .actions { flex-shrink: 0; gap: 12px; }
.resource-mobile-action { display: none; }
.resource-summary { margin: 0 0 16px; }
.resource-summary .prose { color: #292b2c; }
.resource-summary details { margin-top: 8px; }
.resource-summary summary { color: var(--action); font-size: 13px; cursor: pointer; }
.resource-summary details .prose { margin-top: 16px; }
.resource-tabs { margin-bottom: 16px; gap: 28px; }
.resource-tabs a { display: flex; align-items: center; gap: 8px; }
.resource-tabs a span { padding: 0 6px; border-radius: 3px; background: #e7e9e8; font-size: 11px; font-weight: 400; }
#resource-content { scroll-margin-top: 8px; }
.version-help p { margin: 12px 0 0; }
.resource-rail { position: static; align-self: stretch; }
.document-outline { position: sticky; top: 24px; padding: 0 8px 16px; max-height: calc(100vh - 48px); overflow-y: auto; }
.document-outline h2 { font-size: 12px; color: var(--muted); margin: 0 0 12px; font-weight: 400; }
.document-outline a { display: block; padding: 6px 12px; border-left: 1px solid #d0d0ce; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.document-outline a.subheading { padding-left: 24px; color: var(--muted); }
.document-outline a:hover { color: var(--action); border-left-color: var(--brand-green); background: #eef0ed; }
.content-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 12px; }
.version-picker { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.version-picker label { margin: 0; font-size: 13px; font-weight: 400; white-space: nowrap; }
.version-picker select { width: auto; min-width: 135px; max-width: 220px; min-height: 40px; padding: 6px 28px 6px 10px; font-size: 13px; background: #fff; }
.compact { min-height: 40px; padding: 7px 14px; font-size: 13px; }
.historical-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; margin-bottom: 20px; border-left: 3px solid var(--action); background: #edf6fa; font-size: 13px; }
.document-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.document-choices a { display: block; padding: 5px 12px; border: 1px solid transparent; border-radius: 4px; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.document-choices a.selected { color: var(--green); background: #fff; border-color: #b1cbb9; }
.document-choices a:hover { color: var(--action); }
.package-panel { padding: 0; overflow: hidden; }
.file-preview { min-width: 0; }
.document-header { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; border-bottom: 1px solid var(--line); }
.document-file { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.document-file > div { min-width: 0; }
.document-file h2 { font: 600 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; margin: 0 0 3px; overflow-wrap: anywhere; }
.document-file-icon { color: var(--muted); display: flex; align-items: center; }
.source-switch { display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: #f5f6f6; }
.source-switch a { display: block; padding: 4px 12px; border-radius: 3px; font-size: 12px; color: var(--muted); }
.source-switch a.selected { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #00000012; }
.document-body { padding: 28px 32px 32px; }
.document-attributes { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.document-attributes summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.document-attributes pre, .source-code, .markdown-body pre { max-width: 100%; overflow-x: auto; margin: 20px 0; padding: 16px 20px; background: #f5f6f6; border: 1px solid var(--line); border-radius: 5px; font: 13px/1.85 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 4; }
.document-attributes pre code, .source-code code, .markdown-body pre code { font: inherit; padding: 0; background: transparent; border: 0; border-radius: 0; }
.source-body { padding: 0; }
.source-code { margin: 0; padding: 24px; border: 0; border-radius: 0; min-height: 160px; max-height: 800px; }
.markdown-body { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body :is(h2,h3,h4,h5,h6) { line-height: 1.5; font-weight: 600; margin: 32px 0 16px; scroll-margin-top: 32px; }
.markdown-body h2 { font-size: 25px; letter-spacing: -.3px; }
.markdown-body h3 { font-size: 19px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.markdown-body h4 { font-size: 16px; }
.markdown-body h5, .markdown-body h6 { font-size: 15px; }
.markdown-body p { margin: 0 0 18px; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; margin: 16px 0 20px; }
.markdown-body li { margin: 5px 0; padding-left: 3px; }
.markdown-body li > p { margin-bottom: 8px; }
.markdown-body li > ul, .markdown-body li > ol { margin: 4px 0 8px; }
.markdown-body a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.markdown-body a:hover { color: var(--action-hover); }
.markdown-body blockquote { margin: 24px 0; border-left: 3px solid var(--brand-green); padding: 12px 20px; background: #f5f8f1; color: #3c4435; }
.markdown-body blockquote > :last-child { margin-bottom: 0; }
.markdown-body code { font: .86em/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 2px 5px; border: 1px solid var(--line); }
.document-table { overflow-x: auto; max-width: 100%; margin: 24px 0; }
.document-table table { width: 100%; font-size: 13px; }
.document-table th, .document-table td { padding: 12px 16px; min-width: 110px; border: 1px solid var(--line); }
.document-table th { background: #f5f6f6; font-weight: 600; }
.markdown-body .unavailable-link { text-decoration: underline dotted; color: var(--muted); }
.document-image-link { font-size: 13px; }
.document-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 14px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); background: #fafbfa; }
.content-empty { text-align: center; padding: 56px 24px; }
.content-empty > .icon { width: 32px; height: 32px; margin-bottom: 16px; color: var(--control); }
.content-empty h3 { font-size: 17px; }
.content-empty p { font-size: 14px; margin-bottom: 24px; }
.file-browser { display: grid; grid-template-columns: minmax(175px, 30%) minmax(0, 1fr); }
.file-tree { background: #fafbfa; border-right: 1px solid var(--line); padding: 20px 12px; min-width: 0; }
.file-tree-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; margin-bottom: 14px; }
.file-tree-heading h2 { font-size: 13px; font-weight: 600; margin: 0; }
.file-search { display: flex; align-items: center; margin-bottom: 16px; position: relative; }
.file-search input { min-width: 0; padding: 8px 38px 8px 10px; font-size: 12px; min-height: 40px; background: #fff; }
.file-search button { position: absolute; right: 2px; height: 36px; min-width: 34px; border: 0; padding: 0; background: transparent; color: var(--muted); }
.file-search button .icon { width: 16px; height: 16px; }
.file-breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 11px; line-height: 1.6; margin: 0 4px 16px; overflow-wrap: anywhere; }
.file-breadcrumbs a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.file-list { margin: 0; padding: 0; list-style: none; max-height: 600px; overflow-y: auto; }
.file-list a { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 2px 8px; padding: 10px 8px; border-radius: 4px; border: 1px solid transparent; font-size: 12px; line-height: 1.7; }
.file-list a span { overflow-wrap: anywhere; }
.file-list a small { grid-column: 2; color: var(--muted); font-size: 10px; }
.file-list .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--muted); }
.file-list a:hover { background: #edf0eb; }
.file-list a.selected { background: #eff6e6; border-color: #d4e1c0; color: var(--green); }
.file-list a.selected .icon { color: var(--green); }
.file-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 4px 0; font-size: 12px; border-top: 1px solid var(--line); }
.file-no-results { padding: 12px 4px; }
.file-browser .document-body { padding: 24px; }
@media (max-width: 1199px) and (min-width: 1024px) {
  .file-browser { grid-template-columns: minmax(0, 1fr); }
  .file-tree { border: 0; border-bottom: 1px solid var(--line); padding: 20px 24px; }
  .file-list { max-height: 210px; }
  .file-list a { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .file-list a small { grid-column: 3; }
}
@media (max-width: 1023px) {
  .document-outline { display: none; }
  .resource-heading .actions { flex-shrink: 1; }
  .resource-main { grid-row: 1; }
  .resource-rail { grid-row: 2; }
  .resource-mobile-action { display: inline-flex; }
}
@media (max-width: 767px) {
  .resource-tabs { gap: 20px; }
  .resource-tabs a { gap: 4px; }
  .document-body, .file-browser .document-body { padding: 24px 20px; }
  .document-header, .document-footer { padding-inline: 20px; }
  .document-header { align-items: flex-start; }
  .document-file { flex-basis: 100%; }
  .file-browser { grid-template-columns: minmax(0, 1fr); }
  .file-tree { border: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .file-list { max-height: 220px; }
  .file-list a { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .file-list a small { grid-column: 3; }
  .file-search input { font-size: 16px; }
  .markdown-body h2 { font-size: 23px; }
  .markdown-body h3 { font-size: 18px; }
  .document-table::before { content: '宽表可左右滚动查看'; display: block; margin-bottom: 8px; font-size: 11px; color: var(--muted); }
  .markdown-body pre, .source-code { padding: 16px; font-size: 12px; }
  .version-picker select { min-width: 0; max-width: 165px; }
  .version-picker { flex-wrap: wrap; }
}
@media (max-width: 379px) {
  .resource-tabs { gap: 14px; }
  .resource-tabs a span { display: none; }
}

/* Project reports: source evidence and management decisions remain legible. */
.distribution-note { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:-8px 0 28px; color:var(--muted); font-size:13px; }
.card-distribution { margin: 0 0 12px; }
.badge.pending { background:#fff2d7; color:#725000; }
.report-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.report-stats > div { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; padding:20px 24px; background:white; border:1px solid var(--line); border-top:3px solid var(--brand-green); border-radius:var(--radius); }
.report-stats span { width:100%; color:var(--muted); font-size:13px; }
.report-stats strong { font-size:30px; font-weight:400; line-height:1; }
.report-stats small { color:var(--muted); font-size:12px; }
.report-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.report-toolbar p { margin:0; }
.report-toolbar .icon { width:16px; height:16px; margin-right:8px; }
.reports-table { min-width:720px; width:100%; }
.report-title-cell { width:29%; }
.report-summary-cell { width:39%; }
.report-summary-cell p { margin:0 0 8px; line-height:1.75; }
.report-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.report-layout > * { min-width:0; }
.report-rail .panel { padding:24px; }
.report-rail h2 { font-size:20px; }
.report-facts { margin:24px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; }
.report-facts div { border-bottom:1px solid var(--line); padding-bottom:12px; min-width:0; }
.report-facts dt { color:var(--muted); font-size:12px; margin-bottom:4px; }
.report-facts dd { margin:0; overflow-wrap:anywhere; font-size:14px; }
.finding { border-top:1px solid var(--line); }
.finding:last-child { border-bottom:1px solid var(--line); }
.finding > summary { display:flex; align-items:center; gap:12px; padding:20px 0; cursor:pointer; list-style:none; }
.finding > summary::before { content:'+'; flex-shrink:0; width:16px; color:var(--action); font-size:20px; }
.finding[open] > summary::before { content:'−'; }
.finding > summary::-webkit-details-marker { display:none; }
.finding-id { font-size:12px; color:var(--muted); max-width:80px; overflow-wrap:anywhere; }
.finding-title { flex:1; font-weight:600; overflow-wrap:anywhere; }
.finding-content { padding:0 8px 24px 28px; }
.finding-content h3 { font-size:14px; margin:20px 0 8px; }
.finding-content p { font-size:14px; color:var(--muted); }
.finding-manage { padding:20px; background:var(--canvas); border-radius:6px; margin-top:24px; }
.finding-manage > h3:first-child { margin-top:0; }
.report-source { margin-top:24px; }
.report-source summary { cursor:pointer; color:var(--action); font-size:13px; }
.report-source pre { background:var(--canvas); padding:20px; max-height:480px; overflow:auto; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.report-management-note { margin:16px 0; overflow-wrap:anywhere; }
.progress-block + .progress-block { border-top:1px solid var(--line); margin-top:24px; padding-top:24px; }
@media (max-width:1150px) { .report-layout { grid-template-columns:minmax(0,1fr); } .report-rail .panel { padding:32px; } }
@media (max-width:620px) { .report-stats { gap:8px; } .report-stats > div { padding:16px 12px; gap:6px; } .report-stats strong { font-size:26px; } .report-facts { grid-template-columns:1fr; } .finding > summary { flex-wrap:wrap; } .finding-title { flex-basis:60%; } .report-rail .panel { padding:24px; } }

.report-amendments { margin: 0 0 24px; border-top:1px solid var(--line); padding-top:16px; }
.report-amendments > summary { color:var(--action); font-size:14px; cursor:pointer; min-height:44px; }

/* Learning centre: editorial hierarchy for self-service and facilitated training. */
.footer-learning { display:flex; gap:20px; color:var(--action); }
.footer-learning a:hover { text-decoration:underline; text-underline-offset:4px; }
.guide-page { --reading-line:#d9dedc; }
.guide-hero { padding:12px 0 36px; margin-bottom:36px; border-bottom:1px solid var(--reading-line); }
.guide-hero h1 { max-width:22em; font-size:42px; line-height:1.35; margin-bottom:24px; text-wrap:balance; }
.guide-lead { max-width:53em; color:#36393b; font-size:18px; line-height:1.9; }
.guide-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin-top:24px; }
.guide-evolving { margin:24px 0 0; max-width:56em; color:var(--muted); font-size:14px; }
.guide-layout { display:grid; grid-template-columns:176px minmax(0,1fr); gap:40px; align-items:start; }
.guide-toc { position:sticky; top:24px; max-height:calc(100vh - 48px); overflow:auto; font-size:13px; border-left:1px solid #c5cbc7; padding-left:16px; }
.guide-toc strong { display:block; margin:0 0 12px; color:var(--muted); font-size:12px; }
.guide-toc a { display:block; padding:8px 0; line-height:1.6; min-height:36px; }
.guide-toc a:hover { color:var(--action); text-decoration:underline; text-underline-offset:4px; }
.guide-toc .guide-toc-sub { padding-left:12px; font-size:12px; color:var(--muted); }
.guide-content { min-width:0; font-size:16px; line-height:1.85; }
.guide-content a:not(.primary):not(.secondary):not(.link) { color:var(--action); text-decoration:underline; text-underline-offset:4px; }
.guide-content p, .guide-content li, .guide-content td, .guide-content th { overflow-wrap:anywhere; }
.guide-section { margin:0 0 48px; scroll-margin-top:24px; }
.guide-section > h2 { font-size:28px; font-weight:400; margin-bottom:20px; }
.guide-section > h3 { margin-top:32px; font-size:19px; }
.guide-section > p { max-width:55em; }
.guide-section > :last-child { margin-bottom:0; }
.guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:24px 0; }
.guide-card { padding:24px; background:#fff; border:1px solid var(--line); border-radius:6px; min-width:0; }
.guide-card h3 { font-size:18px; margin:0 0 12px; }
.guide-card > :last-child { margin-bottom:0; }
.guide-card-icon { display:block; color:var(--green); margin-bottom:16px; }
.guide-card-icon .icon { width:24px; height:24px; }
.guide-callout { margin:24px 0; padding:24px 28px; background:#edf4e6; border-left:3px solid var(--brand-green); border-radius:0 6px 6px 0; }
.guide-callout h3 { margin-top:0; }
.guide-callout > :last-child { margin-bottom:0; }
.guide-callout p { max-width:54em; }
.guide-steps { padding-left:24px; margin:24px 0; }
.guide-steps > li { padding-left:8px; margin:0 0 20px; }
.guide-steps > li::marker { color:var(--green); font-weight:600; }
.guide-steps h3, .guide-steps h4 { margin:0 0 8px; }
.guide-steps p { margin:8px 0; }
.guide-table { overflow:auto; margin:24px 0; border:1px solid var(--line); border-radius:6px; background:#fff; }
.guide-table table { width:100%; border-collapse:collapse; font-size:14px; line-height:1.8; }
.guide-table th, .guide-table td { vertical-align:top; text-align:left; padding:16px; border-bottom:1px solid var(--line); }
.guide-table thead th { color:#25282a; background:#edf0ee; font-size:13px; font-weight:600; }
.guide-table tbody th { font-weight:600; min-width:120px; width:23%; }
.guide-table tbody tr:last-child > * { border-bottom:0; }
.guide-prompt { margin:20px 0; padding:20px; background:#f0f3f1; border-radius:4px; }
.guide-prompt textarea { font:14px/1.85 var(--font); background:#fff; }
.guide-prompt label, .guide-prompt h4 { margin-top:0; }
.guide-prompt .form-actions { margin-top:12px; }
.guide-prompt > button { margin-top:12px; }
.guide-quote { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; color:#36393b; font-size:15px; line-height:1.85; }
.guide-card .guide-quote { margin-top:16px; border-top:1px solid var(--line); padding-top:16px; font-size:14px; }
.guide-section details:not(.capability-item) { padding:20px 0; border-bottom:1px solid var(--reading-line); }
.guide-section details:not(.capability-item) > summary { cursor:pointer; color:var(--ink); font-weight:600; min-height:32px; }
.guide-section details:not(.capability-item)[open] > summary { margin-bottom:16px; }

/* Project guide: a short entry point with progressively disclosed support detail. */
.guide-feature { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px; margin:0 0 40px; border:1px solid var(--line); border-left:3px solid var(--brand-green); border-radius:6px; background:#fff; }
.guide-feature h2 { font-size:22px; font-weight:400; margin-bottom:8px; }
.guide-feature p { max-width:48em; margin:0; color:var(--muted); }
.guide-feature > a { flex-shrink:0; }
.guide-back { display:inline-block; color:var(--action); margin:0 0 24px; padding:4px 0; }
.guide-back:hover, .guide-evolving a { text-decoration:underline; text-underline-offset:4px; }
.valuation-guide .guide-hero > p { max-width:52em; }
.valuation-paths { padding:16px 20px; margin:16px 0; border:1px solid var(--line); border-radius:4px; background:#fff; font-size:14px; }
.valuation-paths strong, .valuation-paths code { display:block; }
.valuation-paths code { white-space:normal; overflow-wrap:anywhere; }
.valuation-paths p:last-child { margin-bottom:0; }
.valuation-prompt-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.valuation-prompt-heading label { margin:0; }
.valuation-prompt-heading button { flex-shrink:0; }
.valuation-examples { margin:24px 0; border-top:1px solid var(--line); }
.valuation-examples > div { display:grid; grid-template-columns:160px minmax(0,1fr); gap:24px; padding:20px 0; border-bottom:1px solid var(--line); }
.valuation-examples h3 { font-size:16px; margin:0; }
.valuation-examples p { margin:0; }
.valuation-workflow { counter-reset:valuation-step; list-style:none; padding:0; margin:28px 0; }
.valuation-workflow > li { counter-increment:valuation-step; display:grid; grid-template-columns:32px minmax(0,1fr); gap:20px; padding:24px 0; border-bottom:1px solid var(--line); }
.valuation-workflow > li::before { content:counter(valuation-step, decimal-leading-zero); color:var(--green); font-size:15px; font-weight:600; padding-top:3px; }
.valuation-workflow h3 { font-size:18px; margin-bottom:8px; }
.valuation-workflow p { margin:0 0 8px; }
.valuation-workflow .valuation-involvement { color:var(--muted); font-size:14px; margin:0; }
.valuation-tools { display:block; margin:0; }
.valuation-tools > div { padding:16px 0; border-bottom:1px solid var(--line); }
.valuation-tools dt { font-weight:600; }
.valuation-tools dd { margin:8px 0 0; font-size:14px; overflow-wrap:anywhere; }
.valuation-tools code { white-space:normal; }
@media (max-width:1100px) {
  .guide-feature { align-items:flex-start; flex-direction:column; }
  .valuation-examples > div { grid-template-columns:1fr; gap:8px; }
}
@media (max-width:600px) {
  .guide-feature { padding:20px; }
  .guide-feature > a { width:100%; }
  .valuation-prompt-heading button { width:100%; }
  .valuation-workflow > li { gap:12px; grid-template-columns:28px minmax(0,1fr); }
  .valuation-paths { padding:12px; }
}
.ecosystem { padding:32px; margin:0 0 48px; background:#fff; border:1px solid var(--line); border-radius:8px; }
.ecosystem h2 { font-weight:400; font-size:26px; }
.ecosystem-flow { list-style:none; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:0; margin:28px 0; gap:24px; }
.ecosystem-flow li { position:relative; min-width:0; padding-top:18px; border-top:2px solid var(--brand-green); }
.ecosystem-flow li:not(:last-child)::after { content:'→'; position:absolute; top:-16px; right:-20px; color:#66822c; background:#fff; padding:0 2px; }
.ecosystem-flow span { display:block; margin-bottom:12px; color:var(--green); font-size:13px; font-variant-numeric:tabular-nums; }
.ecosystem-flow h3 { font-size:16px; margin-bottom:10px; }
.ecosystem-flow p { font-size:14px; color:var(--muted); margin:0; }
.ecosystem-foundation { padding:20px 24px; border-left:3px solid var(--green); background:#f1f4ef; display:flex; gap:24px; align-items:center; }
.ecosystem-foundation > span { display:flex; align-items:center; gap:10px; white-space:nowrap; font-weight:600; font-size:14px; }
.ecosystem-foundation p { margin:0; font-size:14px; color:#36393b; }
.ecosystem > .fine { margin:16px 0 0; }
.capability-counts { display:flex; flex-wrap:wrap; gap:12px 28px; padding:24px 0; border-top:1px solid var(--reading-line); border-bottom:1px solid var(--reading-line); margin:24px 0 12px; font-size:13px; color:var(--muted); }
.capability-counts strong { margin-right:6px; font-size:24px; font-weight:400; color:var(--ink); }
.capability-search { display:grid; grid-template-columns:minmax(0,1fr) 150px auto; gap:16px; align-items:end; margin:24px 0 0; }
.capability-search > div { min-width:0; }
.capability-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:8px 0 24px; color:var(--muted); font-size:13px; }
.capability-layer { margin:32px 0 40px; scroll-margin-top:24px; }
.capability-layer-heading { display:flex; gap:16px; align-items:flex-start; padding:0 0 20px; }
.capability-layer-number { color:var(--green); font-size:13px; font-variant-numeric:tabular-nums; padding-top:6px; }
.capability-layer-heading > div { flex:1; min-width:0; }
.capability-layer-heading h3 { margin-bottom:8px; font-size:22px; font-weight:400; }
.capability-layer-heading p { margin:0; color:var(--muted); font-size:14px; }
.capability-layer-heading .badge { margin-top:5px; }
.capability-item { border:1px solid var(--reading-line); border-radius:6px; margin:0 0 12px; background:#fff; scroll-margin-top:24px; }
.capability-item > summary { list-style:none; padding:22px 24px; display:flex; align-items:flex-start; gap:20px; cursor:pointer; border-radius:6px; }
.capability-item > summary::-webkit-details-marker { display:none; }
.capability-item > summary:hover { background:#fafcf8; }
.capability-summary { display:block; min-width:0; flex:1; }
.capability-item-meta { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 10px; line-height:1.5; }
.capability-version { font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.capability-summary > strong { display:block; font-size:18px; line-height:1.6; margin-bottom:8px; }
.capability-description { display:block; color:var(--muted); font-size:14px; line-height:1.8; }
.capability-expand-mark { color:var(--action); font-size:24px; line-height:1.2; font-weight:400; }
.capability-item[open] .capability-expand-mark { font-size:0; }
.capability-item[open] .capability-expand-mark::after { content:'−'; font-size:24px; }
.capability-body { padding:0 24px 24px; font-size:14px; }
.capability-identifier { padding-top:20px; border-top:1px solid var(--line); color:var(--muted); }
.capability-identifier code { overflow-wrap:anywhere; }
.capability-io { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.capability-io > div { min-width:0; }
.capability-body h4 { margin:0 0 8px; font-size:14px; }
.capability-body ul { padding-left:18px; margin:0; }
.capability-body li + li { margin-top:8px; }
.capability-prompt-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:8px; }
.capability-prompt-heading h4 { margin:0; }
.capability-prompt-heading .link { min-height:32px; padding:2px 0; flex-shrink:0; }
.capability-dependencies, .capability-notes { font-size:13px; color:var(--muted); }
.capability-notes h4 { color:#36393b; }
.capability-card-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; margin-top:20px; border-top:1px solid var(--line); padding-top:12px; }
.capability-card-footer time { color:var(--muted); font-size:12px; }
@media (max-width:1199px) {
  .guide-layout { grid-template-columns:148px minmax(0,1fr); gap:24px; }
  .guide-grid { grid-template-columns:1fr; }
  .guide-hero h1 { font-size:36px; }
  .ecosystem-flow { gap:16px; }
  .ecosystem-flow li:not(:last-child)::after { right:-16px; }
  .ecosystem { padding:24px; }
  .capability-search { grid-template-columns:minmax(0,1fr) 140px; }
  .capability-search > button { grid-column:1 / -1; justify-self:start; }
}
@media (max-width:1023px) {
  .guide-layout { grid-template-columns:1fr; gap:28px; }
  .guide-toc { position:static; display:flex; flex-wrap:wrap; gap:4px 20px; max-height:none; padding:16px 20px; background:#fff; border:1px solid var(--line); border-left:3px solid var(--brand-green); }
  .guide-toc strong { flex-basis:100%; margin:0; }
  .guide-toc a { padding:4px 0; }
  .guide-toc .guide-toc-sub { display:none; }
  .ecosystem-flow { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
  .ecosystem-flow li:not(:last-child)::after { display:none; }
  .ecosystem-foundation { display:block; }
  .ecosystem-foundation > span { margin-bottom:8px; }
}
@media (max-width:767px) {
  .guide-hero { padding-top:0; margin-bottom:28px; padding-bottom:28px; }
  .guide-hero h1 { font-size:30px; }
  .guide-lead { font-size:16px; }
  .guide-evolving { font-size:13px; }
  .guide-actions { gap:12px; }
  .guide-actions > .primary, .guide-actions > .secondary { flex:1 1 180px; }
  .guide-section { margin-bottom:36px; scroll-margin-top:8px; }
  .guide-section > h2 { font-size:25px; }
  .guide-card, .guide-callout { padding:20px; }
  .guide-content { font-size:15px; }
  .guide-table table { min-width:600px; }
  .guide-table::before { content:'表格可左右滑动查看'; display:block; padding:10px 16px; font-size:12px; color:var(--muted); }
  .guide-steps { padding-left:20px; }
  .guide-steps > li { padding-left:4px; }
  .guide-prompt { padding:16px; }
  .guide-prompt textarea { font-size:16px; }
  .ecosystem { padding:24px 20px; margin-bottom:32px; }
  .ecosystem .section-heading { display:block; }
  .ecosystem-flow { grid-template-columns:1fr; gap:20px; }
  .ecosystem-flow li { padding:0 0 0 40px; border:0; }
  .ecosystem-flow span { position:absolute; left:0; top:0; margin:0; }
  .ecosystem-flow h3 { margin-bottom:6px; }
  .ecosystem-foundation { padding:16px; }
  .capability-counts { gap:10px 24px; }
  .capability-search { grid-template-columns:1fr; }
  .capability-search input, .capability-search select { font-size:16px !important; }
  .capability-layer, .capability-item { scroll-margin-top:8px; }
  .capability-layer-heading { gap:10px; }
  .capability-layer-heading h3 { font-size:20px; }
  .capability-item > summary { padding:20px 16px; gap:12px; }
  .capability-body { padding:0 16px 20px; }
  .capability-io { grid-template-columns:1fr; gap:20px; }
  .capability-item-meta { gap:8px; }
  .capability-summary > strong { font-size:17px; }
  .footer-learning { width:100%; }
}
