/* Shared typography and spacing: local system fonts, no remote font requests. */
:root {
  --font-ui: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --muted: #5f7268;
  --line: #dfe7e2;
  --bg: #f5f7f4;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid #458765; outline-offset: 4px; }
input:focus, textarea:focus, select:focus { border-color: #568d6d; outline: 2px solid #d8e9de; outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #7c8982; }
h1 { font-size: 30px; letter-spacing: -.02em; font-weight: 600; line-height: 1.45; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.5; }
h3 { font-weight: 600; line-height: 1.6; }
.content { max-width: 1440px; padding: 32px clamp(24px, 3.2vw, 48px) 64px; }
.topbar { padding-inline: clamp(24px, 3.2vw, 52px); }
.page-heading { margin-bottom: 26px; gap: 24px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading h1 { overflow-wrap: anywhere; text-wrap: pretty; }
.page-heading .subtitle { max-width: 76ch; overflow-wrap: anywhere; }
.subtitle, .project-card p, .step p, .framework p, .empty p { font-size: 15px; line-height: 1.85; }
.btn { min-height: 42px; font-size: 14px; }
.btn.small { min-height: 36px; font-size: 13px; }
.icon-btn { width: 38px; height: 38px; }
.stat small, .field-help, .evidence-meta, .tiny, .card-footer, .milestone p, .metric small, .activity time, .connection-note p, .user small { font-size: 13px; }
.list-row p, .doc-card p, .activity, .section-title p { font-size: 14px; }
.stat-label, label, .list-row strong, .tab { font-size: 15px; }
th { font-size: 13px; letter-spacing: 0; }
td { font-size: 15px; line-height: 1.8; padding-block: 20px; }
.prose { font-family: var(--font-ui); font-size: 15px; line-height: 1.95; }
.source-text { font-size: 15px; }
.sidebar { overflow-y: auto; scrollbar-width: thin; }
.sidebar .brand { gap: 8px; }
.sidebar .brand small { font-size: 10px; letter-spacing: .8px; margin-left: 0; }
.side-bottom { padding-top: 24px; }
.connection-note { margin-top: 0; }
.user > div { min-width: 0; }
.user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user .avatar { flex-shrink: 0; }
.signout-btn { display: flex; align-items: center; gap: 7px; padding: 7px 10px; font-size: 13px; color: #5c7164; border: 1px solid var(--line); border-radius: 7px; background: white; white-space: nowrap; }
.signout-btn:hover { background: #f1f6f2; border-color: #b4c9bb; }
.signout-btn svg { width: 16px; }
.crumb { min-width: 0; }
.crumb > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { flex-shrink: 0; gap: 12px; }
.grid > *, .two-col > *, .three-col > *, .field-grid > * { min-width: 0; }
.project-card .card-body { padding: 28px; }
.project-card h3 { font-size: 20px; }
.card-footer { gap: 16px; flex-wrap: wrap; }
.panel { padding: 24px; }
.modal-body { line-height: 1.75; }
.modal-head h2 { font-size: 20px; }

/* Login: a quiet editorial cover beside a focused, accessible form. */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; padding: 20px; background: #fafbf8; gap: 20px; }
.auth-story { display: flex; flex-direction: column; position: relative; isolation: isolate; overflow: hidden; padding: 38px 48px 30px; border-radius: 18px; color: #f1f5e9; background: #133f33; }
.auth-story::before { content: ""; z-index: -1; position: absolute; width: 640px; height: 640px; border: 1px solid #c4dab31a; border-radius: 50%; right: -330px; top: 80px; box-shadow: 0 0 0 85px #c4dab307, 0 0 0 170px #c4dab306; }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; color: #f4f6ee; width: fit-content; }
.auth-brand img { width: 36px; height: 36px; }
.auth-brand > span:first-of-type { font-family: "Segoe UI", sans-serif; font-weight: 650; font-size: 32px; line-height: 1; letter-spacing: -1px; }
.auth-brand-label { margin: 7px 0 0 8px; padding-left: 18px; border-left: 1px solid #acc8ae50; font-size: 11px; letter-spacing: 2.6px; color: #acc6b6; }
.auth-story-content { margin: auto 0; padding-block: 65px 35px; }
.auth-eyebrow { display: flex; align-items: center; gap: 10px; color: #b7cbb6; font-size: 11px; font-weight: 500; letter-spacing: 2.2px; margin: 0 0 24px; }
.auth-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #cde3a8; }
.auth-story h1 { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.5; letter-spacing: .02em; font-weight: 500; margin: 0 0 22px; }
.story-period { color: #cde3a8; }
.auth-story-description { color: #b3cabe; font-size: 16px; line-height: 2; margin: 0; }
.auth-story-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #b2c8b326; padding-top: 23px; font-size: 12px; letter-spacing: .5px; color: #a1bdae; }
.auth-story-footer > span:last-child { font-size: 10px; letter-spacing: 2px; }
.research-visual { height: 256px; width: 100%; max-width: 480px; margin: 30px 0 0; position: relative; }
.research-connections { position: absolute; width: 100%; height: 100%; inset: 0; overflow: visible; }
.research-note { position: absolute; top: 23px; left: 0; width: 53%; max-width: 243px; padding: 20px; border: 1px solid #edf3d54a; background: #f1f3e6; color: #325a41; border-radius: 11px; transform: rotate(-3deg); box-shadow: 0 20px 50px #04221933; }
.note-caption { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.note-icon svg { width: 16px; height: 16px; }
.note-index { margin-left: auto; font-size: 10px; color: #82977f; }
.note-line { width: 82%; height: 4px; border-radius: 3px; background: #cbd6c5; margin: 10px 0; }
.note-line.long { width: 96%; }
.note-line.short { width: 60%; }
.note-highlight { width: 89%; height: 12px; border-top: 4px solid #d0dfa9; border-bottom: 4px solid #d0dfa9; margin: 10px 0; }
.note-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: #637c60; border-top: 1px solid #d6dfcd; margin-top: 18px; padding-top: 12px; }
.note-bottom svg { width: 14px; height: 14px; }
.research-question { position: absolute; top: 33px; right: 0; display: flex; align-items: center; gap: 9px; background: #244f40; border: 1px solid #74917870; padding: 10px 15px; border-radius: 30px; color: #d2e0c9; font-size: 12px; }
.question-dot { width: 6px; height: 6px; border-radius: 50%; background: #cde3a8; }
.research-outcome { display: flex; align-items: center; gap: 12px; position: absolute; bottom: 28px; right: 0; border-radius: 12px; border: 1px solid #afc8a847; padding: 17px 19px; background: #285744; box-shadow: 0 15px 35px #03261d33; transform: rotate(3deg); }
.outcome-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #d2e4b4; color: #315741; }
.outcome-icon svg { width: 17px; height: 17px; }
.research-outcome strong { display: block; font-size: 13px; color: #e3ecd9; font-weight: 500; }
.research-outcome span { display: block; font-size: 11px; color: #b3cbb4; margin-top: 4px; }
.auth-entry { display: flex; flex-direction: column; min-width: 0; padding: 22px 30px 8px; }
.auth-entry-top { display: flex; justify-content: flex-end; }
.workspace-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.5; color: #63756a; padding: 7px 11px; border: 1px solid #e0e7dc; border-radius: 6px; }
.workspace-pill i { width: 5px; height: 5px; border-radius: 50%; background: #63835e; }
.auth-form-wrap { width: 100%; max-width: 390px; margin: auto; padding-block: 28px; }
.auth-kicker { font-size: 10px; color: #69806b; letter-spacing: 2px; font-weight: 600; margin: 0 0 14px; }
.auth-heading { margin-bottom: 31px; }
.auth-heading h2 { font-size: 30px; line-height: 1.5; font-weight: 600; letter-spacing: 0; margin: 0 0 10px; }
.auth-heading > p:last-child { font-size: 14px; line-height: 1.9; color: #738076; margin: 0; }
.auth-field { margin-bottom: 20px; }
.auth-field label { font-size: 14px; font-weight: 500; margin: 0 0 8px; color: #354c3f; }
.auth-input { position: relative; }
.auth-input > svg { position: absolute; top: 16px; left: 15px; width: 17px; height: 17px; color: #8b9a8c; pointer-events: none; }
.auth-input input { height: 50px; padding: 12px 15px; background: #fff; border: 1px solid #dce3d9; border-radius: 8px; font-size: 15px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.auth-input > svg + input { padding-left: 43px; }
.auth-input.has-toggle input { padding-right: 48px; }
.auth-input input:focus { border-color: #538262; outline: 0; box-shadow: 0 0 0 3px #56865f17; }
.auth-input input::placeholder { color: #9aa398; font-size: 14px; }
.auth-input input:user-invalid { border-color: #b77762; }
.password-toggle { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; color: #889587; border-radius: 5px; }
.password-toggle:hover { background: #f0f4ed; color: #3a6244; }
.password-toggle svg { width: 18px; height: 18px; }
.auth-hint { margin: 6px 0 0; font-size: 12px; color: #7a867b; line-height: 1.65; }
.auth-options { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0 25px; }
.auth-remember { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: #28543c; cursor: pointer; }
.auth-device-note { font-size: 12px; color: #768370; }
.auth-submit { display: flex; justify-content: center; align-items: center; gap: 15px; width: 100%; min-height: 50px; background: #214e39; color: #fff; font-size: 15px; font-weight: 500; border-radius: 8px; padding: 12px 18px; box-shadow: 0 4px 9px #213e2510; transition: background .15s; }
.auth-submit:hover:not(:disabled) { background: #163c29; }
.auth-submit:disabled { opacity: .7; cursor: wait; }
.auth-submit svg { width: 18px; height: 18px; }
.auth-help { display: flex; align-items: center; gap: 14px; color: #909b8d; font-size: 11px; margin: 28px 0 20px; }
.auth-help-rule { height: 1px; flex: 1; background: #e2e7dd; }
.auth-local-info { border: 0; padding: 0; margin: 0; text-align: center; }
.auth-local-info summary { color: #6f806d; font-size: 12px; width: fit-content; margin: auto; }
.auth-local-info p { text-align: left; font-size: 13px; color: #6c796c; line-height: 1.85; margin: 12px 0 0; padding: 14px 16px; background: #f0f4eb; border-radius: 8px; }
.auth-entry-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; color: #768370; font-size: 12px; padding: 18px 0 4px; }
.auth-entry-footer svg { width: 13px; height: 13px; }
.footer-dot { padding-inline: 3px; }
.auth-notice { padding: 12px 14px; background: #eef4e8; border: 1px solid #dae5d1; border-radius: 7px; color: #526c44; font-size: 13px; margin-bottom: 20px; }
.auth-error { color: #9a4a36; background: #fcf0eb; border: 1px solid #f1d8ce; border-radius: 7px; padding: 12px 14px; font-size: 13px; line-height: 1.75; margin-bottom: 16px; }

@media (min-width: 1700px) {
  .auth-shell { padding: 28px; gap: 28px; }
  .auth-story { padding: 48px 64px 36px; }
  .auth-story-content { max-width: 580px; width: 100%; margin-inline: auto; }
  .auth-form-wrap { max-width: 420px; }
}
@media (max-width: 1150px) {
  .auth-story { padding-inline: 32px; }
  .auth-entry { padding-inline: 24px; }
  .auth-shell { gap: 8px; padding: 16px; }
  .auth-eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .auth-story h1 { font-size: 35px; }
  .auth-story-description { font-size: 14px; }
  .auth-heading h2 { font-size: 27px; }
  .research-visual { margin-top: 40px; }
  .research-note { width: 65%; padding: 16px; }
  .research-question { top: -5px; }
  .research-outcome { padding: 13px; }
  .auth-device-note { display: none; }
}
@media (max-width: 850px) {
  .auth-shell { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .auth-story { border-radius: 0; padding: 26px 32px; }
  .auth-brand img { width: 29px; height: 29px; }
  .auth-brand > span:first-of-type { font-size: 27px; }
  .auth-brand-label { font-size: 10px; margin-top: 4px; }
  .auth-story-content { padding: 26px 0 0; }
  .auth-story h1 { font-size: 28px; line-height: 1.6; margin: 0; }
  .auth-story h1 br { display: none; }
  .auth-eyebrow, .research-visual, .auth-story-description, .auth-story-footer { display: none; }
  .auth-entry { padding: 22px 32px 20px; }
  .auth-entry-top { max-width: 430px; width: 100%; margin-inline: auto; }
  .auth-form-wrap { max-width: 430px; padding: 26px 0; }
  .auth-device-note { display: inline; }
  .auth-heading { margin-bottom: 26px; }
  .auth-entry-footer { padding-top: 8px; }
}
@media (max-width: 760px) {
  .content { padding: 26px 18px 48px; }
  .topbar { padding: 14px 18px; }
  .top-actions { gap: 8px; }
  h1 { font-size: 25px; }
  .page-heading { margin-bottom: 24px; gap: 16px; }
  .sidebar { padding: 18px 16px 14px; }
  .side-nav { gap: 4px; }
  .nav-item { font-size: 13px; padding: 10px 7px; gap: 5px; }
  .nav-item svg { width: 15px; }
  .btn { min-height: 42px; font-size: 14px; }
  .panel, .project-card .card-body { padding: 20px; }
  .stat { padding: 18px 16px; }
  .stat-label { font-size: 14px; }
  .tab { font-size: 14px; }
  .tabs { gap: 22px; }
  .signout-btn { padding: 7px; }
  .signout-btn svg { display: none; }
  .crumb > span:last-child:not(:first-child) { max-width: 135px; }
}
@media (max-width: 440px) {
  .auth-story { padding: 24px; }
  .auth-story-content { padding-top: 23px; }
  .auth-story h1 { font-size: 24px; letter-spacing: 0; }
  .auth-story h1 br { display: block; }
  .auth-entry { padding: 20px 24px 24px; }
  .auth-heading h2 { font-size: 25px; }
  .auth-heading > p:last-child { font-size: 13px; }
  .auth-form-wrap { padding-top: 24px; }
  .auth-input input { font-size: 16px; }
  .auth-options { gap: 5px; }
  .auth-device-note { font-size: 11px; }
  .nav-item { flex-direction: column; gap: 4px; padding-inline: 6px; font-size: 12px; }
  .nav-item svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Workspace home: prioritize continuation and project discovery. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.workspace-home { max-width: 1200px; margin-inline: auto; }
.workspace-heading { align-items: center; margin-bottom: 22px; }
.workspace-heading h1 { font-size: 32px; margin-bottom: 8px; }
.workspace-heading .eyebrow { font-size: 10px; letter-spacing: 2px; margin-bottom: 8px; }
.workspace-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.workspace-counts { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 13px; }
.workspace-counts > span { display: inline-flex; align-items: center; gap: 7px; }
.workspace-counts b { color: var(--ink); font-weight: 650; font-size: 19px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #26785c; }
.workspace-model { display: flex; align-items: center; gap: 7px; border: 1px solid #dfe6df; background: white; border-radius: 7px; padding: 7px 10px; color: #5d7064; font-size: 12px; white-space: nowrap; }
.workspace-model svg { width: 14px; height: 14px; }
.workspace-model:hover { color: var(--green); border-color: #98b7a5; }
.workspace-resume { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 32px; padding: 26px 30px; background: #edf4ee; border: 1px solid #d4e2d6; border-radius: 14px; margin-bottom: 30px; }
.resume-copy { min-width: 0; }
.resume-copy .eyebrow { display: flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .03em; font-weight: 500; margin-bottom: 12px; }
.resume-copy .eyebrow svg { width: 15px; height: 15px; }
.resume-copy h2 { max-width: 32em; font-size: 23px; line-height: 1.6; overflow-wrap: anywhere; text-wrap: pretty; }
.resume-copy > p:not(.eyebrow) { font-size: 14px; color: #63796b; line-height: 1.9; margin: 9px 0 0; overflow-wrap: anywhere; }
.resume-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 17px; }
.resume-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #446d55; min-height: 32px; }
.resume-links svg { width: 16px; height: 16px; }
.resume-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.resume-button { flex-shrink: 0; background: #24573f !important; border-color: #24573f !important; }
.resume-next { display: grid; gap: 16px; min-width: 172px; padding-left: 28px; border-left: 1px solid #cfdfd2; }
.resume-location { font-size: 12px; color: #607468; }
.resume-location strong { display: block; font-size: 16px; font-weight: 600; color: #294f3c; margin-top: 4px; }
.workspace-list > .section-title { margin-top: 0; }
.workspace-list h2 { font-size: 20px; }
.workspace-filters { display: grid; grid-template-columns: minmax(160px, 1fr) 150px 160px; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.workspace-filter { min-width: 0; }
.workspace-filter label { color: #62756a; font-size: 12px; line-height: 1.5; margin: 0 0 8px; }
.workspace-filters .search { min-width: 0; }
.workspace-filters input, .workspace-filters select { height: 44px; font-size: 14px; border-radius: 8px; }
.workspace-filters select { min-width: 0; width: 100%; padding: 10px 12px; }
.workspace-result-meta { display: flex; justify-content: space-between; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; }
.workspace-result-meta .btn { font-size: 12px; }
.workspace-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.workspace-project { display: flex; flex-direction: column; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.workspace-project:hover { border-color: #aac5b4; box-shadow: 0 4px 15px #153d3208; transform: none; }
.workspace-project .card-body { padding: 24px; flex: 1; }
.workspace-project .card-top { margin-bottom: 12px; }
.project-kind { display: inline-flex; align-items: center; gap: 7px; color: #61796a; font-size: 12px; }
.project-kind svg { width: 17px; height: 17px; }
.workspace-project .project-icon { width: 35px; height: 35px; border-radius: 9px; }
.workspace-project h3 { font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
.workspace-project .card-body > p { margin: 9px 0 0; font-size: 14px; line-height: 1.85; color: var(--muted); overflow-wrap: anywhere; }
.workspace-project .card-footer { padding: 15px 24px; gap: 10px; font-size: 12px; }
.workspace-project .card-footer .btn { font-size: 13px; }
.project-updated { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.project-updated time { color: #465f50; font-variant-numeric: tabular-nums; }
.workspace-project-grid.is-single { grid-template-columns: 1fr; }
.is-single .workspace-project { display: grid; grid-template-columns: minmax(0,1fr) 190px; }
.is-single .card-footer { border-top: 0; border-left: 1px solid var(--line); flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.is-single .project-updated { display: grid; gap: 4px; }
.workspace-empty { text-align: center; padding: 40px 24px; border: 1px dashed #cedbd2; border-radius: 12px; background: #fff; }
.workspace-empty > svg { width: 30px; height: 30px; color: #63856f; margin-bottom: 13px; }
.workspace-empty h3 { font-size: 18px; }
.workspace-empty p { font-size: 14px; color: var(--muted); line-height: 1.85; max-width: 420px; margin: 10px auto 20px; }
.workspace-guide { margin-top: 32px; padding-top: 18px; }
.workspace-guide summary { font-size: 13px; color: #63766a; }
.workspace-guide > p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.workspace-guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; }
.workspace-guide-steps > div > span { color: #839789; font-size: 12px; }
.workspace-guide-steps h3 { font-size: 15px; margin-top: 8px; }
.workspace-guide-steps p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.page-notice { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid #e3d4ad; background: #fcf7eb; border-radius: 9px; margin-bottom: 22px; }
.page-notice p { font-size: 14px; line-height: 1.8; margin: 0; }
.page-notice .actions { flex-shrink: 0; }
.form-status { margin-right: auto; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
form[aria-busy=true] .form-status::before { content: ''; width: 12px; height: 12px; border: 2px solid #d5e2d9; border-top-color: #397953; border-radius: 50%; animation: workspace-spin .9s linear infinite; }
@keyframes workspace-spin { to { transform: rotate(360deg); } }
.auth-local-info + .auth-local-info { margin-top: 12px; }

@media (max-width: 1000px) {
  .workspace-resume { grid-template-columns: 1fr; gap: 20px; }
  .resume-next { padding: 16px 0 0; border-left: 0; border-top: 1px solid #cfdfd2; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .workspace-project-grid { grid-template-columns: 1fr; }
  .workspace-counts { gap: 14px; }
}
@media (max-width: 760px) {
  .sidebar { padding: 13px 16px 10px; }
  .side-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 11px; }
  .side-nav .nav-item { justify-content: center; flex-direction: column; gap: 4px; padding: 8px 2px; font-size: 12px; line-height: 1.45; min-width: 0; }
  .side-nav .nav-item svg { width: 17px; height: 17px; }
  .topbar { min-height: 54px; padding-block: 9px; }
  .crumb { flex-wrap: nowrap; gap: 7px; }
  .crumb > a, .crumb > b { white-space: nowrap; }
  .crumb > b ~ span { display: none; }
  .content { padding-top: 24px; }
  .workspace-heading { align-items: flex-start; gap: 12px; }
  .workspace-heading h1 { font-size: 26px; }
  .workspace-heading .subtitle { font-size: 13px; }
  .workspace-heading > .btn { padding: 9px 12px; }
  .workspace-summary { flex-wrap: wrap; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; }
  .workspace-model { padding: 5px 8px; }
  .workspace-counts { gap: 14px; font-size: 12px; }
  .workspace-counts b { font-size: 17px; }
  .workspace-resume { padding: 20px; gap: 16px; margin-bottom: 26px; }
  .resume-copy h2 { font-size: 20px; }
  .resume-links { gap: 18px; margin-top: 12px; }
  .resume-next { width: 100%; min-width: 0; }
  .workspace-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 16px; }
  .workspace-filter-search { grid-column: 1 / -1; }
  .workspace-filters input { font-size: 16px; }
  .workspace-project .card-body { padding: 20px; }
  .workspace-project .card-footer { padding: 14px 20px; }
  .is-single .workspace-project { display: flex; }
  .is-single .card-footer { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: center; justify-content: space-between; }
  .is-single .project-updated { display: flex; }
  .workspace-guide-steps { grid-template-columns: 1fr; gap: 8px; }
  .page-notice { align-items: flex-start; flex-direction: column; gap: 10px; }
  .form-status { width: 100%; min-height: 0; }
  .form-status:empty { display: none; }
  .modal-foot { flex-wrap: wrap; }
  .evidence-table, .evidence-table tbody { display: block; min-width: 0; width: 100%; }
  .evidence-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .evidence-table tbody { display: grid; gap: 14px; padding: 12px; }
  .evidence-table tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
  .evidence-table td { display: block; padding: 10px 0; border: 0; min-width: 0 !important; max-width: none !important; width: auto; white-space: normal; overflow-wrap: anywhere; }
  .evidence-table td:first-child { padding-top: 0; padding-bottom: 3px; color: #819389; }
  .evidence-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: #708478; margin-bottom: 7px; font-weight: 500; }
  .evidence-table td + td { border-top: 1px solid #eef2ef; }
  .evidence-table td:nth-child(2) { border-top: 0; }
  .evidence-table td > .tiny { max-width: none !important; }
  .evidence-table .quote { font-size: 15px; line-height: 1.9; margin: 0; }
  .evidence-table .evidence-meta { margin-top: 8px; line-height: 1.8; }
  .evidence-table .btn.link { margin-top: 8px; min-height: 36px; }
}
.fp-panel { margin-bottom: 24px; }
.fp-panel .panel-head { flex-wrap: wrap; gap: 14px; }
.fp-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.fp-item h3 { margin: 0 0 14px; }
.fp-comparison { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; margin-bottom: 18px; }
.fp-comparison > div { padding: 16px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; background: #f7faf8; }
.fp-comparison h4 { margin: 0 0 12px; color: #557362; font-size: 13px; }
.fp-value, .fp-matrix .co-detail div { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.fp-matrix { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fp-contribution-editor { padding: 18px; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.fp-contribution-editor fieldset { min-width: 0; border: 1px solid var(--line); margin: 18px 0; padding: 14px; border-radius: 8px; }
.fp-contribution-editor legend { font-size: 13px; padding: 0 6px; }
.fp-contribution-editor .check { overflow-wrap: anywhere; }
.fp-current { margin-top: 20px; }
.fp-current summary { cursor: pointer; font-weight: 500; }
@media (max-width: 680px) {
  .fp-comparison { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .fp-contribution-editor { padding: 12px; }
  .fp-panel .co-task { align-items: flex-start; flex-direction: column; }
}

/* Reading rhythm and resilient layouts shared by the research views. */
.panel-head { align-items: flex-start; gap: 16px; }
.panel-head > div, .section-title > div, .list-row > div { min-width: 0; }
.panel-head > .btn { flex-shrink: 0; }
.panel-head > div:first-child .subtitle { margin-top: 6px; max-width: 68ch; }
.section-title h2 .count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 2px 7px; background: #eaf0eb; border-radius: 6px; font-size: 12px; font-variant-numeric: tabular-nums; vertical-align: middle; }
.panel-head h2, .section-title h2, .doc-card h3, .list-row strong { overflow-wrap: anywhere; }
.list-row { padding-block: 18px; align-items: flex-start; }
.list-row > .actions { flex-shrink: 0; max-width: 48%; justify-content: flex-end; }
.list-row p, .doc-card p { overflow-wrap: anywhere; line-height: 1.8; }
.doc-icon { flex-shrink: 0; }
.doc-card { gap: 16px; padding: 24px; }
.doc-card h3 { font-size: 17px; line-height: 1.65; }
.badge { font-size: 12px; font-weight: 500; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tabs { gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #eef2ee; scrollbar-width: thin; }
.tabs .tab { padding: 9px 18px; border: 0; border-radius: 7px; font-size: 14px; line-height: 1.6; flex-shrink: 0; }
.tabs .tab.active { color: #245e42; background: #fff; box-shadow: 0 1px 4px #173e320c; }
.tabs .tab:hover:not(.active) { background: #e5ece6; }
.toolbar .search { min-width: min(240px,100%); }
.toolbar > select { flex-shrink: 1; }
.toolbar .search input { font-size: 15px; }
.evidence-table { table-layout: fixed; }
.evidence-table th:first-child { width: 5%; }
.evidence-table th:nth-child(2) { width: 22%; }
.evidence-table th:nth-child(3) { width: 36%; }
.evidence-table th:nth-child(4) { width: 21%; }
.evidence-table th:last-child { width: 16%; }
.evidence-table td { overflow-wrap: anywhere; padding: 18px 16px; }
.evidence-table .quote { font-size: 15px; line-height: 1.9; }
.evidence-table .tiny { line-height: 1.75; }
.evidence-meta { color: #647b6c; padding-top: 8px; border-top: 1px dashed #dce5df; }
.evidence-more { justify-content: center; padding: 18px; border-top: 1px solid var(--line); }
.framework { padding: 22px; }
.framework .number { font-size: 11px; letter-spacing: .04em; margin-bottom: 12px; }
.framework p { margin-block: 10px 0; overflow-wrap: anywhere; }
.framework .btn { margin-top: 14px; }
.callout { align-items: flex-start; font-size: 14px; line-height: 1.8; }
.callout > div { min-width: 0; overflow-wrap: anywhere; }
.metric b, .stat-value, .workspace-counts { font-variant-numeric: tabular-nums; }
dialog { max-width: 760px; max-height: calc(100dvh - 40px); }
dialog.wide { max-width: 1160px; }
.modal-head { padding: 22px 28px; gap: 20px; }
.modal-head h2 { line-height: 1.55; overflow-wrap: anywhere; min-width: 0; }
.modal-head .icon-btn { flex-shrink: 0; }
.modal-body { padding: 24px 28px; }
.modal-body input, .modal-body select, .modal-body textarea { font-size: 15px; line-height: 1.6; }
.modal-body label { font-size: 14px; font-weight: 500; line-height: 1.65; }
.modal-body .check { font-weight: 400; align-items: flex-start; overflow-wrap: anywhere; }
.check input { flex-shrink: 0; margin-top: 4px; }
.modal-body .source-text { font-size: 15px; line-height: 1.9; }
.modal-body .field-help { margin-block: 9px 14px; font-size: 13px; line-height: 1.8; }
.modal-body .prose { max-width: 85ch; }
.modal-foot { margin: 24px -28px -24px; padding: 16px 28px; box-shadow: 0 -6px 16px #fff8; }
.fp-panel > .card-body > .field-help { margin-top: 0; }
.fp-item { padding-block: 26px; }
.fp-comparison > div:first-child { background: #f7f8f5; }
.fp-comparison > div:nth-child(2) { background: #f0f6f1; border-color: #d1e3d5; }
.fp-contribution-editor textarea { min-height: 100px; }
.fp-current summary { line-height: 1.7; }
.fp-panel .co-task > div { min-width: 0; }
.fp-panel .co-task .actions { flex-shrink: 0; }

@media (max-width: 1150px) and (min-width: 761px) {
  .page-heading { flex-wrap: wrap; }
  .page-heading > .actions { width: 100%; }
}
@media (max-width: 760px) {
  .page-heading h1 { font-size: 25px; line-height: 1.5; }
  .page-heading .subtitle { font-size: 14px; line-height: 1.8; }
  .page-heading > .actions { gap: 8px; }
  .panel { padding: 20px; }
  .panel-head h2, .section-title h2 { font-size: 18px; }
  .tabs { gap: 4px; margin-bottom: 22px; }
  .tabs .tab { padding: 9px 13px; font-size: 13px; }
  .list-row { flex-wrap: wrap; gap: 12px; }
  .list-row > .actions { max-width: 100%; justify-content: flex-start; }
  .evidence-table td { padding: 12px 0; }
  .toolbar { gap: 10px; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar select { flex: 1; min-width: 0; }
  .section-title { flex-wrap: wrap; }
  .doc-card { padding: 20px; gap: 12px; }
  .doc-icon { padding: 10px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .modal-head { padding: 16px 18px; gap: 12px; }
  .modal-head h2 { font-size: 18px; }
  .modal-body { padding: 18px; }
  .modal-body input, .modal-body select, .modal-body textarea { font-size: 16px; }
  .modal-foot { margin: 20px -18px -18px; padding: 14px 18px; }
  .fp-panel .panel-head > .actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fp-panel .panel-head > .actions .btn { white-space: normal; padding: 9px 10px; }
}
@media (max-width: 380px) {
  .workspace-heading { flex-direction: column; }
  .workspace-heading > .btn { width: 100%; }
  .resume-next { grid-template-columns: 1fr; gap: 12px; }
  .resume-location { display: flex; align-items: baseline; gap: 10px; }
  .resume-location strong { margin: 0; font-size: 14px; }
  .resume-button { width: 100%; }
  .workspace-resume { padding: 18px; }
  .workspace-counts { gap: 12px; }
  .workspace-project .card-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Evidence workbench: visible filters, scoped selection and readable actions. */
.evidence-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.evidence-summary-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #5d7064; text-align: left; font: inherit; cursor: pointer; }
.evidence-summary-item strong { font-size: 25px; line-height: 1.2; font-weight: 550; color: #294d36; font-variant-numeric: tabular-nums; }
.evidence-summary-item span { font-size: 13px; line-height: 1.6; }
.evidence-summary-item.active { border-color: #8fab98; background: #edf4ee; box-shadow: inset 0 0 0 1px #8fab98; }
.evidence-summary-item:hover { border-color: #74957f; }
.evidence-filters { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; padding: 20px; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.evidence-filter { min-width: 0; }
.evidence-filter label { display: block; font-size: 12px; font-weight: 500; color: #596e60; margin: 0 0 7px; }
.evidence-filter select, .evidence-filter input { width: 100%; min-width: 0; height: 42px; font: inherit; font-size: 14px; }
.evidence-filter select { text-overflow: ellipsis; padding: 8px 10px; }
.evidence-search { grid-column: 1 / -1; }
.evidence-search .search { width: 100%; min-width: 0; }
.evidence-filter-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.75; padding: 9px 2px; }
.evidence-filter-meta .btn { flex-shrink: 0; }
.evidence-status-row { display: flex; align-items: center; gap: 12px; }
.evidence-status-row p { margin: 0; font-size: 13px; line-height: 1.8; }
.evidence-status-row:has(p:not(:empty)) { margin: 6px 0 14px; }
.evidence-status-row .btn { flex-shrink: 0; }
.evidence-bulk-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px 18px; border: 1px solid #d9e4db; border-radius: 10px; background: #f0f5f0; margin: 12px 0; }
.evidence-bulk-toolbar > div:first-child { display: grid; gap: 4px; min-width: 0; }
.evidence-bulk-toolbar strong { font-size: 14px; color: #2d5039; }
.evidence-bulk-toolbar span { font-size: 12px; color: #607565; }
.evidence-download-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #edf5ee; border: 1px solid #ccdece; border-radius: 9px; margin: 12px 0; font-size: 13px; line-height: 1.8; }
.evidence-download-result span { flex: 1; min-width: 160px; overflow-wrap: anywhere; }
.evidence-selectable th:first-child { width: 7%; padding: 15px 12px; }
.evidence-selectable th:nth-child(2) { width: 21%; }
.evidence-selectable th:nth-child(3) { width: 35%; }
.evidence-selectable th:nth-child(4) { width: 20%; }
.evidence-selectable th:last-child { width: 17%; }
.evidence-selectable .evidence-select-cell { padding: 18px 12px; }
.evidence-select-cell label { display: flex; flex-direction: column; gap: 7px; align-items: center; margin: 0; cursor: pointer; }
.evidence-select-cell label span { font-size: 11px; font-weight: 400; color: #718276; font-variant-numeric: tabular-nums; }
.evidence-selectable input[type=checkbox] { width: 17px; height: 17px; min-width: 17px; margin: 0; accent-color: #367149; cursor: pointer; }
.evidence-selectable tr.is-selected > td { background: #f1f7f1; }
.evidence-source-title { margin: 8px 0 4px; }
#evidence-results .panel-head .field-help { margin: 7px 0 0; }
.evidence-workbench > .field-help { margin: 15px 0; }
.evidence-workbench button:focus-visible { outline: 3px solid #96bca0; outline-offset: 3px; }
@media (max-width:1100px) {
  .evidence-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .evidence-summary-item { padding: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width:760px) {
  .evidence-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .evidence-summary-item { flex-direction: row; align-items: center; }
  .evidence-summary-item strong { font-size: 24px; }
  .evidence-filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 16px; }
  .evidence-filter input, .evidence-filter select { font-size: 16px; }
  .evidence-filter-meta { align-items: flex-start; }
  .evidence-bulk-toolbar { padding: 14px; }
  .evidence-bulk-toolbar .actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .evidence-selectable .evidence-select-cell { display: block; width: 100%; padding: 0 0 12px; }
  .evidence-select-cell label { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .evidence-select-cell label span::before { content: '证据 '; }
  .evidence-selectable tr.is-selected { border-color: #89ac94; background: #f1f7f1; }
  .evidence-selectable tr.is-selected > td { background: transparent; }
}
@media (max-width:380px) {
  .evidence-filters { grid-template-columns: minmax(0,1fr); }
  .evidence-filter-meta { flex-direction: column; gap: 0; }
  .evidence-summary-item { padding: 12px; gap: 7px; }
}
