:root {
  --ink: #1d2528;
  --muted: #667277;
  --line: #d9e0df;
  --paper: #f6f3ea;
  --surface: #fffdf7;
  --green: #2f7d61;
  --blue: #286d91;
  --gold: #b47a2a;
  --rose: #b95f63;
  --violet: #755f9b;
  --shadow: 0 18px 45px rgba(44, 54, 55, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(47, 125, 97, 0.12), transparent 28%),
    linear-gradient(250deg, rgba(40, 109, 145, 0.12), transparent 34%),
    var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(14px);
  overflow: auto;
}

.brand-lockup {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--green) 0 45%, var(--gold) 45% 64%, var(--blue) 64% 100%);
  box-shadow: var(--shadow);
}

.kicker,
.label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

h4 {
  margin-bottom: 12px;
}

.north-card,
.source-note,
.progress-panel,
.watch-panel,
.system-grid article,
.lane-card,
.task-card {
  border: 1px solid rgba(29, 37, 40, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
}

.north-card {
  padding: 18px;
  margin-bottom: 20px;
}

.north-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.north-card p:last-of-type {
  color: var(--muted);
  line-height: 1.55;
}

.meter,
.big-progress,
.lane-progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e5e2d7;
}

.meter span,
.big-progress span,
.lane-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.unit-nav {
  display: grid;
  gap: 10px;
}

.unit-button {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.unit-button:hover,
.unit-button.active {
  border-color: rgba(47, 125, 97, 0.26);
  background: rgba(47, 125, 97, 0.1);
}

.unit-button strong {
  display: block;
  margin-bottom: 4px;
}

.unit-button span {
  color: var(--muted);
  font-size: 13px;
}

.source-note {
  margin-top: 22px;
  padding: 16px;
}

.source-note p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.main-content {
  padding: 34px clamp(22px, 4vw, 56px) 64px;
}

.topbar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.subtle {
  color: var(--muted);
  line-height: 1.6;
}

.status-pill {
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 122, 42, 0.32);
  border-radius: 8px;
  color: #6f4918;
  background: rgba(180, 122, 42, 0.12);
  font-weight: 700;
  line-height: 1.45;
}

.overview-grid,
.system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.progress-panel,
.watch-panel,
.system-grid article {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 800;
}

.big-progress {
  height: 14px;
  margin-bottom: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 86px;
  padding: 13px;
  border-radius: 8px;
  background: #eef3f1;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 9px;
  font-size: 22px;
}

.watch-panel ul,
.system-grid ul {
  display: grid;
  gap: 11px;
  padding-left: 18px;
  margin: 0;
  line-height: 1.55;
}

.section-title {
  margin: 34px 0 16px;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.verification-card {
  min-height: 180px;
  padding: 16px;
  border: 1px solid rgba(29, 37, 40, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
}

.verification-top {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.verification-top strong {
  font-size: 16px;
  line-height: 1.35;
}

.verification-top span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(40, 109, 145, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.verification-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.verification-card a {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.verification-card a:hover {
  text-decoration: underline;
}

.strategy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.strategy-tab {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.strategy-tab.active,
.strategy-tab:hover {
  border-color: rgba(47, 125, 97, 0.38);
  background: rgba(47, 125, 97, 0.12);
}

.strategy-page {
  padding: 22px;
  border: 1px solid rgba(29, 37, 40, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
}

.strategy-page-head {
  max-width: 980px;
  margin-bottom: 18px;
}

.strategy-page-head h4 {
  margin-bottom: 8px;
  font-size: 22px;
}

.strategy-page-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  padding: 18px;
  border: 1px solid rgba(29, 37, 40, 0.1);
  border-radius: 8px;
  background: #f7faf8;
}

.case-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.case-top span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.case-top a {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  text-decoration: none;
}

.case-top a:hover {
  text-decoration: underline;
}

.case-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.case-card dt {
  color: var(--ink);
  font-weight: 900;
}

.case-card dd {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

.case-source {
  margin: 14px 0 0;
  color: #7a5a25;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lane-card {
  padding: 20px;
}

.lane-card:nth-child(4n + 1) {
  border-top: 4px solid var(--green);
}

.lane-card:nth-child(4n + 2) {
  border-top: 4px solid var(--blue);
}

.lane-card:nth-child(4n + 3) {
  border-top: 4px solid var(--rose);
}

.lane-card:nth-child(4n + 4) {
  border-top: 4px solid var(--violet);
}

.lane-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lane-card p {
  color: var(--muted);
  line-height: 1.6;
}

.lane-card ul {
  padding-left: 18px;
  margin-bottom: 0;
  line-height: 1.6;
}

.task-candidates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.task-card {
  padding: 18px;
}

.task-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.task-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8edf0;
  color: #3e4b50;
  font-size: 13px;
  font-weight: 700;
}

.task-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.timeline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--blue);
  background: rgba(40, 109, 145, 0.12);
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.event {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(29, 37, 40, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.76);
}

.event-date {
  color: var(--blue);
  font-weight: 900;
}

.event h4 {
  margin: 0 0 6px;
}

.event p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.event-source {
  color: #7a5a25;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .app-shell,
  .overview-grid,
  .case-grid,
  .verification-grid,
  .lanes,
  .task-candidates,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .topbar {
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .main-content,
  .sidebar {
    padding: 20px;
  }

  h2 {
    font-size: 28px;
  }

  .metric-grid,
  .event {
    grid-template-columns: 1fr;
  }
}
