﻿:root {
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-soft: #f1f6f3;
  --cream: #fbf7ef;
  --ink: #17211d;
  --text: #394640;
  --muted: #6f7d76;
  --line: #dfe8e3;
  --green: #2fa36b;
  --green-soft: #dff5e9;
  --teal: #1f9a9a;
  --blue: #5a9bd8;
  --blue-soft: #e8f3ff;
  --amber: #d99b35;
  --shadow: 0 24px 70px rgba(40, 69, 56, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 163, 107, 0.12), transparent 360px),
    radial-gradient(circle at top right, rgba(90, 155, 216, 0.16), transparent 420px),
    var(--bg);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 68px);
  background: rgba(247, 249, 246, 0.82);
  border-bottom: 1px solid rgba(223, 232, 227, 0.82);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
  color: #167450;
  font-size: 13px;
  border: 1px solid var(--line);
}
.brand-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #176647;
  font-size: 12px;
  font-weight: 900;
}
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; color: var(--muted); font-size: 14px; }
.nav a { padding: 7px 0; border-bottom: 2px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.nav a:hover, .nav a.active { color: var(--green); border-bottom-color: var(--green); }

main { min-height: calc(100vh - 160px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px) 34px;
}
.hero.narrow { grid-template-columns: 1fr; max-width: 1100px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 18px; font-size: clamp(44px, 7vw, 86px); line-height: 1.05; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.16; }
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.28; }
.lead { max-width: 760px; margin-bottom: 26px; color: var(--text); font-size: clamp(18px, 2vw, 23px); }
.action-row, .tag-row, .system-line { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; box-shadow: 0 10px 28px rgba(40, 69, 56, 0.08); }
.button.primary { background: var(--green); color: white; border-color: var(--green); }
.tag { padding: 8px 12px; border-radius: 999px; background: var(--green-soft); color: #176647; font-weight: 800; font-size: 14px; }
.system-line span { padding: 7px 0; color: var(--muted); font-weight: 900; }
.system-line span:not(:last-child)::after { content: "/"; margin-left: 10px; color: var(--green); }

.dashboard {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}
.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 6px 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 900; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(47, 163, 107, 0.12); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric { min-height: 116px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.metric strong { display: block; margin-bottom: 8px; font-size: 34px; line-height: 1; color: var(--ink); }
.metric span { color: var(--muted); font-weight: 700; }
.metric.green { background: linear-gradient(135deg, #ffffff, var(--green-soft)); }
.metric.blue { background: linear-gradient(135deg, #ffffff, var(--blue-soft)); }
.update-strip { padding: 16px; border-radius: 18px; background: var(--cream); border: 1px solid #efe3d0; color: var(--text); }

.os-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(232, 243, 255, 0.9), rgba(247, 249, 246, 0.72)),
    radial-gradient(circle at 70% 40%, rgba(47, 163, 107, 0.16), transparent 320px);
  border-bottom: 1px solid rgba(223, 232, 227, 0.8);
}
.os-hero::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: -24px;
  width: 220px;
  height: 160px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(90, 155, 216, 0.16), rgba(47, 163, 107, 0.12));
  filter: blur(1px);
}
.hero-copy { position: relative; z-index: 1; }
.today-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}
.status-list { display: grid; gap: 12px; }
.status-list div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(223, 232, 227, 0.74); }
.status-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.status-list span { color: var(--muted); font-weight: 800; }
.status-list strong { font-weight: 900; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: -30px clamp(18px, 5vw, 72px) 0;
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-strip a { display: grid; gap: 4px; padding: 20px; text-align: center; border-right: 1px solid var(--line); }
.stat-strip a:last-child { border-right: 0; }
.stat-strip span, .stat-strip small { color: var(--muted); font-weight: 800; }
.stat-strip strong { font-size: 30px; line-height: 1.15; }
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.8fr);
  gap: 18px;
  padding: 34px clamp(18px, 5vw, 72px) clamp(54px, 8vw, 94px);
}
.main-panel, .side-panel { display: grid; gap: 18px; align-content: start; }
.section-heading.compact { margin-bottom: 14px; }
.section-heading.compact h2 { font-size: 24px; }
.module-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.module-card {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(40, 69, 56, 0.06);
}
.module-card span { color: var(--green); font-weight: 900; }
.module-card h3 { font-size: 18px; }
.module-card p { color: var(--muted); font-size: 14px; }
.module-card strong { margin-top: auto; font-size: 14px; }
.module-card.green { background: linear-gradient(135deg, #ffffff, rgba(223, 245, 233, 0.72)); }
.module-card.amber { background: linear-gradient(135deg, #ffffff, rgba(251, 247, 239, 0.96)); }
.module-card.blue { background: linear-gradient(135deg, #ffffff, rgba(232, 243, 255, 0.9)); }
.module-card.violet { background: linear-gradient(135deg, #ffffff, rgba(239, 238, 255, 0.8)); }
.module-card.red { background: linear-gradient(135deg, #ffffff, rgba(255, 239, 239, 0.8)); }
.activity-list, .info-card, .workflow-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(40, 69, 56, 0.06);
}
.activity-list { display: grid; gap: 0; padding: 0; overflow: hidden; }
.activity-list a {
  display: grid;
  grid-template-columns: 100px 110px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.activity-list a:last-child { border-bottom: 0; }
.activity-list p { margin-bottom: 0; color: var(--muted); }
.activity-list b { color: var(--green); white-space: nowrap; }
.workflow-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.workflow-steps div { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.workflow-steps strong { display: block; margin-bottom: 8px; color: var(--green); font-size: 26px; }
.workflow-steps span { font-weight: 900; }
.workflow-steps p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.info-card h2 { margin-bottom: 12px; font-size: 22px; }
.info-card p { color: var(--text); }
.formula { padding: 14px; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; font-weight: 900; text-align: center; }
.legend-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.legend-row span { padding: 8px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 900; text-align: center; }
.progress-list { display: grid; gap: 12px; }
.progress-list a { display: grid; grid-template-columns: 1fr auto 48px; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.progress-list span { display: block; margin-top: 3px; color: var(--green); font-size: 13px; font-weight: 800; }
.progress-list b { color: var(--green); }
.dots { display: flex; align-items: center; gap: 7px; }
.dots i { width: 14px; height: 14px; border: 2px solid var(--line); border-radius: 50%; background: #fff; }
.dots.done-2 i:nth-child(-n+2), .dots.done-3 i:nth-child(-n+3), .dots.done-7 i:nth-child(-n+7) { border-color: var(--green); background: var(--green); }
.experiment-snapshot { display: grid; gap: 14px; }
.experiment-snapshot span { color: var(--muted); }
.mini-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-metrics span { padding: 12px; border-radius: 14px; background: var(--surface-soft); font-size: 13px; }
.mini-metrics b { display: block; color: var(--ink); font-size: 20px; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.note-grid div { padding: 16px; border-radius: 18px; background: linear-gradient(135deg, var(--green-soft), rgba(255, 255, 255, 0.9)); border: 1px solid var(--line); }
.note-grid h3 { font-size: 18px; }
.note-grid p { margin-bottom: 0; color: var(--text); font-size: 14px; }

.section { padding: clamp(54px, 8vw, 94px) clamp(18px, 5vw, 72px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-heading p { max-width: 620px; margin-bottom: 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(40, 69, 56, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
a.card:hover { transform: translateY(-3px); border-color: rgba(47, 163, 107, 0.38); box-shadow: var(--shadow); }
.card .meta { margin-bottom: 26px; color: var(--green); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.card p { color: var(--muted); }
.card .readmore { margin-top: auto; color: var(--teal); font-weight: 900; }
.soft-band { background: rgba(255, 255, 255, 0.42); border-top: 1px solid rgba(223, 232, 227, 0.7); border-bottom: 1px solid rgba(223, 232, 227, 0.7); }

.list { display: grid; gap: 14px; }
.list-item { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 34px rgba(40, 69, 56, 0.06); }
time, .date { color: var(--green); font-weight: 900; }
.list-item p { margin-bottom: 0; color: var(--muted); }
.pill { width: fit-content; padding: 7px 11px; border-radius: 999px; background: var(--blue-soft); color: #22669c; font-weight: 800; font-size: 13px; }

.timeline { display: grid; gap: 12px; max-width: 920px; }
.timeline-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.timeline-index { display: grid; place-items: center; border-radius: 18px; background: var(--green-soft); color: #176647; font-weight: 900; }
.timeline-body { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.timeline-body p { margin-bottom: 0; color: var(--muted); }
.capability-timeline .timeline-body { background: linear-gradient(135deg, #ffffff, rgba(223, 245, 233, 0.48)); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.capability-timeline a.timeline-body:hover { transform: translateY(-2px); border-color: rgba(31, 154, 154, 0.34); box-shadow: 0 14px 42px rgba(40, 69, 56, 0.07); }

.article { max-width: 860px; margin: 0 auto; padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 40px); }
.article-shell { padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.article-shell p, .article-shell li { color: var(--text); font-size: 18px; }
.article-shell h2 { margin-top: 34px; margin-bottom: 12px; font-size: 28px; }
.breadcrumb { margin-bottom: 20px; color: var(--muted); font-weight: 800; }
.breadcrumb a { color: var(--green); }

.contact-hero { padding-bottom: 24px; }
.contact-section { padding-top: 38px; }
.contact-heading { margin-bottom: 30px; }
.contact-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 290px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 14px 42px rgba(40, 69, 56, 0.07);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.62;
}
.github-card::after { background: linear-gradient(145deg, transparent 48%, rgba(23, 33, 29, 0.07)); }
.email-card::after { background: linear-gradient(145deg, transparent 48%, var(--blue-soft)); }
.qq-card::after { background: linear-gradient(145deg, transparent 48%, var(--green-soft)); }
.contact-card:hover { transform: translateY(-4px); border-color: rgba(47, 163, 107, 0.4); box-shadow: var(--shadow); }
.contact-card:focus-visible { outline: 3px solid rgba(47, 163, 107, 0.28); outline-offset: 3px; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 10px 24px rgba(40, 69, 56, 0.08);
}
.github-card .contact-icon { color: var(--ink); }
.email-card .contact-icon { color: var(--blue); }
.qq-card .contact-icon { color: var(--teal); }
.contact-icon svg { width: 27px; height: 27px; fill: currentColor; }
.contact-card-content { display: flex; flex-direction: column; min-width: 0; }
.contact-label { margin-bottom: 5px; color: var(--muted); font-size: 14px; font-weight: 800; }
.contact-card strong { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; overflow-wrap: anywhere; }
.contact-description { margin-top: 8px; color: var(--muted); font-size: 15px; }
.contact-action { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 28px; color: var(--teal); font-size: 14px; font-weight: 900; }
.contact-action > span:last-child { font-size: 18px; line-height: 1; }
.copy-status { min-height: 28px; margin: 18px 4px 0; color: var(--green); font-size: 14px; font-weight: 800; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 30px clamp(18px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); }
.footer p { margin: 0; }
.top-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 18px; }

@media (max-width: 1180px) { .dashboard-layout { grid-template-columns: 1fr; } .module-grid, .workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .site-header { align-items: flex-start; flex-direction: column; } .nav { justify-content: flex-start; } .hero, .os-hero { grid-template-columns: 1fr; } .list-item, .activity-list a { grid-template-columns: 1fr; } .contact-card-grid { grid-template-columns: 1fr; } .contact-card { min-height: 230px; } }
@media (max-width: 640px) { h1 { font-size: 42px; } .metric-grid, .grid.two, .grid.three, .grid.four, .module-grid, .workflow-steps, .stat-strip, .mini-metrics, .note-grid { grid-template-columns: 1fr; } .section-heading, .footer { align-items: flex-start; flex-direction: column; } .timeline-row, .progress-list a { grid-template-columns: 1fr; } .contact-hero { padding-bottom: 10px; } .contact-section { padding-top: 28px; } .contact-card { min-height: 220px; padding: 22px; } .contact-icon { margin-bottom: 25px; } }

body.focus-mode {
  --bg: #fbfaf6;
  --surface-soft: #f6f2e9;
  --green-soft: #edf7e9;
  --blue-soft: #eef5f8;
}
button, input { font: inherit; }
button { color: inherit; }
.nav-tool, .icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}
.nav-tool { position: relative; padding: 7px 0; }
.nav-tool span, .note-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 999px;
  background: #f43f3f;
  color: white;
  font-size: 11px;
}
.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.status-list button {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(223, 232, 227, 0.74);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.status-list button:last-child { border-bottom: 0; padding-bottom: 0; }
.status-list button:hover strong { color: var(--green); }
.module-card {
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 163, 107, 0.36);
  box-shadow: var(--shadow);
}
.doc-module { color: var(--ink); }
.workflow-steps button,
.workflow-steps a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
  display: block;
}
.workflow-steps button.active,
.workflow-steps a.active,
.workflow-steps a:hover {
  border-color: rgba(47, 163, 107, 0.5);
  background: var(--green-soft);
  box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.08);
}
.progress-card {
  display: grid;
  grid-template-columns: 1fr auto 50px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.progress-card small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.progress-percent { color: var(--green); }
.milestones {
  display: flex;
  align-items: center;
  gap: 7px;
}
.milestones button {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.milestones button.done {
  border-color: var(--green);
  background: var(--green);
}
.milestones button.current {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.sparkline {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, var(--green-soft));
}
.sparkline i { flex: 1; border-radius: 999px; background: var(--green); opacity: 0.72; }
.sparkline i:nth-child(1) { height: 14px; }
.sparkline i:nth-child(2) { height: 22px; }
.sparkline i:nth-child(3) { height: 18px; }
.sparkline i:nth-child(4) { height: 30px; }
.sparkline i:nth-child(5) { height: 27px; }
.sparkline i:nth-child(6) { height: 38px; }
.sparkline i:nth-child(7) { height: 46px; }
.note-grid button {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green-soft), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
.note-grid strong {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
}
.search-card input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.filter-row button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.filter-row button.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.search-hidden { display: none !important; }
.docs-modal {
  width: min(620px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.docs-modal::backdrop {
  background: rgba(23, 33, 29, 0.22);
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 26px; }
.modal-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  cursor: pointer;
}
.modal-body { padding: 22px; }
.modal-body p, .modal-body li { color: var(--text); }
@media (max-width: 640px) {
  .progress-card { grid-template-columns: 1fr; }
}

/* Homepage layout reset: keep the dashboard interactive, but make it feel like one clean OS surface. */
body {
  background:
    linear-gradient(180deg, #f8faf8 0%, #f4f7f3 46%, #f7f9f6 100%);
}
.site-header {
  margin: 10px auto 0;
  width: min(1520px, calc(100% - 18px));
  border: 1px solid rgba(223, 232, 227, 0.86);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(40, 69, 56, 0.06);
}
.os-hero {
  width: min(1520px, calc(100% - 18px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 320px;
  padding: 38px 32px 62px;
  border: 1px solid rgba(223, 232, 227, 0.86);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.os-hero::after {
  width: 180px;
  height: 120px;
  opacity: 0.55;
}
.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.12;
}
.hero-copy .lead {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 17px;
}
.today-card {
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(40, 69, 56, 0.09);
}
.stat-strip {
  width: min(1440px, calc(100% - 68px));
  margin: -42px auto 18px;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(40, 69, 56, 0.08);
}
.stat-strip a {
  min-height: 96px;
  padding: 14px 12px;
}
.stat-strip strong {
  font-size: 24px;
}
.dashboard-layout {
  width: min(1520px, calc(100% - 18px));
  margin: 0 auto 10px;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.85fr);
  gap: 12px;
  padding: 0 28px 26px;
}
.main-panel, .side-panel {
  gap: 12px;
}
.section-heading.compact {
  margin-bottom: 8px;
}
.section-heading.compact h2 {
  font-size: 20px;
}
.section-heading.compact .eyebrow {
  margin-bottom: 6px;
  font-size: 12px;
}
.module-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.module-card {
  min-height: 150px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(40, 69, 56, 0.05);
}
.module-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}
.module-card p {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.module-card strong {
  font-size: 13px;
}
.activity-list, .info-card, .workflow-card {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(40, 69, 56, 0.05);
}
.activity-list a {
  grid-template-columns: 88px 92px minmax(0, 1fr) auto;
  padding: 12px 14px;
}
.activity-list p {
  font-size: 13px;
  line-height: 1.55;
}
.workflow-card {
  padding: 14px;
}
.workflow-steps {
  gap: 8px;
}
.workflow-steps button {
  min-height: 106px;
  padding: 12px;
  border-radius: 12px;
}
.workflow-steps strong {
  margin-bottom: 4px;
  font-size: 20px;
}
.workflow-steps p {
  font-size: 12px;
  line-height: 1.45;
}
.info-card {
  padding: 14px;
}
.info-card h2 {
  font-size: 19px;
}
.info-card p {
  margin-bottom: 10px;
  font-size: 13px;
}
.progress-card {
  grid-template-columns: minmax(0, 1fr) auto 44px;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
}
.progress-card a strong {
  font-size: 14px;
}
.progress-card small {
  font-size: 12px;
}
.milestones {
  gap: 5px;
}
.milestones button {
  width: 12px;
  height: 12px;
}
.formula {
  margin: 10px 0 0;
  padding: 10px;
  font-size: 13px;
}
.mini-metrics {
  gap: 8px;
}
.mini-metrics span {
  padding: 10px;
}
.mini-metrics b {
  font-size: 18px;
}
.sparkline {
  min-height: 42px;
  padding: 8px;
}
.search-card input {
  height: 40px;
}
.filter-row {
  gap: 6px;
}
.filter-row button {
  padding: 7px 10px;
}
.note-grid {
  gap: 10px;
}
.note-grid div, .note-grid button {
  padding: 14px;
  border-radius: 12px;
}
.footer {
  width: min(1520px, calc(100% - 18px));
  margin: 0 auto 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}
@media (max-width: 1280px) {
  .module-grid, .workflow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .site-header, .os-hero, .dashboard-layout, .footer {
    width: min(100% - 14px, 760px);
  }
  .os-hero {
    padding: 34px 20px 42px;
  }
  .stat-strip {
    width: min(100% - 28px, 720px);
    margin-top: 12px;
  }
  .dashboard-layout {
    padding: 0 0 22px;
  }
}

/* Restore the calmer first-layout feeling, with light blue as the main tone. */
:root {
  --bg: #f7fbff;
  --surface-soft: #eef7ff;
  --cream: #f6fbff;
  --ink: #152238;
  --text: #34445a;
  --muted: #6b7c91;
  --line: #dbe8f4;
  --green: #2d7fd3;
  --green-soft: #e8f3ff;
  --teal: #2e9ab6;
  --blue: #2d7fd3;
  --blue-soft: #eaf5ff;
  --shadow: 0 22px 60px rgba(55, 105, 155, 0.10);
}
body {
  background:
    radial-gradient(circle at top left, rgba(45, 127, 211, 0.13), transparent 390px),
    radial-gradient(circle at top right, rgba(116, 190, 225, 0.16), transparent 420px),
    var(--bg);
}
.site-header {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(219, 232, 244, 0.9);
  border-radius: 0;
  box-shadow: none;
  background: rgba(247, 251, 255, 0.84);
}
.brand-mark, .brand-badge {
  background: var(--blue-soft);
  color: #1f67af;
}
.nav a:hover, .nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.os-hero {
  width: 100%;
  min-height: 430px;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px) 70px;
  border: 0;
  border-bottom: 1px solid rgba(219, 232, 244, 0.84);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(234, 245, 255, 0.9), rgba(247, 251, 255, 0.74)),
    radial-gradient(circle at 68% 42%, rgba(45, 127, 211, 0.12), transparent 360px);
}
.os-hero::after {
  right: 22%;
  bottom: -34px;
  width: 260px;
  height: 170px;
  opacity: 0.7;
  background: linear-gradient(180deg, rgba(116, 190, 225, 0.18), rgba(45, 127, 211, 0.1));
}
.hero-copy h1 {
  max-width: 860px;
  font-size: clamp(44px, 7vw, 82px);
}
.hero-copy .lead {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 22px);
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
}
.today-card {
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(55, 105, 155, 0.12);
}
.stat-strip {
  width: min(1180px, calc(100% - 48px));
  margin: -36px auto 0;
  border-radius: 18px;
}
.dashboard-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: clamp(46px, 7vw, 76px) clamp(18px, 5vw, 72px);
}
.main-panel, .side-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px;
}
.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.module-card {
  min-height: 206px;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 14px 42px rgba(55, 105, 155, 0.07);
}
.module-card h3 {
  font-size: 21px;
}
.module-card p {
  font-size: 15px;
}
.module-card.green,
.module-card.blue,
.module-card.violet,
.module-card.red,
.module-card.amber,
.doc-module {
  background: linear-gradient(135deg, #ffffff, var(--blue-soft));
}
.activity-list, .info-card, .workflow-card {
  border-radius: 18px;
  box-shadow: 0 14px 42px rgba(55, 105, 155, 0.07);
}
.activity-list a {
  grid-template-columns: 120px 120px minmax(0, 1fr) auto;
  padding: 18px 20px;
}
.workflow-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.workflow-steps button,
.workflow-steps a {
  min-height: 132px;
  padding: 18px;
  border-radius: 16px;
}
.side-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}
.side-panel .info-card:first-child {
  grid-column: 1 / -1;
}
.progress-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.progress-card {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 150px;
}
.milestones {
  margin-top: 6px;
}
.progress-percent {
  font-size: 24px;
}
.formula {
  margin-top: 14px;
}
.search-result-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.search-result-list a {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.search-result-list strong {
  color: var(--ink);
}
.search-result-list span {
  color: var(--muted);
  font-size: 13px;
}
.search-empty {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.footer {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
}
@media (max-width: 980px) {
  .module-grid, .workflow-steps, .side-panel, .progress-list {
    grid-template-columns: 1fr;
  }
  .activity-list a {
    grid-template-columns: 1fr;
  }
}

/* Final reset: restore the original warm green palette and keep search near the top. */
:root {
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-soft: #f1f6f3;
  --cream: #fbf7ef;
  --ink: #17211d;
  --text: #394640;
  --muted: #6f7d76;
  --line: #dfe8e3;
  --green: #2fa36b;
  --green-soft: #dff5e9;
  --teal: #1f9a9a;
  --blue: #5a9bd8;
  --blue-soft: #e8f3ff;
  --shadow: 0 24px 70px rgba(40, 69, 56, 0.10);
}
body {
  background:
    radial-gradient(circle at top left, rgba(47, 163, 107, 0.12), transparent 360px),
    radial-gradient(circle at top right, rgba(90, 155, 216, 0.16), transparent 420px),
    var(--bg);
}
.site-header {
  background: rgba(247, 249, 246, 0.82);
  border-bottom-color: rgba(223, 232, 227, 0.82);
}
.brand-mark {
  background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
  color: #167450;
}
.brand-badge {
  background: var(--green-soft);
  color: #176647;
}
.nav a:hover, .nav a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.os-hero {
  background:
    linear-gradient(180deg, rgba(232, 243, 255, 0.9), rgba(247, 249, 246, 0.72)),
    radial-gradient(circle at 70% 40%, rgba(47, 163, 107, 0.16), transparent 320px);
}
.os-hero::after {
  background: linear-gradient(180deg, rgba(90, 155, 216, 0.16), rgba(47, 163, 107, 0.12));
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
}
.module-card.green,
.module-card.blue,
.module-card.violet,
.module-card.red,
.module-card.amber,
.doc-module {
  background: linear-gradient(135deg, #ffffff, var(--green-soft));
}
.dashboard-search-top {
  margin-bottom: 8px;
}
.dashboard-search-top h2 {
  font-size: 22px;
}
.dashboard-search-top .search-result-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .dashboard-search-top .search-result-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile final polish: prevent cards and dashboard bands from sticking out of the viewport. */
@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    background:
      radial-gradient(circle at top left, rgba(47, 163, 107, 0.10), transparent 260px),
      var(--bg);
  }
  .site-header,
  .os-hero,
  .dashboard-layout,
  .footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .site-header {
    padding: 14px 16px;
    gap: 12px;
  }
  .brand {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .brand-badge {
    flex: 0 0 auto;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav a,
  .nav-tool {
    flex: 0 0 auto;
  }
  .os-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 36px 16px 28px;
  }
  .os-hero::after {
    display: none;
  }
  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 44px);
  }
  .hero-copy .lead {
    font-size: 16px;
  }
  .today-card,
  .info-card,
  .workflow-card,
  .activity-list,
  .module-card,
  .progress-card,
  .note-grid div,
  .note-grid button {
    max-width: 100%;
    box-shadow: 0 10px 28px rgba(40, 69, 56, 0.06);
  }
  .stat-strip {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 16px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
  }
  .stat-strip a {
    min-width: 0;
    min-height: 92px;
    padding: 14px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-strip a:nth-last-child(-n+2) {
    border-bottom: 0;
  }
  .stat-strip strong {
    font-size: 23px;
  }
  .dashboard-layout {
    padding: 28px 16px 34px;
  }
  .main-panel,
  .side-panel {
    width: 100%;
    max-width: 100%;
  }
  .module-grid,
  .workflow-steps,
  .side-panel,
  .progress-list,
  .note-grid,
  .mini-metrics {
    grid-template-columns: 1fr;
  }
  .module-card {
    min-height: 0;
    padding: 18px;
  }
  .activity-list a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
  .workflow-steps button,
  .workflow-steps a {
    min-height: 0;
  }
  .progress-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .milestones {
    flex-wrap: wrap;
  }
  .search-card input {
    min-width: 0;
  }
  .filter-row {
    max-width: 100%;
  }
  .filter-row button {
    flex: 0 0 auto;
  }
  .docs-modal {
    width: calc(100vw - 24px);
  }
}

/* Keep quick search as a true top-level tool on desktop and mobile. */
.top-search-band {
  padding: 18px clamp(18px, 5vw, 72px) 0;
}
.top-search-band .dashboard-search-top {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.top-search-band + .os-hero {
  padding-top: clamp(42px, 6vw, 78px);
}
@media (max-width: 760px) {
  .top-search-band {
    padding: 14px 16px 0;
  }
  .top-search-band .dashboard-search-top {
    width: 100%;
    margin: 0;
  }
  .top-search-band + .os-hero {
    padding-top: 28px;
  }
}

/* Put search back inside the hero so the first screen feels like one Growth OS surface. */
.hero-search {
  max-width: 720px;
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}
.hero-search h2 {
  margin-bottom: 10px;
  font-size: 20px;
}
.hero-search .search-result-list {
  grid-template-columns: 1fr;
}
.workflow-detail {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(47, 163, 107, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(223, 245, 233, 0.72), rgba(255, 255, 255, 0.92));
  color: var(--text);
  font-weight: 800;
}
@media (max-width: 760px) {
  .hero-search {
    max-width: 100%;
    margin-bottom: 16px;
    padding: 14px;
  }
  .hero-search h2 {
    font-size: 18px;
  }
}

/* Final hero placement: search sits in the upper-right open space marked by the user. */
.os-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
  min-height: 560px;
  padding-top: clamp(72px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 82px);
}
.hero-copy {
  max-width: 900px;
  align-self: start;
}
.hero-search {
  position: absolute;
  top: clamp(34px, 4.8vw, 62px);
  right: clamp(34px, 6vw, 92px);
  width: min(720px, 58vw);
  max-width: none;
  margin: 0;
  z-index: 2;
}
.today-card {
  align-self: end;
  margin-bottom: 18px;
}
@media (max-width: 1180px) {
  .hero-search {
    width: min(560px, 52vw);
  }
}
@media (max-width: 900px) {
  .os-hero {
    min-height: 0;
    padding-top: 26px;
  }
  .hero-search {
    position: static;
    width: 100%;
    margin: 18px 0;
  }
  .today-card {
    margin-bottom: 0;
  }
}

/* Final placement: search becomes the top tool row above the hero title. */
.os-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 5vw, 72px);
  row-gap: clamp(20px, 3vw, 34px);
  align-items: start;
  min-height: 560px;
  padding-top: clamp(52px, 6vw, 86px);
  padding-bottom: clamp(58px, 7vw, 84px);
}
.hero-search {
  position: static;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  width: min(1220px, 100%);
  max-width: none;
  margin: 0;
  padding: 16px 18px;
  z-index: 2;
}
.hero-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}
.today-card {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
}
@media (max-width: 900px) {
  .os-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: 24px;
  }
  .hero-search,
  .hero-copy,
  .today-card {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
}

/* Stable responsive hero: compact on desktop, visible and stacked on smaller screens. */
.os-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  grid-template-rows: auto auto;
  column-gap: clamp(22px, 5vw, 70px);
  row-gap: clamp(12px, 1.8vw, 20px);
  align-items: start;
  min-height: auto;
  padding: clamp(24px, 3.4vw, 38px) clamp(18px, 5vw, 72px) clamp(48px, 6vw, 70px);
}
.hero-search {
  position: static;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  width: min(1180px, 100%);
  max-width: none;
  margin: 0;
  padding: 13px 16px;
}
.hero-search h2 {
  margin-bottom: 8px;
  font-size: 19px;
}
.hero-search .filter-row {
  margin-top: 10px;
}
.hero-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  max-width: 900px;
}
.today-card {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
}
.dashboard-layout {
  padding-top: clamp(34px, 5vw, 54px);
}
.module-grid {
  align-items: stretch;
}
.module-card {
  min-height: 164px;
  padding: 18px;
}
.module-card h3 {
  margin-bottom: 8px;
}
.module-card p {
  margin-bottom: 12px;
  line-height: 1.5;
}
@media (min-width: 1440px) {
  .hero-copy h1 {
    font-size: clamp(58px, 5.4vw, 92px);
  }
}
@media (max-width: 1180px) {
  .os-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    padding-top: 24px;
  }
  .hero-search {
    width: 100%;
  }
}
@media (max-width: 900px) {
  .os-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 18px;
    padding: 16px 16px 28px;
  }
  .hero-search,
  .hero-copy,
  .today-card {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
  .hero-search {
    padding: 13px;
  }
  .today-card {
    margin: 0;
  }
}
@media (max-width: 520px) {
  .hero-search h2 {
    font-size: 17px;
  }
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .filter-row button {
    white-space: nowrap;
  }
}

/* Align the hero search card with the metric strip below it. */
.hero-search,
.stat-strip {
  width: min(1440px, calc(100% - 96px));
  max-width: none;
}
.hero-search {
  justify-self: center;
}
.stat-strip {
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .hero-search,
  .stat-strip {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }
}

/* Exact edge alignment: compensate for hero padding so search matches the metric strip border. */
.hero-search {
  width: min(1440px, calc(100vw - 96px));
}
@media (max-width: 900px) {
  .hero-search {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
}

/* Knowledge asset system */
.asset-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.asset-toolbar button,
.compact-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  cursor: pointer;
  font-weight: 900;
}
.asset-toolbar button {
  padding: 8px 13px;
}
.asset-toolbar button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.asset-list {
  display: grid;
  gap: 14px;
}
.asset-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(40, 69, 56, 0.06);
}
.asset-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.asset-card h3 {
  margin: 8px 0;
}
.asset-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}
.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.asset-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #176647;
  font-size: 12px;
  font-weight: 900;
}
.manager-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
}
.manager-form {
  display: grid;
  gap: 14px;
}
.manager-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 900;
}
.manager-form input,
.manager-form textarea,
.manager-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}
.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.button.danger {
  color: #b42318;
}
.manager-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.import-button input {
  display: none;
}
.compact-list button {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
}
.compact-list span {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .manager-layout {
    grid-template-columns: 1fr;
  }
}

.project-library {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-line {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 249, 241, 0.9));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.35rem;
}

.project-line h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  margin: 0.3rem 0 0.6rem;
}

.project-line p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.sub-library {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.15rem;
}

.sub-library a {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 116, 84, 0.16);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  padding: 0.55rem 0.8rem;
}

.sub-library a:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.local-search {
  margin: 0 0 1rem;
}

.local-search label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 0.45rem;
}

.local-search input {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 1rem;
  width: min(100%, 720px);
}

.local-search input:focus {
  border-color: rgba(36, 163, 112, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 163, 112, 0.12);
  outline: none;
}

.local-search-empty {
  margin-top: -0.2rem;
}

@media (max-width: 820px) {
  .project-library {
    grid-template-columns: 1fr;
  }

  .project-line {
    border-radius: 18px;
    padding: 1.05rem;
  }
}
