/* Shared reading rhythm for the research workspace. Theme colors stay in index.html. */
body { font-size: 15px; line-height: 1.75; letter-spacing: 0; }
main { max-width: 1440px; padding: 40px clamp(24px, 3vw, 48px) 0; }
.view { min-width: 0; }
.heading { align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.heading > div { min-width: 0; }
.heading h1 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.45; letter-spacing: -.02em; margin: 10px 0 14px; overflow-wrap: anywhere; }
.heading p { max-width: 76ch; font-size: 14px; line-height: 1.9; }
.overline { font-size: 11px; line-height: 1.6; letter-spacing: .14em; }
.heading .page-sub { margin: 10px 0 0; font-size: 13px; }
.h1-en { max-width: 25ch; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.16; font-weight: 700; letter-spacing: -.035em; }
.h1-zh { margin-top: 14px; font-size: 20px; line-height: 1.6; letter-spacing: .08em; }
.subline + .subline { margin-top: 4px; }
.stamp { margin-top: 8px; }
.panel, .card { border-width: 1px; }
.panel { padding: 26px; }
.section-title { gap: 12px 20px; flex-wrap: wrap; align-items: baseline; }
.section-title h2 { font-size: 18px; line-height: 1.5; }
.section-title > span { font-size: 12px; }
.value-grid, .result-grid, .two-col, .deploy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.value-grid { margin-bottom: 20px; }
.value-card { padding: 26px; }
.value-card h2 { font-size: 19px; line-height: 1.6; }
.value-card p, .card p { font-size: 14px; line-height: 1.85; }
.value-card .overline { font-size: 11px; letter-spacing: .08em; }
.workflow-grid { gap: 16px; margin-bottom: 24px; }
.workflow-grid button { padding: 18px 20px; min-width: 0; }
.workflow-grid span { font-size: 13px; line-height: 1.7; }
.hero-strip { margin-bottom: 28px; padding: 22px 8px; }
.hero-strip b, .stat b, .acc-stats b { font-variant-numeric: tabular-nums; }
.hero-strip span { font-size: 12px; }
.fields { gap: 20px 24px; }
.fields.two, .fields.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields > *, .inv-grid > *, .two-col > *, .kv > div, .value-grid > *, .deploy-grid > * { min-width: 0; }
label { font-size: 13px; line-height: 1.65; gap: 8px; }
label small { font-size: 12px; line-height: 1.7; }
input, select, textarea { line-height: 1.6; }
textarea { line-height: 1.8; }
.search-panel > .section-title { padding-bottom: 18px; margin-bottom: 24px; }
.form-actions { gap: 10px; margin-top: 24px; }
.form-actions > .muted { flex-basis: 100%; margin-top: 2px; }
.btn { min-height: 42px; }
.btn.small { min-height: 34px; }
.presets { gap: 8px; margin: 18px 0 28px; font-size: 12px; }
.presets button { font-size: 12px; padding: 6px 10px; }
.result-title { margin: 32px 0 20px; }
.card { padding: 24px; }
.card h3 { font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.card-kicker { font-size: 12px; line-height: 1.6; }
.card .scope, .card .host, .card small { font-size: 12px; }
.card .actions { flex-wrap: wrap; gap: 10px 16px; padding-top: 16px; margin-top: 18px; }
.inline-actions, .save-bar, .direct-links { flex-wrap: wrap; }
.notice { line-height: 1.85; overflow-wrap: anywhere; }
.finder { padding: 26px; }
#finder-text { min-height: 100px; font-size: 15px; line-height: 1.8; }
.examples { gap: 8px; margin: 12px 0 16px; }
.examples .chip { white-space: normal; text-align: left; line-height: 1.7; }
.finder-row { gap: 16px; }
.lead .orig, .lead .meta { line-height: 1.75; overflow-wrap: anywhere; }
.contact-box { padding: 14px; }
.ch { line-height: 1.7; }
.kv { gap: 14px 24px; }
.kv > div { overflow-wrap: anywhere; }
.inv-tabs { gap: 4px; row-gap: 8px; }
.inv-tabs button { min-height: 42px; }
#report-output > p, #report-output > ul, #report-output > ol, .ai-content, .report-paragraph { font-size: 14px; line-height: 1.95; }
#report-output > p { max-width: 80ch; }
#report-output h2 { margin-top: 24px; line-height: 1.6; }
#report-output > h2:first-child { margin-top: 0; }
#report-output h3 { margin-top: 32px; padding-top: 22px; }
#report-output li + li { margin-top: 6px; }
.topbar { height: auto; min-height: 72px; padding-block: 12px; flex-wrap: wrap; }
.topbar > div { flex-wrap: wrap; gap: 8px; }
.crumbs nav { overflow: hidden; }
#crumb-detail b { max-width: 24ch; }
.auth-gate { align-items: safe center; }
.auth-card { margin-block: auto; }
footer { line-height: 1.8; }
@media (min-width: 1400px) {
  .fields.four { grid-template-columns: 1.2fr 1.3fr 1fr .9fr; }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .value-grid, .result-grid, .deploy-grid { grid-template-columns: minmax(0, 1fr); }
  .heading { flex-wrap: wrap; }
  .workflow-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .workflow-grid button { padding: 14px 18px; }
}
@media (max-width: 760px) {
  main { padding: 26px 18px 0; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .topbar > div { justify-content: flex-start; gap: 8px; }
  .topbar .badge { padding: 5px 8px; font-size: 11px; }
  .crumbs { font-size: 12px; }
  #crumb-detail b { max-width: 12ch; }
  .heading { margin-bottom: 24px; gap: 16px; }
  .heading h1 { font-size: 26px; }
  .heading p { font-size: 14px; }
  .h1-en { font-size: clamp(29px, 7.6vw, 40px); }
  .h1-zh { font-size: 17px; letter-spacing: .04em; }
  .panel, .card, .finder, .value-card { padding: 20px; }
  .value-grid, .result-grid, .deploy-grid, .workflow-grid, .fields.two, .fields.four, .invite-grid, .role-guide { grid-template-columns: minmax(0, 1fr); }
  .fields { gap: 18px; }
  input, select, textarea, #finder-text { font-size: 16px; }
  .hero-strip { padding: 20px 4px; gap: 20px 0; }
  .hero-strip > div { min-width: 0; padding: 0 14px; }
  .hero-strip b { font-size: 23px; }
  .form-actions .btn { flex: 1 1 100%; white-space: normal; }
  .toolbar > input { min-width: 0; flex-basis: 100%; }
  .region-pick { min-width: 0; flex-basis: 100%; }
  .region-pick input { width: 100%; }
  .finder-actions { width: 100%; }
  .finder-actions .btn { flex: 1; white-space: normal; }
  .prj-title { min-width: 0; flex-basis: 100%; }
  .save-bar { width: 100%; }
  .source-health > div { min-width: 0; flex-basis: 100%; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-width: 0; }
  .direct-links { gap: 8px 16px; }
  dialog { max-height: 90dvh; }
  .auth-gate { padding: 20px 16px; }
  .auth-card { padding: 26px 22px; }
}
