:root {
  --bg: #f5f7fb;
  --sidebar: #16243d;
  --sidebar-soft: #223654;
  --text: #1f2937;
  --muted: #667085;
  --line: #d9e0ea;
  --panel: #ffffff;
  --blue: #2266d1;
  --cyan: #15aabf;
  --green: #2e9d68;
  --amber: #d9822b;
  --red: #c94141;
  --violet: #7757c2;
  --shadow: 0 18px 45px rgba(28, 39, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(9, 39, 73, 0.9), rgba(24, 93, 159, 0.82)),
    #0f2d4c;
}

.login-screen[hidden] {
  display: none;
}

.login-card {
  display: grid;
  gap: 16px;
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(4, 18, 37, 0.28);
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card h1 {
  font-size: 28px;
  line-height: 1.2;
}

.login-card p {
  color: var(--muted);
  line-height: 1.7;
}

.login-eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: #43536a;
  font-size: 13px;
  font-weight: 700;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  padding: 18px 14px 14px;
  color: #eef5ff;
  background:
    linear-gradient(180deg, rgba(21, 170, 191, 0.13), transparent 34%),
    var(--sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 2px 6px 16px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e7f0ff;
  color: var(--blue);
  font-weight: 800;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 3px;
  color: #9fb4d3;
  font-size: 12px;
}

.nav-list {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.nav-list::-webkit-scrollbar {
  width: 6px;
}

.nav-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c7d6ed;
  background: transparent;
  font-size: 13px;
  text-align: left;
}

.nav-item > span:last-child {
  min-width: 0;
  line-height: 1.25;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--sidebar-soft);
  color: #ffffff;
}

.nav-overview {
  margin-bottom: 4px;
}

.nav-section {
  --nav-accent: #15aabf;
  --nav-accent-soft: rgba(21, 170, 191, 0.12);
  display: grid;
  gap: 5px;
  padding: 8px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.nav-section-before,
.nav-section-project {
  --nav-accent: #15aabf;
  --nav-accent-soft: rgba(21, 170, 191, 0.13);
}

.nav-section-during,
.nav-section-plan {
  --nav-accent: #2e9d68;
  --nav-accent-soft: rgba(46, 157, 104, 0.14);
}

.nav-section-topic {
  --nav-accent: #8b6bd6;
  --nav-accent-soft: rgba(139, 107, 214, 0.14);
}

.nav-section-after,
.nav-section-ownership {
  --nav-accent: #d7a642;
  --nav-accent-soft: rgba(215, 166, 66, 0.15);
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px 2px;
  color: #dce8fb;
  font-size: 12px;
  font-weight: 800;
}

.nav-section-title span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--nav-accent);
  box-shadow: 0 0 0 4px var(--nav-accent-soft);
}

.nav-section .nav-item {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 7px;
}

.nav-subgroup {
  display: grid;
  gap: 4px;
  padding: 5px 0 5px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-subgroup + .nav-subgroup {
  margin-top: 2px;
}

.nav-subgroup-title {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  color: #c8d9f1;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.nav-section .nav-item:hover,
.nav-section .nav-item.active {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--nav-accent-soft);
}

.nav-section .nav-item:hover .nav-icon,
.nav-section .nav-item.active .nav-icon {
  background: var(--nav-accent);
  color: #ffffff;
}

.nav-icon {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: auto;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #b9c9e4;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #28c76f;
}

.main {
  min-width: 0;
  padding: 24px 30px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 22px;
}

.topbar #page-title,
.topbar #page-desc,
.topbar > :not(.topbar-actions):not(.auth-area) {
  display: none !important;
}

.section-title-row h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.section-title-row p,
.panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.data-source-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.data-source-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #d8e4f4;
  border-radius: 999px;
  background: #f8fbff;
  color: #496178;
  font-size: 13px;
}

.topbar-actions,
.filter-actions,
.drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(33, 47, 76, 0.05);
}

.auth-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.auth-area select {
  width: 170px;
  min-height: 30px;
  border: 0;
  background: #f7fbff;
  font-weight: 700;
}

.auth-badge {
  min-width: 42px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f5ea8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  border-radius: 7px;
  border: 1px solid transparent;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.primary-button {
  min-height: 38px;
  padding: 0 15px;
  background: var(--blue);
  color: #fff;
}

.secondary-button {
  min-height: 38px;
  padding: 0 15px;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.text-button {
  min-height: 30px;
  padding: 0 10px;
  border-color: #c9d6e8;
  background: #f7fbff;
  color: #1758b5;
}

.text-button.approve {
  border-color: #b8dec8;
  background: #eef9f2;
  color: #24734e;
}

.text-button.danger {
  border-color: #efc4c4;
  background: #fff4f4;
  color: #ad3434;
}

.text-button.restricted,
.primary-button.restricted,
.secondary-button.restricted {
  border-color: #d8dfe9;
  background: #f4f6f9;
  color: #78869a;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  font-size: 18px;
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.embedded-system-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 170px);
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f6f7f9;
  box-shadow: 0 12px 28px rgba(28, 43, 68, 0.06);
}

.post-evaluation-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.post-evaluation-kpi {
  min-width: 0;
  min-height: 108px;
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 39, 67, 0.05);
}

.post-evaluation-kpi:nth-child(2) {
  border-left-color: var(--blue);
}

.post-evaluation-kpi:nth-child(3) {
  border-left-color: var(--cyan);
}

.post-evaluation-kpi:nth-child(4) {
  border-left-color: var(--green);
}

.post-evaluation-kpi:nth-child(5) {
  border-left-color: var(--violet);
}

.post-evaluation-kpi:nth-child(6) {
  border-left-color: var(--red);
}

.post-evaluation-kpi span,
.post-evaluation-kpi small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.post-evaluation-kpi strong {
  display: block;
  margin: 10px 0 8px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(19px, 1.45vw, 28px);
  line-height: 1.15;
}

.post-evaluation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.equity-return-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.equity-return-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #dde7f2;
  border-radius: 8px;
  background: #f9fbfe;
}

.equity-return-card strong,
.equity-return-card span {
  display: block;
  min-width: 0;
}

.equity-return-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.equity-return-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(86px, 1fr)) minmax(76px, auto);
  gap: 8px;
  align-items: center;
}

.equity-return-metrics span {
  margin: 0;
  padding: 7px 8px;
  border-radius: 7px;
  background: #eef4fb;
  color: #40516a;
  font-weight: 700;
}

.equity-return-metrics em,
.return-rate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
}

.equity-return-metrics em.healthy,
.return-rate-pill.positive {
  background: #e9f8f1;
  color: #1f7a4b;
}

.equity-return-metrics em.warning {
  background: #fff7e8;
  color: #9a621d;
}

.equity-return-metrics em.danger,
.return-rate-pill.negative {
  background: #fff1f0;
  color: #b42318;
}

.equity-return-bar {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.equity-return-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d9822b;
}

.equity-return-bar.healthy b {
  background: #2e9d68;
}

.equity-return-bar.danger b {
  background: #c94141;
}

.post-evaluation-progress {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #f7fafc;
}

.post-evaluation-ring {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border: 10px solid #e5edf6;
  border-top-color: var(--green);
  border-right-color: var(--green);
  border-radius: 999px;
  text-align: center;
}

.post-evaluation-ring strong,
.post-evaluation-ring span {
  display: block;
}

.post-evaluation-ring strong {
  color: var(--text);
  font-size: 20px;
}

.post-evaluation-ring span {
  color: var(--muted);
  font-size: 12px;
}

.post-evaluation-progress-meta {
  display: grid;
  gap: 8px;
}

.post-evaluation-progress-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #ffffff;
}

.post-evaluation-progress-meta span {
  color: var(--muted);
}

.post-evaluation-status-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.post-evaluation-status-row {
  display: grid;
  grid-template-columns: 78px 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.post-evaluation-status-row i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.post-evaluation-status-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.post-evaluation-table-section {
  margin-bottom: 18px;
}

.post-evaluation-table {
  min-width: 1180px;
}

.muted-text {
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 112px;
  min-width: 0;
  padding: 17px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(27, 39, 67, 0.06);
}

.metric-card:nth-child(2) {
  border-left-color: var(--amber);
}

.metric-card:nth-child(3) {
  border-left-color: var(--cyan);
}

.metric-card:nth-child(4) {
  border-left-color: var(--green);
}

.metric-card:nth-child(5) {
  border-left-color: var(--cyan);
}

.metric-card:nth-child(6) {
  border-left-color: var(--red);
}

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

.metric-card strong {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 1.65vw, 31px);
  line-height: 1.12;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: #7c8aa0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(320px, 0.9fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel,
.table-panel,
.filter-bar,
.compact-stat,
.progress-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(33, 47, 76, 0.06);
}

.panel {
  padding: 20px;
}

.panel-head,
.section-title-row,
.subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.subsection-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #d9e4f3;
  border-radius: 8px;
  background: #f5f8fd;
}

.segmented-control button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #51627a;
  font-size: 12px;
  font-weight: 700;
}

.segmented-control button.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 2px 6px rgba(31, 94, 168, 0.12);
}

.segmented-control.mini button {
  min-height: 26px;
  padding: 0 9px;
}

.page-size-field {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.page-size-field select {
  height: 34px;
  min-width: 92px;
  padding: 0 28px 0 10px;
  border: 1px solid #d9e1ea;
  border-radius: 4px;
  background: #fff;
  color: #51627a;
  font-size: 13px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.pagination-module {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.pagination-total {
  color: #475569;
  white-space: nowrap;
}

.pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-page,
.pagination-nav,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: #f3f4f6;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.pagination-page.active {
  background: #1e90ff;
  color: #fff;
}

.pagination-nav {
  color: #64748b;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.pagination-page:not(.active):hover,
.pagination-nav:not(:disabled):hover {
  background: #e8eef6;
  color: #1f5ea8;
}

.pagination-nav:disabled,
.pagination-page:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-ellipsis {
  background: #f3f4f6;
  letter-spacing: 1px;
}

.pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

.pagination-jump input {
  width: 54px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #d9e1ea;
  border-radius: 4px;
  color: #2563eb;
  text-align: center;
}

.panel-head h3,
.subsection h3 {
  margin: 0;
  font-size: 18px;
}

.panel-badge,
.result-count,
.current-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f5ea8;
  font-size: 13px;
  white-space: nowrap;
}

.panel-badge.danger {
  background: #fff2f2;
  color: var(--red);
}

.chart-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.legend {
  display: grid;
  gap: 12px;
}

.legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e6ecf5;
  border-radius: 8px;
  background: #fbfcff;
}

.legend-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.legend-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-copy small {
  color: var(--muted);
  font-size: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.warning-panel {
  min-height: 376px;
}

.warning-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed #e0b5b5;
  border-radius: 8px;
  background: #fff8f8;
}

.warning-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.warning-placeholder strong,
.warning-placeholder span {
  display: block;
}

.warning-placeholder span {
  margin-top: 5px;
  color: var(--muted);
}

.warning-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.warning-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  border-radius: 7px;
  background: #fffaf2;
  color: #5f4120;
}

.type-distribution {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.type-bar-item {
  display: grid;
  gap: 8px;
}

.type-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #415067;
  font-size: 13px;
}

.type-bar-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-bar-head strong {
  flex: 0 0 auto;
  color: var(--text);
}

.type-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.type-bar-meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3fb;
}

.type-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e9d68, #15aabf);
}

.unit-stage-panel {
  margin-bottom: 18px;
}

.unit-stage-matrix {
  max-height: 520px;
  overflow: auto;
  margin-top: 18px;
  padding-right: 4px;
}

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

.unit-stage-card {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(430px, 0.92fr);
  gap: 16px;
  align-items: center;
  min-width: 880px;
  padding: 13px 14px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 39, 67, 0.045);
}

.unit-stage-left {
  display: grid;
  grid-template-columns: minmax(128px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.unit-stage-left > strong {
  min-width: 0;
  overflow: hidden;
  color: #24324a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-stage-visual {
  display: grid;
  grid-template-columns: repeat(5, minmax(68px, 1fr));
  gap: 8px;
}

.unit-stage-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid #e4ebf5;
  border-left: 4px solid #96a4b8;
  border-radius: 8px;
  background: #f8fbff;
}

.unit-stage-chip.setup {
  border-left-color: #e49b38;
}

.unit-stage-chip.plan {
  border-left-color: #4c8eda;
}

.unit-stage-chip.review {
  border-left-color: var(--cyan);
}

.unit-stage-chip.active {
  border-left-color: #2e9d68;
}

.unit-stage-chip.done {
  border-left-color: #8067c8;
}

.unit-stage-chip b {
  color: #17395f;
  font-size: 18px;
  line-height: 1;
}

.unit-stage-chip small {
  min-width: 0;
  overflow: hidden;
  color: #627086;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-stage-right {
  display: grid;
  grid-template-columns: 0.68fr 1fr 1fr minmax(120px, 0.8fr);
  gap: 10px;
  align-items: center;
}

.unit-stage-right > div {
  display: grid;
  gap: 3px;
  min-height: 42px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f5f8fc;
}

.unit-stage-right span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.unit-stage-right strong {
  color: #24324a;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.unit-stage-right .unit-stage-rate {
  gap: 6px;
}

.unit-stage-rate span {
  color: #1f5ea8;
  font-weight: 800;
}

.unit-stage-rate i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf5;
}

.unit-stage-rate b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #54a3df, #2e9d68);
}

.section-title-row {
  margin-bottom: 16px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(142px, 1fr)) minmax(220px, 1.35fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #4c596b;
  font-size: 13px;
}

select,
input {
  width: 100%;
  height: 38px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
}

select {
  padding: 0 10px;
}

#library-filter,
#implementation-library-filter {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  overflow: visible;
}

#library-filter .search-field,
#implementation-library-filter .search-field {
  grid-column: span 2;
}

#library-filter .filter-actions,
#implementation-library-filter .filter-actions {
  align-self: end;
}

.implementation-library-title {
  align-items: start;
  gap: 20px;
}

.implementation-plan-year-filter {
  min-width: min(320px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 12px;
}

.implementation-plan-year-filter .field-label {
  grid-column: 1 / -1;
}

.implementation-plan-year-filter .multi-select-filter {
  min-width: 220px;
}

.implementation-import-panel {
  margin-bottom: 14px;
}

.implementation-import-panel .panel-head {
  align-items: center;
}

.implementation-import-bar {
  display: grid;
  grid-template-columns: minmax(110px, 0.4fr) minmax(110px, 0.35fr) auto auto minmax(160px, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.implementation-import-bar label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.implementation-import-bar input,
.implementation-import-bar select {
  height: 38px;
}

.implementation-import-file {
  align-self: end;
}

#implementation-import-status {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
}

.implementation-import-result {
  margin-top: 12px;
}

.implementation-import-history {
  margin-top: 12px;
}

.implementation-import-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7fafc;
}

.implementation-import-summary strong {
  color: var(--text);
}

.implementation-import-errors {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #f3d2c2;
  border-radius: 8px;
  background: #fff8f2;
  color: #9a4d16;
  font-size: 13px;
}

.quarter-import-records {
  display: grid;
  gap: 8px;
}

.quarter-import-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #f8fafc;
}

.quarter-import-card.pending {
  border-color: #e0c27a;
  background: #fff8e6;
}

.quarter-import-card.approved {
  border-color: #9ec9b8;
  background: #edf7f2;
}

.quarter-import-card.rejected {
  border-color: #d9a9a4;
  background: #fff1f0;
}

.quarter-import-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.quarter-import-main > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quarter-import-main p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

.quarter-import-main small {
  color: var(--muted);
}

.quarter-import-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #4c596b;
  font-size: 13px;
}

.field-label {
  font-weight: 600;
}

.multi-select-filter {
  position: relative;
  min-width: 0;
}

.multi-select-trigger {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.multi-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select-trigger b {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.multi-select-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #64748b;
  border-bottom: 1.5px solid #64748b;
  transform: rotate(45deg) translateY(-2px);
}

.multi-select-filter.open .multi-select-trigger {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.12);
}

.multi-select-filter.open .multi-select-trigger::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.multi-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(33, 47, 76, 0.16);
}

.multi-select-filter.open .multi-select-menu {
  display: grid;
  gap: 3px;
}

.multi-select-option {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.multi-select-option:hover {
  background: #f4f7fb;
}

.multi-select-option input {
  width: 14px;
  height: 14px;
}

.multi-select-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clear-option {
  color: var(--blue);
  border-bottom: 1px solid #edf1f7;
  border-radius: 6px 6px 0 0;
  margin-bottom: 2px;
}

.library-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: -2px 0 16px;
}

.library-summary-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 39, 67, 0.05);
}

.library-summary-card:nth-child(2) {
  border-left-color: var(--green);
}

.library-summary-card:nth-child(3) {
  border-left-color: var(--cyan);
}

.library-summary-card:nth-child(4) {
  border-left-color: var(--amber);
}

.library-summary-card:nth-child(5) {
  border-left-color: var(--violet);
}

.library-summary-card span,
.library-summary-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.library-summary-card strong {
  display: block;
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

input {
  padding: 0 12px;
}

.table-panel {
  overflow: auto;
}

.completion-table-panel {
  overflow-x: auto;
  overflow-y: hidden;
}

.todo-table-panel {
  overflow-x: auto;
  overflow-y: hidden;
}

table {
  width: 100%;
  min-width: 1500px;
  border-collapse: collapse;
  table-layout: fixed;
}

.completion-table {
  min-width: 1900px;
}

.todo-table {
  min-width: 1840px;
}

th:nth-child(1),
td:nth-child(1) {
  width: 126px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 188px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 112px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 132px;
}

th:nth-child(5),
td:nth-child(5) {
  width: 150px;
}

th:nth-child(6),
td:nth-child(6),
th:nth-child(7),
td:nth-child(7) {
  width: 116px;
}

th:nth-child(8),
td:nth-child(8) {
  width: 150px;
}

th:nth-child(9),
td:nth-child(9) {
  width: 156px;
}

.completion-table th:nth-child(1),
.completion-table td:nth-child(1) {
  width: 150px;
}

.completion-table th:nth-child(2),
.completion-table td:nth-child(2) {
  width: 210px;
}

.completion-table th:nth-child(3),
.completion-table td:nth-child(3) {
  width: 130px;
}

.completion-table th:nth-child(4),
.completion-table td:nth-child(4) {
  width: 140px;
}

.completion-table th:nth-child(5),
.completion-table td:nth-child(5),
.completion-table th:nth-child(6),
.completion-table td:nth-child(6),
.completion-table th:nth-child(7),
.completion-table td:nth-child(7) {
  width: 150px;
}

.completion-table th:nth-child(8),
.completion-table td:nth-child(8),
.completion-table th:nth-child(9),
.completion-table td:nth-child(9) {
  width: 120px;
}

.completion-table th:nth-child(10),
.completion-table td:nth-child(10) {
  width: 156px;
}

.completion-table th:nth-child(11),
.completion-table td:nth-child(11) {
  width: 190px;
}

.completion-table th:nth-child(12),
.completion-table td:nth-child(12) {
  width: 150px;
}

.completion-table th:nth-child(13),
.completion-table td:nth-child(13) {
  width: 110px;
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  box-shadow: -10px 0 18px rgba(33, 47, 76, 0.06);
  text-align: center;
}

.completion-table th:nth-child(13) {
  z-index: 2;
  background: #edf3fb;
}

.todo-table th:nth-child(1),
.todo-table td:nth-child(1) {
  width: 145px;
}

.todo-table th:nth-child(2),
.todo-table td:nth-child(2) {
  width: 220px;
}

.todo-table th:nth-child(3),
.todo-table td:nth-child(3) {
  width: 130px;
}

.todo-table th:nth-child(4),
.todo-table td:nth-child(4) {
  width: 150px;
}

.todo-table th:nth-child(5),
.todo-table td:nth-child(5) {
  width: 165px;
}

.todo-table th:nth-child(6),
.todo-table td:nth-child(6),
.todo-table th:nth-child(7),
.todo-table td:nth-child(7) {
  width: 120px;
}

.todo-table th:nth-child(8),
.todo-table td:nth-child(8) {
  width: 156px;
}

.todo-table th:nth-child(9),
.todo-table td:nth-child(9) {
  width: 190px;
}

.todo-table th:nth-child(10),
.todo-table td:nth-child(10) {
  width: 150px;
}

.todo-table th:nth-child(11),
.todo-table td:nth-child(11) {
  width: 300px;
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  box-shadow: -10px 0 18px rgba(33, 47, 76, 0.06);
  text-align: center;
}

.todo-table th:nth-child(11) {
  z-index: 2;
  background: #edf3fb;
}

thead {
  background: #edf3fb;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #e7edf5;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #516073;
  font-size: 13px;
  font-weight: 700;
}

td {
  font-size: 14px;
}

tbody tr:hover {
  background: #f8fbff;
}

.name-cell {
  font-weight: 700;
}

.number-cell {
  color: #47617f;
  font-family: Consolas, "Microsoft YaHei", sans-serif;
  white-space: nowrap;
}

.money-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.money-breakdown {
  display: inline-grid;
  gap: 2px;
  justify-items: end;
  max-width: 100%;
  vertical-align: top;
}

.money-breakdown b {
  color: inherit;
  font-weight: 800;
}

.money-breakdown small {
  display: none;
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-row .money-breakdown {
  justify-items: start;
}

.money-amount {
  display: inline-grid;
  gap: 2px;
  max-width: 100%;
  vertical-align: top;
}

.money-amount b {
  display: inline;
  margin-right: 3px;
  color: inherit;
  font-weight: 800;
}

.money-amount > span {
  min-width: 0;
}

.money-amount em {
  color: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
}

.money-amount small {
  display: none;
  max-width: 190px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.tag.yes {
  background: #eaf7f0;
  color: #24734e;
}

.tag.no {
  background: #f1f4f8;
  color: #69778c;
}

.tag.active {
  background: #e9f7fb;
  color: #0f7180;
}

.tag.warning {
  background: #fff7e8;
  color: #9a621d;
}

.stage-tag {
  background: #eef5ff;
  color: #1f5ea8;
}

.stage-tag.warning {
  background: #fff4e6;
  color: #92550f;
}

.stage-tag.active {
  background: #e9f7fb;
  color: #0f7180;
}

.stage-tag.success {
  background: #eaf7f0;
  color: #24734e;
}

.stage-tag.done {
  background: #f2effc;
  color: #6042a6;
}

.action-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.completion-table .action-group {
  justify-content: center;
}

.todo-table .action-group {
  justify-content: center;
}

.empty-row td {
  padding: 40px 12px;
  color: var(--muted);
  text-align: center;
}

.compact-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 14px;
  margin-bottom: 18px;
}

.compact-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px;
}

.compact-stat span {
  color: var(--muted);
}

.compact-stat strong {
  color: var(--blue);
  font-size: 28px;
}

.compact-stat small {
  color: var(--muted);
}

.subsection {
  margin-top: 22px;
}

.subsection-head {
  margin-bottom: 10px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(260px, 1fr) minmax(150px, 0.5fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(33, 47, 76, 0.06);
}

.history-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.history-title-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-meta,
.history-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

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

.history-flags {
  margin-top: 0;
}

.history-operator {
  display: grid;
  gap: 4px;
}

.history-operator span,
.history-operator small {
  color: var(--muted);
  font-size: 12px;
}

.history-operator strong {
  font-size: 14px;
}

.history-actions {
  justify-content: flex-end;
}

.current-pill {
  background: #eaf7f0;
  color: #24734e;
}

.completion-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.completion-kpi {
  min-height: 96px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 39, 67, 0.05);
}

.completion-kpi span,
.completion-kpi small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.completion-kpi strong {
  display: block;
  margin: 8px 0 7px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.completion-board {
  margin-bottom: 16px;
}

.completion-summary-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e3ebf6;
}

.completion-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.completion-summary-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.completion-summary-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.completion-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.completion-summary-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #fbfcff;
}

.completion-summary-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.completion-summary-title strong {
  color: var(--text);
  font-size: 14px;
}

.completion-summary-title span {
  color: var(--muted);
  font-size: 12px;
}

.completion-unit-summary {
  max-height: 340px;
  overflow: auto;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #ffffff;
}

.completion-unit-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.completion-unit-table th,
.completion-unit-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #e7edf5;
  color: #2f4058;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.completion-unit-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3fb;
  color: #516073;
  font-weight: 700;
}

.completion-unit-table th:first-child,
.completion-unit-table td:first-child {
  text-align: left;
}

.completion-unit-table tbody tr:nth-child(even) {
  background: #fbfcff;
}

.completion-unit-table strong {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-completion-rate {
  display: grid;
  grid-template-columns: 58px minmax(76px, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 150px;
}

.unit-completion-rate span {
  color: #1f5ea8;
  font-weight: 800;
  text-align: right;
}

.unit-completion-rate i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.unit-completion-rate b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #54a3df, #2e7dd8);
}

.completion-board .completion-filter-bar {
  margin: 14px 0 14px;
  box-shadow: none;
  background: #f8fbff;
}

.completion-board .completion-kpi-grid {
  margin-bottom: 18px;
}

.completion-board .quarter-bars {
  padding-top: 16px;
  border-top: 1px solid #e3ebf6;
}

.completion-filter-bar {
  grid-template-columns: minmax(240px, 320px) minmax(160px, 220px) auto;
  justify-content: start;
  align-items: end;
  padding: 14px;
}

.completion-analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.completion-matrix-panel,
.completion-custom-board {
  min-width: 0;
  margin-bottom: 16px;
}

.completion-matrix-panel .panel-head,
.completion-custom-board .panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.completion-matrix-panel .panel-head > div:first-child,
.completion-custom-board .panel-head > div:first-child {
  min-width: 0;
}

.completion-matrix-panel .panel-head p,
.completion-custom-board .panel-head p {
  max-width: 720px;
  line-height: 1.45;
}

.completion-matrix-wrap {
  max-height: 420px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #ffffff;
}

.custom-board-controls {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(140px, 180px) minmax(130px, 170px) minmax(120px, 150px);
  align-items: end;
  justify-content: start;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #f8fbff;
}

.completion-panel-tools {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(120px, 160px) auto;
  align-items: end;
  justify-content: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #f8fbff;
}

.mini-filter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #5b6b82;
  font-size: 12px;
}

.mini-filter-field > span {
  font-weight: 700;
}

.multi-select-filter.mini .multi-select-trigger {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.multi-select-filter.mini .multi-select-trigger b {
  min-width: 28px;
  height: 20px;
  font-size: 11px;
}

.custom-board-controls label {
  gap: 5px;
  font-size: 12px;
}

.custom-board-controls select {
  height: 34px;
}

.completion-custom-board .panel-badge {
  justify-self: start;
  margin-top: 0;
}

.completion-custom-board .completion-matrix-wrap {
  max-height: 520px;
}

.completion-matrix-table {
  min-width: 760px;
  table-layout: fixed;
}

.completion-cross-table {
  table-layout: fixed;
  border-collapse: separate;
}

.completion-cross-table th:first-child,
.completion-cross-table td:first-child {
  width: 148px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 8px 0 14px rgba(33, 47, 76, 0.04);
}

.completion-cross-table th:not(:first-child),
.completion-cross-table td:not(:first-child) {
  width: 184px;
}

.completion-cross-table.custom-cross-table th:not(:first-child),
.completion-cross-table.custom-cross-table td:not(:first-child) {
  width: 178px;
}

.completion-cross-table tbody td {
  height: 130px;
  vertical-align: middle;
}

.completion-cross-table th:first-child {
  z-index: 2;
  background: #edf3fb;
}

.completion-matrix-table th,
.completion-matrix-table td,
.completion-cross-table th,
.completion-cross-table td {
  padding: 10px 12px;
  font-size: 12px;
}

.completion-matrix-table th:nth-child(1),
.completion-matrix-table td:nth-child(1),
.completion-matrix-table th:nth-child(2),
.completion-matrix-table td:nth-child(2) {
  width: 150px;
}

.completion-matrix-table th:nth-child(3),
.completion-matrix-table td:nth-child(3) {
  width: 82px;
  text-align: center;
}

.completion-rate-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf8f4;
  color: #24734e;
  font-weight: 700;
}

.cross-row-head {
  color: var(--text);
  font-weight: 700;
}

.cross-metric-cell {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 118px;
  align-content: start;
  padding: 12px 12px 10px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 8px 18px rgba(33, 47, 76, 0.05);
}

.cross-metric-top {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #415067;
}

.cross-metric-top strong {
  color: #0f5fb3;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.cross-metric-top span {
  font-weight: 700;
}

.cross-metric-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.cross-metric-values span {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #f0f5fb;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.cross-metric-values b {
  display: block;
  color: #40516a;
  font-weight: 700;
}

.cross-metric-values strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #13213a;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cross-metric-rate {
  display: grid;
  grid-template-columns: auto minmax(58px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cross-metric-rate em {
  min-width: 52px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf3fb;
  color: #31516f;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.cross-metric-rate > span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.cross-metric-rate i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3b82c4;
}

.cross-metric-rate.complete em {
  background: #e9f8f1;
  color: #1f7a4b;
}

.cross-metric-rate.complete i {
  background: #2e9d68;
}

.cross-metric-rate.healthy em {
  background: #edf8f4;
  color: #24734e;
}

.cross-metric-rate.healthy i {
  background: #36a66f;
}

.cross-metric-rate.warning em {
  background: #fff7e8;
  color: #9a621d;
}

.cross-metric-rate.warning i {
  background: #e4a441;
}

.cross-metric-rate.danger em {
  background: #fff1f0;
  color: #b42318;
}

.cross-metric-rate.danger i {
  background: #d95b52;
}

.cross-empty {
  display: grid;
  min-height: 118px;
  place-items: center;
  color: var(--muted);
}

.warning-center-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.35fr);
  gap: 16px;
  margin-bottom: 16px;
}

.warning-rule-form,
.warning-rule-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.warning-rule-config,
.warning-result-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #fbfcff;
}

.warning-result-card.active {
  border-color: #f0c0b8;
  background: #fff8f6;
}

.switch-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.switch-line input {
  width: 16px;
  height: 16px;
}

.warning-rule-config small,
.warning-result-card span,
.warning-result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.warning-threshold-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.warning-result-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.warning-result-card p {
  grid-column: 1 / -1;
}

.warning-result-card b {
  color: var(--red);
  white-space: nowrap;
}

.warning-rule-actions {
  justify-content: flex-start;
}

.warning-detail-table {
  min-width: 1160px;
}

.warning-detail-table th:nth-child(1),
.warning-detail-table td:nth-child(1) {
  width: 190px;
}

.warning-detail-table th:nth-child(2),
.warning-detail-table td:nth-child(2) {
  width: 240px;
}

.quarter-bars {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quarter-year-row {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.quarter-year-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #43536a;
  font-size: 12px;
}

.quarter-year-head strong {
  color: var(--text);
  font-size: 13px;
}

.quarter-year-head span {
  color: var(--muted);
}

.quarter-timeline {
  position: relative;
  min-height: 104px;
  padding: 10px 18px 12px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfcff;
}

.quarter-timeline-track {
  position: absolute;
  top: 30px;
  right: 6%;
  left: 6%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5f2;
}

.quarter-timeline-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9db4d4, #6f91bd);
}

.quarter-node {
  position: absolute;
  top: 19px;
  display: grid;
  width: 142px;
  gap: 3px;
  justify-items: center;
  text-align: center;
  transform: translateX(-50%);
}

.quarter-node-dot {
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 1px #b8cdf0, 0 5px 14px rgba(42, 103, 202, 0.18);
}

.quarter-node strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.1;
}

.quarter-node small,
.quarter-node em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.15;
  white-space: nowrap;
}

.quarter-node small {
  color: #5f6f86;
  font-weight: 600;
}

.quarter-node em {
  color: #1f5ea8;
  font-weight: 700;
}

.quarter-node-rates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}

.progress-strip {
  display: none;
}

.plan-control-panel {
  margin-bottom: 18px;
}

.plan-control-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(120px, 0.55fr) minmax(170px, 0.9fr) minmax(180px, 1fr) minmax(120px, 0.55fr) minmax(110px, 0.45fr) minmax(220px, 1.1fr);
  gap: 12px;
  align-items: end;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

.checkbox-field input {
  width: auto;
  height: auto;
}

.modify-plan-field[hidden],
.midterm-plan-field[hidden],
.midterm-sequence-field[hidden] {
  display: none !important;
}

.plan-query-filter {
  width: fit-content;
  max-width: 720px;
  grid-template-columns: minmax(220px, 260px) minmax(180px, 220px) auto;
  overflow: visible;
  margin-left: 0;
  margin-right: auto;
  padding: 10px;
  border-radius: 8px;
  background: #f8fbff;
}

.plan-query-filter .filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
}

.plan-query-filter .secondary-button,
.plan-query-filter .primary-button {
  min-height: 34px;
  padding-inline: 14px;
}

.plan-query-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.plan-query-list,
.plan-approval-list,
.plan-track-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 10px;
  align-items: start;
}

.related-plan-mount {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dde7f2;
  border-radius: 8px;
  background: #f8fbff;
}

.related-plan-mount summary {
  cursor: pointer;
  color: #31516f;
  font-size: 13px;
  font-weight: 800;
}

.related-plan-mount > div {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.related-plan-groups,
.related-plan-group {
  display: grid;
  gap: 8px;
}

.related-plan-group {
  padding: 8px;
  border: 1px solid #e2ebf5;
  border-radius: 7px;
  background: #ffffff;
}

.related-plan-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #3a526d;
  font-size: 12px;
  font-weight: 800;
}

.related-plan-group-head span {
  color: var(--muted);
  font-weight: 700;
}

.related-plan-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #dce8f6;
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.related-plan-chip span,
.related-plan-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-plan-chip small {
  flex: 0 0 auto;
  color: var(--muted);
}

.plan-workbench-panel {
  margin-bottom: 16px;
}

.plan-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin: 16px 0;
}

.plan-track-panel {
  min-width: 0;
}

.plan-management-grid > .plan-track-panel:only-child {
  grid-column: 1 / -1;
}

.plan-track-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-start;
  gap: 12px;
}

.plan-track-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.plan-track-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.plan-track-mode-switch button {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  background: #fbfcff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.plan-track-mode-switch button.active {
  border-color: #8cbcf0;
  background: #f0f7ff;
  box-shadow: 0 8px 18px rgba(31, 94, 168, 0.1);
}

.plan-track-mode-switch strong {
  font-size: 15px;
  line-height: 1.25;
}

.plan-track-mode-switch span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.workbench-history-mode-switch {
  margin: -2px 0 12px;
}

.mini-plan-filter {
  display: grid;
  width: min(520px, 100%);
  grid-template-columns: minmax(0, 220px) minmax(140px, 180px);
  gap: 8px;
  margin: -4px 0 12px;
  padding: 8px;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  background: #f8fbff;
}

.mini-plan-filter .field-label {
  margin-bottom: 4px;
  font-size: 11px;
}

.plan-log-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.34fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plan-log-main,
.plan-log-operator {
  min-width: 0;
}

.plan-log-title-row,
.plan-log-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.plan-log-title-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-log-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.plan-log-operator span,
.plan-log-operator small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.plan-log-operator strong {
  display: block;
  margin: 2px 0;
  font-size: 13px;
}

.plan-log-actions {
  justify-content: flex-end;
}

.plan-track-more {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
}

.plan-track-more summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 600;
}

.plan-track-more summary::-webkit-details-marker {
  display: none;
}

.plan-track-more[open] summary {
  border-bottom: 1px solid var(--line);
}

.plan-track-more-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.combine-unit-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.combine-unit-head,
.combine-unit-list,
.plan-submit-layout,
.plan-approval-layout {
  display: grid;
  gap: 12px;
}

.combine-unit-head {
  grid-template-columns: auto 1fr;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
}

.combine-unit-head strong {
  color: var(--text);
}

.combine-unit-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.combine-unit-item,
.plan-project-item {
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.combine-unit-item {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  padding: 12px;
}

.combine-unit-item small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.plan-submit-layout,
.plan-approval-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
  align-items: start;
}

.plan-submit-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.plan-project-panel .panel-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.plan-project-panel .filter-actions {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(220px, 1fr) minmax(124px, auto) minmax(96px, auto) minmax(72px, auto) minmax(132px, auto);
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  background: #f8fbff;
}

.inline-search-field {
  display: grid;
  min-width: 0;
  max-width: none;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.inline-search-field input {
  width: 100%;
  min-height: 36px;
}

.plan-project-panel .filter-actions button {
  min-height: 36px;
  white-space: normal;
}

.plan-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.plan-project-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 10px;
  padding: 11px 12px;
  cursor: pointer;
}

.plan-project-item > input[name="planProject"] {
  grid-row: 1 / span 2;
  margin-top: 5px;
}

.plan-project-item.selected {
  border-color: #b9d3f2;
  background: #f8fbff;
}

.plan-project-main {
  grid-column: 2;
  min-width: 0;
}

.plan-project-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.plan-project-actions .text-button {
  white-space: nowrap;
}

.plan-project-main strong,
.plan-project-main span,
.plan-project-meta span,
.plan-project-meta small {
  display: block;
}

.plan-project-main strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-project-main span,
.plan-project-meta small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.plan-project-meta {
  display: flex;
  grid-column: 2 / 4;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  font-size: 13px;
}

.plan-project-meta span {
  color: var(--text);
  font-weight: 700;
}

.plan-project-meta em {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f5ea8;
  font-size: 12px;
  font-style: normal;
}

.plan-project-amount-editor {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5edf7;
}

.plan-project-amount-editor label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.plan-project-amount-editor input {
  min-height: 32px;
  padding: 0 8px;
  cursor: text;
}

.plan-project-amount-editor input[readonly] {
  background: #f4f7fb;
  color: var(--text);
  cursor: default;
}

.plan-submit-confirm-card {
  width: min(980px, calc(100vw - 48px));
}

.plan-submit-confirm-body {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
}

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

.plan-submit-confirm-summary article {
  display: grid;
  align-content: center;
  min-height: 58px;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfcff;
}

.plan-submit-confirm-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.plan-submit-confirm-summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-submit-confirm-summary .money-amount {
  font-size: inherit;
}

.plan-submit-change-summary {
  color: var(--muted);
  font-size: 12px;
}

.compact-table-panel {
  max-height: 360px;
  overflow: auto;
}

.compact-table-panel th:last-child,
.compact-table-panel td:last-child {
  width: 92px;
  text-align: center;
  white-space: nowrap;
}

.plan-summary-rail {
  display: grid;
  gap: 18px;
}

.plan-summary-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.plan-summary-kpis article {
  min-height: 82px;
  padding: 12px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfcff;
}

.plan-summary-kpis span,
.plan-summary-row span,
.plan-summary-row small,
.plan-card-meta span,
.unit-revision-item span,
.unit-revision-item small,
.plan-detail-head span,
.plan-composition span {
  color: var(--muted);
  font-size: 12px;
}

.plan-summary-kpis strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  line-height: 1.3;
}

.plan-summary-list,
.plan-approval-list,
.unit-revision-list,
.plan-detail-list {
  display: grid;
  gap: 10px;
}

.plan-summary-row,
.unit-revision-item,
.plan-detail-card,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 39, 67, 0.05);
}

.plan-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px;
}

.plan-summary-row strong,
.unit-revision-item strong,
.plan-detail-head strong {
  display: block;
  color: var(--text);
}

.plan-summary-row small {
  display: block;
  text-align: right;
}

.plan-card {
  display: grid;
  gap: 12px;
  padding: 15px;
}

:is(.plan-query-list, .plan-approval-list, .plan-track-list) .plan-card {
  gap: 9px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(27, 39, 67, 0.04);
}

.plan-card.plan-level-one,
.plan-detail-card.plan-level-one,
.plan-log-card.plan-level-one,
.related-plan-chip.plan-level-one,
.project-plan-chip.plan-level-one {
  border-color: #4f9d87;
  background: #d9eee6;
  box-shadow: 0 10px 22px rgba(18, 97, 63, 0.16);
}

.plan-card.plan-level-two,
.plan-detail-card.plan-level-two,
.plan-log-card.plan-level-two,
.related-plan-chip.plan-level-two,
.project-plan-chip.plan-level-two {
  border-color: #7da7d8;
  background: #dcecff;
  box-shadow: 0 8px 18px rgba(23, 79, 150, 0.1);
}

.plan-card.plan-level-one .plan-card-head .tag,
.related-plan-chip.plan-level-one .tag,
.project-plan-chip.plan-level-one .tag {
  border-color: #69aa96;
  background: #cce9df;
  color: #12613f;
}

.plan-card.plan-level-two .plan-card-head .tag,
.related-plan-chip.plan-level-two .tag,
.project-plan-chip.plan-level-two .tag {
  border-color: #8cb2df;
  background: #d9eaff;
  color: #174f96;
}

.plan-card.plan-revision-card,
.plan-detail-card.plan-revision-card,
.plan-log-card.plan-revision-card,
.related-plan-chip.plan-revision-card,
.project-plan-chip.plan-revision-card,
.plan-card.plan-updated-card,
.plan-detail-card.plan-updated-card,
.plan-log-card.plan-updated-card,
.related-plan-chip.plan-updated-card,
.project-plan-chip.plan-updated-card {
  border-color: #a99ab3;
  background: #e8e0ea;
  box-shadow: 0 8px 18px rgba(122, 105, 136, 0.12);
}

.project-plan-chip.plan-not-effective,
.related-plan-chip.plan-not-effective {
  border-color: #c5cad3;
  background: #eef1f5;
  color: #5f6876;
  box-shadow: none;
}

.project-plan-chip.plan-not-effective .tag,
.related-plan-chip.plan-not-effective .tag {
  border-color: #c5cad3;
  background: #e2e6ec;
  color: #596270;
}

.plan-card.plan-change-card,
.plan-detail-card.plan-change-card,
.plan-log-card.plan-change-card,
.related-plan-chip.plan-change-card,
.project-plan-chip.plan-change-card {
  border-color: #b89fbd;
  background: #eaddea;
  box-shadow: 0 10px 22px rgba(122, 94, 128, 0.16);
}

.plan-card.plan-change-modify,
.plan-detail-card.plan-change-modify,
.plan-log-card.plan-change-modify,
.related-plan-chip.plan-change-modify,
.project-plan-chip.plan-change-modify {
  border-color: #b89fbd;
  background: #eaddea;
  box-shadow: 0 10px 22px rgba(122, 94, 128, 0.16);
}

.plan-card.plan-change-update,
.plan-detail-card.plan-change-update,
.plan-log-card.plan-change-update,
.related-plan-chip.plan-change-update,
.project-plan-chip.plan-change-update {
  border-color: #b89fbd;
  background: #eaddea;
  box-shadow: 0 10px 22px rgba(122, 94, 128, 0.16);
}

.plan-card.plan-change-card .plan-card-head .tag {
  border-color: #b89fbd;
  background: #ded0df;
  color: #5f4864;
}

.plan-card.plan-change-modify .plan-card-head .tag {
  border-color: #b89fbd;
  background: #ded0df;
  color: #5f4864;
}

.plan-card.plan-change-update .plan-card-head .tag {
  border-color: #b89fbd;
  background: #ded0df;
  color: #5f4864;
}

.plan-card.plan-change-card .plan-topic-review {
  border-color: #b89fbd;
  background: #e3d5e3;
  color: #5f4864 !important;
}

.plan-card.plan-change-modify .plan-topic-review {
  border-color: #b89fbd;
  background: #e3d5e3;
  color: #5f4864 !important;
}

.plan-card.plan-change-card .plan-change-status-flow {
  border-color: #c5b0c8;
  background: #f1e8f1;
}

.plan-card.plan-level-one .related-plan-mount,
.plan-card.plan-level-one .plan-flow,
.plan-detail-card.plan-level-one .plan-flow {
  border-color: rgba(18, 97, 63, 0.22);
  background: rgba(255, 255, 255, 0.55);
}

.plan-card.plan-level-two .related-plan-mount,
.plan-card.plan-level-two .plan-flow,
.plan-detail-card.plan-level-two .plan-flow {
  border-color: rgba(23, 79, 150, 0.2);
  background: rgba(255, 255, 255, 0.55);
}

.plan-card.plan-change-modify .related-plan-mount,
.plan-card.plan-change-modify .plan-flow,
.plan-detail-card.plan-change-modify .plan-flow {
  border-color: rgba(122, 94, 128, 0.24);
  background: rgba(248, 242, 248, 0.7);
}

.plan-card.plan-change-update .related-plan-mount,
.plan-card.plan-change-update .plan-flow,
.plan-detail-card.plan-change-update .plan-flow {
  border-color: rgba(122, 94, 128, 0.24);
  background: rgba(248, 242, 248, 0.7);
}

.plan-card .action-group {
  flex-wrap: wrap;
}

.plan-card-head,
.plan-card-meta,
.plan-detail-head,
.plan-composition {
  display: flex;
  gap: 10px;
}

.plan-card-head {
  align-items: center;
}

.plan-card-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-card-meta,
.plan-composition {
  flex-wrap: wrap;
}

.plan-card-summary {
  display: grid;
  gap: 4px;
  padding: 2px 0;
  color: var(--muted);
  font-size: 12px;
}

:is(.plan-query-list, .plan-approval-list, .plan-track-list) .plan-card-summary {
  gap: 2px;
  font-size: 11px;
}

.plan-card-summary span {
  min-width: 0;
}

.plan-flow-stack {
  display: grid;
  gap: 8px;
}

.plan-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #ffffff;
}

.plan-flow-name {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.decision-flow {
  background: #fbfcff;
}

.primary-status-flow {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.plan-primary-step {
  display: grid;
  gap: 5px;
  align-content: start;
  min-height: 92px;
  padding: 10px;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  background: #fff;
}

.plan-primary-step > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eef5ff;
  color: #1f5ea8;
  font-size: 15px;
  font-weight: 900;
}

.plan-primary-step strong {
  color: var(--text);
  font-size: 14px;
}

.plan-primary-step small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.plan-primary-note {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-primary-step.active {
  border-color: #9fc4ef;
  background: #f5f9ff;
}

.plan-primary-step.active .plan-primary-note {
  color: #1f5ea8;
  font-weight: 900;
}

.plan-primary-step.done > span {
  background: #eaf7f0;
  color: #24734e;
}

.plan-primary-step.done .plan-primary-note {
  color: #24734e;
}

.plan-primary-step:not(.done):not(.active) .plan-primary-note {
  color: #7b8798;
  font-weight: 600;
}

:is(.plan-query-list, .plan-approval-list, .plan-track-list) .plan-flow {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 5px;
  padding: 6px;
}

:is(.plan-query-list, .plan-approval-list, .plan-track-list) .primary-status-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:is(.plan-query-list, .plan-approval-list, .plan-track-list) .plan-primary-step {
  min-height: 78px;
  padding: 8px;
}

:is(.plan-query-list, .plan-approval-list, .plan-track-list) .plan-flow-step {
  min-height: 50px;
  padding: 7px;
}

.plan-flow-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 7px;
  row-gap: 2px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfcff;
}

.plan-flow-step span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #e8eef7;
  color: #516073;
  font-size: 11px;
  font-weight: 800;
}

.plan-flow-step.done span {
  background: #eaf7f0;
  color: #24734e;
}

.plan-flow-step.active {
  border-color: #cfe1ff;
  background: #f3f8ff;
}

.plan-flow-step.failed {
  border-color: #f4c7c7;
  background: #fff7f7;
}

.plan-flow-step strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.plan-flow-step small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.unit-revision-item {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
}

.unit-revision-panel {
  padding: 14px;
}

.unit-revision-panel .panel-head {
  margin-bottom: 10px;
}

.unit-revision-panel .panel-head h3 {
  font-size: 15px;
}

.unit-revision-panel .panel-head p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}

.unit-revision-list {
  gap: 7px;
  max-height: 620px;
  overflow: auto;
  padding-right: 2px;
}

.unit-revision-item {
  box-shadow: none;
}

.unit-revision-item strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-revision-item span,
.unit-revision-item small {
  font-size: 11px;
  line-height: 1.25;
}

.plan-detail-panel {
  margin-top: 18px;
}

.plan-detail-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.plan-detail-head {
  align-items: center;
  justify-content: space-between;
}

.major-submit-layout,
.major-management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.major-side,
.meeting-rail {
  display: grid;
  gap: 18px;
}

.topic-management-record-panel {
  margin-top: 18px;
}

.topic-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.topic-submit-record-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e9f3;
}

.topic-material-section {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid #e2e9f3;
}

.topic-material-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topic-material-head strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.topic-material-head span,
.topic-project-materials > span {
  color: var(--muted);
  font-size: 12px;
}

.topic-material-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
}

.topic-upload-panel {
  display: grid;
  gap: 10px;
}

.topic-upload-card {
  min-height: 118px;
}

.topic-attachment-list {
  display: grid;
  gap: 8px;
}

.topic-attachment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #ffffff;
}

.topic-attachment-item strong,
.topic-attachment-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-attachment-item strong {
  color: #25324a;
  font-size: 12px;
}

.topic-attachment-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.topic-attachment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.topic-project-materials {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fbfdff;
}

.topic-project-material-options {
  display: grid;
  gap: 7px;
}

.topic-project-material-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #ffffff;
}

.topic-project-material-option input {
  margin-top: 3px;
}

.topic-project-material-option strong {
  display: block;
  overflow: hidden;
  color: #25324a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-project-material-option span {
  color: var(--muted);
  font-size: 11px;
}

.inline-actions {
  padding: 0;
  border: 0;
}

.linked-project-card {
  display: grid;
  gap: 6px;
}

.linked-project-card strong {
  font-size: 16px;
}

.linked-project-card span,
.linked-project-card small,
.linked-project-meta {
  color: var(--muted);
}

.linked-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
}

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

.topic-card,
.topic-record-card,
.topic-management-item,
.meeting-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 39, 67, 0.05);
}

.topic-card {
  display: grid;
  gap: 12px;
  min-height: 184px;
  padding: 15px;
}

.topic-card-head,
.topic-card-body,
.topic-card-foot {
  display: grid;
  gap: 8px;
}

.topic-card-head strong {
  min-height: 42px;
  line-height: 1.35;
}

.topic-card-body span,
.topic-card-foot small {
  color: var(--muted);
  font-size: 12px;
}

.topic-card-foot {
  align-self: end;
}

.plan-topic-card {
  min-height: 0;
  padding: 12px;
}

.plan-topic-card .topic-card-head {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.plan-topic-card .topic-card-head strong {
  min-height: 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-topic-card .topic-card-body {
  gap: 5px;
}

.plan-topic-card .topic-card-body span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-topic-card .money-amount,
.plan-topic-card .money-amount > span {
  display: inline-flex;
  align-items: baseline;
}

.plan-topic-review {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cfe1f8;
  background: #f2f8ff;
  color: #184f91 !important;
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.35;
}

.plan-topic-card .topic-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-topic-card .action-group {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.plan-topic-card .text-button {
  min-height: 28px;
  padding: 0 9px;
}

.topic-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

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

.topic-status.warning {
  background: #fff4e6;
  color: #92550f;
}

.topic-status.active {
  background: #eef5ff;
  color: #1f5ea8;
}

.topic-status.success {
  background: #eaf7f0;
  color: #24734e;
}

.topic-status.danger {
  background: #fff2f2;
  color: var(--red);
}

.topic-record-list,
.topic-management-list,
.meeting-list,
.topic-log-list {
  display: grid;
  gap: 10px;
}

.topic-record-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.topic-management-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.topic-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
}

.operation-history-card {
  min-height: 88px;
}

.topic-record-card strong,
.topic-record-card span {
  display: block;
}

.topic-record-card span,
.topic-record-progress small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.topic-record-progress {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.topic-record-actions {
  justify-content: flex-end;
}

.topic-record-more {
  display: grid;
  gap: 10px;
}

.topic-record-more summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.topic-record-more-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.topic-management-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
}

.topic-management-item input {
  width: 16px;
  height: 16px;
}

.topic-management-item strong,
.topic-management-item span {
  display: block;
}

.topic-management-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.meeting-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.meeting-card-head,
.meeting-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.meeting-card-head span,
.meeting-topic-row span {
  color: var(--muted);
  font-size: 12px;
}

.meeting-topic-row {
  padding: 9px 0;
  border-top: 1px solid #edf2f8;
}

.detail-text {
  margin: 0;
  color: #4c596b;
  line-height: 1.7;
}

.topic-log-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f8;
}

.topic-log-row span,
.topic-log-row small {
  color: var(--muted);
  font-size: 12px;
}

.progress-item {
  padding: 15px;
}

.progress-item strong {
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

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

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.process-panel {
  margin-top: 18px;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  margin-top: 18px;
}

.process-image-wrap {
  overflow: auto;
  max-height: 520px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #f8fbff;
}

.process-image-wrap img {
  display: block;
  width: 100%;
  min-width: 860px;
  height: auto;
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.stage-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 3px;
  padding: 10px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfcff;
}

.stage-item span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f5ea8;
  font-size: 12px;
  font-weight: 800;
  grid-row: span 2;
}

.stage-item strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-item small {
  color: var(--muted);
}

.policy-zone {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e4ebf5;
}

.policy-zone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.policy-zone-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.policy-zone-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.policy-card {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 14px;
  border: 1px solid #e1eaf5;
  border-radius: 8px;
  background: #fbfcff;
}

.policy-card.featured {
  border-color: #c6daf5;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.policy-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.policy-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.policy-card .text-button {
  align-self: end;
  justify-self: start;
  padding: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.34);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  display: flex;
  flex-direction: column;
  width: clamp(900px, 74vw, 1120px);
  max-width: calc(100vw - 260px);
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 0.2s ease;
}

.drawer.over-plan-modal {
  z-index: 36;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

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

.drawer-head h2 {
  margin: 6px 0 0;
  font-size: 21px;
}

.drawer-body {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 20px 22px;
}

.detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.detail-row span {
  color: var(--muted);
}

.detail-row.wide {
  grid-column: 1 / -1;
}

.detail-row.wide strong {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.funding-row {
  align-items: start;
}

.funding-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.funding-detail > strong {
  color: var(--text);
  font-size: 15px;
}

.funding-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.funding-breakdown em {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #ffffff;
  font-style: normal;
}

.funding-breakdown em span {
  color: var(--muted);
  font-size: 12px;
}

.funding-breakdown em b {
  min-width: 0;
  overflow: hidden;
  color: #1f5ea8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-breakdown {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section {
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfcff;
  padding: 15px;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-section-head h3 {
  margin: 0;
}

.detail-section-head span {
  color: var(--muted);
  font-size: 13px;
}

.collapsible-detail-section > summary.detail-section-head {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

.collapsible-detail-section > summary.detail-section-head::-webkit-details-marker {
  display: none;
}

.collapsible-detail-section > summary.detail-section-head::after {
  content: "展开";
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #d8e3f0;
  border-radius: 999px;
  background: #f7fbff;
  color: #52657d;
  font-size: 12px;
}

.collapsible-detail-section[open] > summary.detail-section-head {
  margin-bottom: 12px;
}

.collapsible-detail-section[open] > summary.detail-section-head::after {
  content: "收起";
}

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

.project-plan-section {
  background: #ffffff;
}

.project-plan-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.project-plan-summary article {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #f7fbff;
}

.project-plan-summary span,
.project-plan-summary strong,
.project-plan-summary small {
  display: block;
}

.project-plan-summary span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-plan-summary strong {
  margin-top: 4px;
  color: #1f5ea8;
  font-size: 20px;
  line-height: 1;
}

.project-plan-summary small {
  margin-top: 5px;
  color: #607088;
  font-size: 12px;
}

.project-plan-years {
  display: grid;
  gap: 8px;
}

.project-plan-year {
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #fbfcff;
}

.project-plan-year summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.project-plan-year summary::-webkit-details-marker {
  display: none;
}

.project-plan-year summary strong {
  color: #24324a;
}

.project-plan-year summary span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-plan-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.project-plan-column {
  min-width: 0;
  border: 1px solid #e6eef7;
  border-radius: 8px;
  background: #ffffff;
}

.project-plan-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f8;
  color: #607088;
  font-size: 12px;
  font-weight: 800;
}

.project-plan-column-head strong {
  color: #1f5ea8;
  font-size: 14px;
}

.project-plan-chip-grid {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.project-plan-chip {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.project-plan-chip:hover {
  border-color: #bcd3f3;
  background: #f7fbff;
}

.project-plan-chip strong,
.project-plan-chip .project-plan-amount,
.project-plan-chip small,
.project-plan-chip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-plan-chip strong {
  color: #24324a;
  font-size: 13px;
}

.project-plan-chip .project-plan-amount {
  display: block;
  color: #1f5ea8;
  font-size: 12px;
  font-weight: 800;
}

.project-plan-chip small,
.project-plan-chip em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.project-plan-chip-grid .empty-state.compact {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 12px;
  font-size: 12px;
}

.stage-progress-card {
  padding: 12px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #f7fbff;
}

.stage-current-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dfe7f2;
}

.stage-current-summary span {
  color: var(--muted);
  font-size: 13px;
}

.stage-current-summary strong {
  color: var(--blue);
  font-size: 16px;
}

.stage-current-summary small {
  color: #24734e;
  background: #eaf7f0;
  border-radius: 999px;
  padding: 4px 9px;
}

.stage-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 7px;
}

.stage-card-embedded-plan {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce6f2;
}

.stage-card-embedded-plan .project-plan-section {
  padding: 12px;
  border-color: #dfe8f3;
  background: #ffffff;
}

.stage-card-embedded-plan .project-plan-section .empty-state {
  min-height: auto;
  padding: 14px;
}

.stage-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 3px;
  align-items: start;
  min-height: 56px;
  padding: 8px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #ffffff;
  color: #7b8798;
  text-align: left;
}

.stage-step span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #dfe7f2;
  color: #596779;
  font-size: 12px;
  font-weight: 800;
  grid-row: span 2;
}

.stage-step strong {
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.stage-step small {
  color: var(--muted);
  font-size: 11px;
}

.stage-step em {
  grid-column: 2;
  color: #52657d;
  font-size: 11px;
  font-style: normal;
}

.stage-step.done {
  border-color: #cbead8;
  background: #f4fbf7;
}

.stage-step.done span {
  background: var(--green);
  color: #ffffff;
}

.stage-step.current {
  border-color: #9dc0f4;
  background: #eef5ff;
}

.stage-step.current span {
  background: var(--blue);
  color: #fff;
}

.stage-step.current strong {
  color: var(--blue);
}

.major-flow-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce6f2;
}

.major-flow-summary .detail-section-head {
  margin-bottom: 10px;
}

.major-flow-summary .detail-section-head h3 {
  font-size: 14px;
}

.major-flow-name {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.major-flow-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.major-flow-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 3px;
  align-items: start;
  min-height: 62px;
  padding: 9px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #ffffff;
  color: #687386;
}

.major-flow-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #dfe7f2;
  color: #596779;
  font-size: 12px;
  font-weight: 800;
  grid-row: span 2;
}

.major-flow-step strong {
  min-width: 0;
  color: #25324a;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.major-flow-step small {
  color: var(--muted);
  font-size: 11px;
}

.major-flow-step em {
  grid-column: 2;
  color: #52657d;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.major-flow-step.done {
  border-color: #bee7ce;
  background: #f3fbf6;
}

.major-flow-step.done span {
  background: var(--green);
  color: #ffffff;
}

.major-flow-step.active {
  border-color: #add0f8;
  background: #f0f7ff;
}

.major-flow-step.active span {
  background: var(--blue);
  color: #ffffff;
}

.major-flow-step.failed {
  border-color: #f5c3bd;
  background: #fff6f4;
}

.major-flow-step.failed span {
  background: #d84f3a;
  color: #ffffff;
}

.empty-state.compact {
  min-height: auto;
  padding: 12px;
}

.timeline-section {
  background: #ffffff;
}

.timeline-list {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -2px;
  left: 7px;
  width: 1px;
  background: #d9e3f0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 10px;
  border: 3px solid #d8e4f4;
  border-radius: 999px;
  background: #ffffff;
}

.timeline-item.latest .timeline-dot {
  border-color: var(--blue);
  background: var(--blue);
}

.timeline-card {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background: #f8fbff;
}

.timeline-item.latest .timeline-card {
  border-color: #b9d0f4;
  background: #eef5ff;
}

.timeline-top,
.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timeline-top strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-top span {
  flex: 0 0 auto;
  color: #1f5ea8;
  font-size: 13px;
}

.timeline-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.investment-record-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.investment-record-item {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background: #ffffff;
}

.investment-record-item strong {
  color: var(--text);
  font-size: 14px;
}

.investment-record-item span {
  color: #24734e;
  font-weight: 700;
}

.investment-record-item em {
  color: #1f5ea8;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.investment-record-item small {
  color: var(--muted);
}

.drawer-actions {
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 28px;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(980px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.compact-modal-card {
  width: min(620px, 94vw);
}

.notice-modal-card {
  width: min(760px, 94vw);
}

.plan-detail-modal-card {
  width: min(1180px, 94vw);
  max-height: 94vh;
}

#plan-detail-modal {
  z-index: 34;
  background: rgba(15, 23, 42, 0.42);
}

.plan-detail-modal-body {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 22px;
  background: #f6f9fd;
}

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

.plan-detail-overview article,
.plan-modal-summary-grid article {
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(27, 39, 67, 0.05);
}

.plan-detail-overview article {
  min-height: 58px;
  padding: 10px 12px;
}

.plan-detail-overview span,
.plan-detail-overview small,
.plan-detail-overview em,
.plan-modal-summary-grid span,
.plan-modal-summary-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.plan-detail-overview strong {
  display: block;
  margin: 4px 0 3px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.plan-detail-overview strong .money-amount,
.plan-detail-overview strong .money-amount > span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.plan-total-overview-card strong {
  margin-top: 2px;
  margin-bottom: 2px;
}

.plan-total-overview-card strong .money-amount b {
  font-size: 24px;
  letter-spacing: 0;
}

.plan-total-overview-card strong .money-amount em {
  font-size: 14px;
  font-weight: 800;
}

.plan-overview-split {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-detail-overview .plan-overview-split span {
  display: inline;
}

.plan-overview-split span {
  color: #51627a;
  font-weight: 700;
}

.plan-detail-overview em {
  margin-top: 6px;
  font-style: normal;
}

.plan-detail-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #ffffff;
}

.plan-detail-section .empty-state {
  margin-top: 12px;
}

.plan-modal-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.plan-modal-summary-grid article {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 11px;
  border-color: #dbe7f6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.plan-type-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-type-card-head strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.plan-type-card-head span {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 6px;
  background: #edf4ff;
  color: #255b9c;
  font-weight: 800;
}

.plan-type-card-total {
  display: flex;
  align-items: baseline;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #ffffff;
  color: #172b4d;
}

.plan-type-card-total .money-amount b {
  font-size: 18px;
}

.plan-type-card-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.plan-type-card-split > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #e1eaf6;
  border-radius: 6px;
  background: #fbfdff;
}

.plan-type-card-split b,
.plan-type-card-split em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.plan-type-card-split .money-amount b {
  color: #1c3558;
  font-size: 12px;
}

.plan-type-card-split .money-amount em {
  color: #1c3558;
}

.plan-history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.plan-history-list article {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfcff;
}

.plan-history-list strong {
  color: var(--text);
  font-size: 13px;
}

.plan-history-list span,
.plan-history-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.plan-modal-table-panel {
  margin-top: 12px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
}

.plan-modal-matrix-panel {
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.plan-modal-matrix-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.plan-modal-matrix-table th,
.plan-modal-matrix-table td {
  min-width: 0;
  padding: 7px;
  border-right: 1px solid #e7edf6;
  border-bottom: 1px solid #e7edf6;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.plan-modal-matrix-table th:nth-child(1),
.plan-modal-matrix-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 132px;
  min-width: 0;
  background: #f8fbff;
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.plan-modal-matrix-table th:not(:first-child),
.plan-modal-matrix-table td:not(:first-child) {
  width: calc((100% - 132px) / 5);
}

.plan-modal-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f7fd;
  color: #34445f;
  font-weight: 800;
  text-align: center;
}

.plan-modal-matrix-table thead th:first-child {
  z-index: 3;
}

.plan-matrix-cell {
  display: grid;
  min-height: 58px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 7px 6px;
  border: 1px solid #d9e6f7;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--text);
  text-align: center;
  overflow: hidden;
}

.plan-matrix-cell strong {
  font-size: 13px;
  line-height: 1.2;
}

.plan-matrix-cell .money-amount b {
  font-size: 12px;
}

.plan-matrix-cell .money-amount em {
  font-size: 11px;
}

.plan-matrix-cell small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.plan-matrix-empty {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: #a0aec0;
  font-weight: 800;
}

.plan-modal-project-table {
  min-width: 0;
  table-layout: fixed;
}

.plan-modal-project-table th:nth-child(1),
.plan-modal-project-table td:nth-child(1) {
  width: 13%;
}

.plan-modal-project-table th:nth-child(2),
.plan-modal-project-table td:nth-child(2) {
  width: 20%;
}

.plan-modal-project-table th:nth-child(5),
.plan-modal-project-table td:nth-child(5),
.plan-modal-project-table th:nth-child(6),
.plan-modal-project-table td:nth-child(6) {
  width: 12%;
}

.plan-modal-project-table th:nth-child(9),
.plan-modal-project-table td:nth-child(9) {
  width: 11%;
  text-align: center;
}

.plan-modal-project-table th:nth-child(10),
.plan-modal-project-table td:nth-child(10) {
  width: 9%;
  text-align: center;
}

.plan-modal-project-table th,
.plan-modal-project-table td {
  padding: 9px 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.plan-modal-project-table .tag,
.plan-modal-project-table .text-button {
  white-space: nowrap;
}

.plan-modal-project-table .text-button {
  padding: 0 6px;
  font-size: 12px;
}

#notice-modal {
  z-index: 32;
  background: rgba(15, 23, 42, 0.38);
}

.notice-warning .modal-head {
  background: #fff8ed;
}

.notice-body {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 20px 22px;
}

.notice-body p {
  margin: 0;
  color: #334155;
  line-height: 1.7;
}

.notice-list {
  display: grid;
  gap: 10px;
  max-height: 42vh;
  overflow: auto;
}

.notice-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 5px 12px;
  padding: 12px 14px;
  border: 1px solid #f0d6ab;
  border-radius: 8px;
  background: #fffaf2;
}

.notice-item strong {
  color: #27364f;
  font-size: 14px;
}

.notice-item span {
  justify-self: end;
  color: #9a5a11;
  font-size: 13px;
  font-weight: 700;
}

.notice-item small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

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

.modal-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.project-form {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 20px 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.region-cascade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.region-cascade select,
.region-cascade input {
  min-width: 0;
}

.region-cascade.custom-region-mode {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.15fr);
}

.region-cascade.custom-region-mode .region-custom-input {
  display: block;
}

.compact-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.upload-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 14px;
  border: 1px dashed #b9c8da;
  border-radius: 8px;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.upload-card:hover {
  border-color: #2f6fba;
  background: #f3f8ff;
  box-shadow: 0 8px 20px rgba(42, 92, 146, 0.08);
}

.upload-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.upload-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.upload-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.upload-action {
  justify-self: start;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid #c7d7ea;
  border-radius: 7px;
  color: #1f5ea8;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.upload-summary {
  min-height: 20px;
  color: #516071;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.project-form input[readonly] {
  background: #f7f9fc;
  color: #516071;
}

.investment-form {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 20px 22px;
}

.investment-form-hint {
  padding: 12px 14px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbff;
  font-size: 13px;
  line-height: 1.6;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  color: var(--text);
  font: inherit;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.empty-state {
  padding: 20px;
  border: 1px dashed #d9e0ea;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcff;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  min-width: 220px;
  padding: 12px 15px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1280px) {
  body {
    min-width: 0;
  }

  .app-shell {
    grid-template-columns: 252px minmax(0, 1fr);
  }

  .sidebar {
    padding: 16px 11px 12px;
  }

  .main {
    padding: 20px 22px 30px;
  }

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

  .post-evaluation-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-evaluation-layout {
    grid-template-columns: 1fr;
  }

  .plan-management-grid {
    grid-template-columns: 1fr;
  }

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

  .implementation-import-bar {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  #implementation-import-status {
    grid-column: 1 / -1;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .library-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .completion-filter-bar {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .completion-analysis-grid {
    grid-template-columns: 1fr;
  }

  .completion-panel-tools,
  .custom-board-controls {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .completion-summary-grid {
    grid-template-columns: 1fr;
  }

  .warning-center-layout {
    grid-template-columns: 1fr;
  }

  .plan-control-form,
  .combine-unit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-project-list {
    grid-template-columns: 1fr;
  }

  .plan-project-panel .filter-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-search-field {
    grid-column: 1 / -1;
  }

  .plan-query-filter {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .plan-query-list,
  .plan-approval-list,
  .plan-track-list {
    grid-template-columns: 1fr;
  }

  :is(.plan-query-list, .plan-approval-list, .plan-track-list) .primary-status-flow {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .plan-submit-layout,
  .plan-approval-layout {
    grid-template-columns: 1fr;
  }

  .process-layout {
    grid-template-columns: 1fr;
  }

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

  .plan-detail-overview,
  .plan-modal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .history-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .topic-record-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .plan-log-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .history-actions {
    justify-content: flex-start;
  }

  .topic-record-progress,
  .topic-record-actions {
    justify-items: start;
    justify-content: flex-start;
  }

  .plan-log-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .brand {
    gap: 9px;
    padding-bottom: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-subtitle,
  .sidebar-foot {
    display: none;
  }

  .nav-section {
    padding: 7px 6px 6px;
  }

  .nav-section .nav-item {
    padding: 0 7px;
  }

  .nav-icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }

  .main {
    padding: 16px 16px 26px;
  }

  .topbar,
  .panel-head,
  .section-title-row,
  .subsection-head,
  .drawer-head,
  .modal-head {
    flex-wrap: wrap;
  }

  .filter-bar,
  #implementation-library-filter,
  .implementation-import-bar,
  .plan-control-form,
  .completion-filter-bar,
  .completion-panel-tools,
  .custom-board-controls,
  .plan-query-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions,
  .topbar-actions,
  .drawer-actions,
  .modal-actions {
    flex-wrap: wrap;
  }

  #library-filter .search-field,
  #implementation-library-filter .search-field,
  #implementation-import-status {
    grid-column: 1 / -1;
  }

  .library-summary-strip,
  .completion-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .major-submit-layout,
  .major-management-layout,
  .post-evaluation-layout,
  .warning-center-layout,
  .plan-submit-layout,
  .plan-approval-layout,
  .process-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    max-height: none;
    padding: 9px 10px;
  }

  .brand,
  .sidebar-foot {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 6px;
  }

  .nav-overview,
  .nav-section,
  .nav-subgroup,
  .nav-section .nav-item {
    flex: 0 0 auto;
  }

  .nav-section {
    display: flex;
    align-items: center;
    width: max-content;
    max-width: none;
    padding: 6px;
  }

  .nav-section-title {
    padding: 0 7px 0 2px;
    white-space: nowrap;
  }

  .nav-subgroup {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border-left: 0;
  }

  .nav-subgroup-title {
    display: none;
  }

  .nav-item,
  .nav-section .nav-item {
    width: auto;
    min-height: 34px;
    white-space: nowrap;
  }

  .main {
    padding: 14px 14px 24px;
  }

  .section-title-row h2 {
    font-size: 22px;
  }

  .panel {
    padding: 16px;
  }

  .metric-grid,
  .post-evaluation-kpi-grid,
  .library-summary-strip,
  .completion-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar,
  #implementation-library-filter,
  .implementation-import-bar,
  .plan-control-form,
  .combine-unit-list,
  .plan-project-list,
  .plan-project-panel .filter-actions,
  .completion-filter-bar,
  .completion-panel-tools,
  .custom-board-controls,
  .plan-query-filter,
  .warning-threshold-row {
    grid-template-columns: 1fr;
  }

  .implementation-plan-year-filter {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .implementation-plan-year-filter .multi-select-filter {
    min-width: 0;
  }

  .mini-plan-filter {
    grid-template-columns: 1fr;
  }

  .plan-detail-overview,
  .plan-modal-summary-grid,
  .policy-zone-grid {
    grid-template-columns: 1fr;
  }

  .post-evaluation-progress,
  .post-evaluation-status-row,
  .funding-breakdown,
  .project-plan-summary,
  .project-plan-split,
  .detail-row {
    grid-template-columns: 1fr;
  }

  .drawer {
    width: min(760px, 100vw);
    max-width: 100vw;
  }

  .drawer-head,
  .drawer-body,
  .drawer-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .modal {
    padding: 14px;
  }

  .modal-card,
  .compact-modal-card,
  .notice-modal-card,
  .plan-detail-modal-card {
    width: 100%;
    max-height: calc(100vh - 28px);
  }

  .plan-detail-modal-body {
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 14px;
  }

  .login-card {
    padding: 22px;
  }

  .main {
    padding: 12px 10px 20px;
  }

  .topbar {
    justify-content: flex-start;
  }

  .auth-area {
    width: 100%;
  }

  .section-title-row,
  .panel-head,
  .subsection-head {
    gap: 10px;
  }

  .metric-grid,
  .post-evaluation-kpi-grid,
  .library-summary-strip,
  .completion-kpi-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 14px;
  }

  .panel-badge,
  .result-count,
  .current-pill {
    white-space: normal;
  }

  .filter-actions,
  .topbar-actions,
  .drawer-actions,
  .modal-actions {
    width: 100%;
  }

  .filter-actions .primary-button,
  .filter-actions .secondary-button,
  .topbar-actions .primary-button,
  .topbar-actions .secondary-button,
  .drawer-actions .primary-button,
  .drawer-actions .secondary-button,
  .modal-actions .primary-button,
  .modal-actions .secondary-button {
    flex: 1 1 140px;
  }

  .plan-track-mode-switch {
    grid-template-columns: 1fr;
  }

  .drawer {
    width: 100vw;
  }

  .drawer-head,
  .drawer-body,
  .drawer-actions,
  .plan-detail-modal-body {
    padding-left: 12px;
    padding-right: 12px;
  }
}
