:root {
  --paper: #dbeafe;
  --surface: rgba(255, 255, 255, 0.68);
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(147, 197, 253, 0.34);
  --teal: #2563eb;
  --teal-soft: rgba(219, 234, 254, 0.78);
  --coral: #38bdf8;
  --amber: #60a5fa;
  --green: #22c55e;
  --steel: #334155;
  --shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
  --deep: #071527;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --radius-card: 18px;
  --radius-control: 14px;
}

/* Embedded portal theme */
body,
.app-shell {
  background: #f4f6f8;
}

.sidebar,
.data-panel,
.workflow-area,
.control-panel,
.log-panel,
.template-panel,
.project-labor-board,
.command-hero,
.automation-map,
.site-fit-panel,
.ops-card {
  border-radius: 8px;
  border-color: #d9e1e7;
  box-shadow: 0 14px 35px rgba(24, 34, 45, 0.07);
}

.brand-mark,
.primary-button,
.live-chip {
  border-radius: 8px;
}

.topbar {
  border-radius: 8px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #d9e1e7;
  box-shadow: 0 14px 35px rgba(24, 34, 45, 0.06);
}

.topbar h2,
.section-heading h3 {
  color: #17202a;
}

.doc-center-link {
  border-color: #d9e1e7;
  color: #17202a;
  background: #f8fafb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 189, 248, 0.34), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(30, 64, 175, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(30, 64, 175, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #eff6ff, #dbeafe 44%, #bfdbfe);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.22), rgba(36, 65, 95, 0.08)),
    #172331;
  color: #f5f7ef;
}

.brand-block {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #e7f4ef;
  color: #1c3933;
  font-weight: 800;
}

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

.sidebar .eyebrow {
  color: #adc4b8;
}

.made-by {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(110, 231, 183, 0.24);
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.1);
  color: #bce8dc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.22;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.25;
}

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

.sidebar-flow {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.file-update-panel {
  display: grid;
  gap: 14px;
}

.sidebar-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sidebar-flow-head h2 {
  color: #ffffff;
  font-size: 18px;
}

.sidebar-flow-head strong {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(110, 231, 183, 0.14);
  color: #8cf4c8;
  font-size: 16px;
}

.today-update-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(125, 211, 199, 0.22);
  border-radius: 8px;
  background: rgba(223, 245, 241, 0.08);
}

.today-update-summary strong {
  color: #ffffff;
  font-size: 16px;
}

.today-update-summary span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

.today-update-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.side-schedule {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-schedule::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.side-schedule li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  cursor: pointer;
}

.side-dot {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: #26322f;
}

.side-schedule li.is-done .side-dot {
  border-color: rgba(110, 231, 183, 0.72);
  background: #0f766e;
}

.side-schedule li.is-active .side-dot {
  border-color: #f3c36a;
  background: #b7791f;
  box-shadow: 0 0 0 6px rgba(243, 195, 106, 0.14);
}

.side-schedule li > div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.side-schedule li.is-selected > div,
.side-schedule li:hover > div {
  border-color: rgba(125, 211, 199, 0.36);
  background: rgba(223, 245, 241, 0.08);
}

.side-schedule time {
  display: block;
  margin-bottom: 3px;
  color: #8cf4c8;
  font-size: 12px;
  font-weight: 900;
}

.side-schedule strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
}

.side-schedule span {
  display: block;
  margin-top: 4px;
  color: #b8c8c2;
  font-size: 11px;
  line-height: 1.35;
}

.nav-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d8e3d9;
  text-align: left;
}

.nav-item svg,
button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.compact-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.panel-label {
  margin: 0 0 14px;
  color: #b9cbbf;
  font-size: 13px;
  font-weight: 700;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.progress-fill {
  position: relative;
  overflow: hidden;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 18%, rgba(255, 255, 255, 0.36) 42%, transparent 70%) 0 0 / 180px 100%,
    linear-gradient(90deg, #34d399, #6ee7b7);
  transition: width 240ms ease;
  animation: liveBarSweep 1.55s linear infinite;
}

.workspace {
  overflow: hidden;
  padding: 24px;
}

.topbar,
.section-heading,
.topbar-actions,
.button-row {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar-actions {
  gap: 10px;
}

.doc-center-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(36, 42, 31, 0.08);
}

.system-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.72);
  animation: statusPulse 1.8s ease-out infinite;
}

.primary-button,
.secondary-button,
.icon-button,
.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.primary-button {
  padding: 0 16px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 700;
}

.secondary-button {
  flex: 1;
  padding: 0 12px;
  border-color: var(--line);
  background: #fbfcf7;
  color: var(--ink);
  font-weight: 700;
}

.icon-button {
  width: 40px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--steel);
}

.icon-button.small {
  width: 34px;
  min-height: 34px;
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.segmented button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(28, 39, 32, 0.12);
}

.summary-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  margin-bottom: 18px;
  padding: 0 0 8px;
}

.summary-strip::-webkit-scrollbar {
  height: 8px;
}

.summary-strip::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(151, 164, 139, 0.18);
}

.summary-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.36);
}

.command-deck {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
  gap: 18px;
  margin-bottom: 18px;
}

.summary-strip article,
.command-hero,
.automation-map,
.workflow-area,
.control-panel,
.log-panel,
.template-panel,
.site-fit-panel,
.ops-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-strip article {
  flex: 0 0 188px;
  min-width: 0;
  scroll-snap-align: start;
  padding: 13px;
}

.summary-strip p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-strip strong,
.summary-strip span {
  display: block;
  overflow-wrap: anywhere;
}

.summary-strip strong {
  margin-bottom: 3px;
  font-size: 20px;
  line-height: 1.08;
}

.summary-strip span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.openable-card {
  position: relative;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.openable-card em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(217, 241, 237, 0.62);
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.file-updated {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.file-updated.is-missing {
  color: var(--coral);
}

.openable-card em svg {
  width: 13px;
  height: 13px;
}

.openable-card:hover,
.openable-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 24px 54px rgba(15, 118, 110, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
  outline: none;
}

.openable-card.confidential-card {
  color: #6b7280;
  background: #eef0f3;
  border-color: #d1d5db;
  filter: grayscale(0.75);
}

.openable-card.confidential-card:hover,
.openable-card.confidential-card:focus-visible {
  border-color: #c5cad3;
  box-shadow: none;
  transform: none;
}

.openable-card.confidential-card em {
  color: #4b5563;
  background: #e5e7eb;
  border-color: #c5cad3;
}

.project-labor-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(210px, 0.78fr) minmax(320px, 1.15fr);
  gap: 12px;
  min-width: 0;
  margin-bottom: 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 3% 12%, rgba(15, 118, 110, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(242, 247, 239, 0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.06);
}

.project-labor-board::after {
  content: none;
}

.project-identity,
.labor-kpi-grid,
.labor-visual-panel {
  position: relative;
  z-index: 1;
}

.project-identity {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.project-logo {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(150deg, #0a78a8, #00a0d2),
    #0a78a8;
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 16px 28px rgba(10, 120, 168, 0.18);
}

.project-identity h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.project-identity p:not(.eyebrow) {
  margin-bottom: 12px;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.55;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  padding: 5px 8px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  background: rgba(217, 241, 237, 0.62);
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
}

.labor-kpi-grid {
  display: grid;
  gap: 8px;
}

.labor-kpi-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(151, 164, 139, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.labor-kpi-grid svg {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
}

.labor-kpi-grid span,
.labor-kpi-grid em {
  display: block;
}

.labor-kpi-grid span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 850;
}

.labor-kpi-grid strong {
  grid-row: span 2;
  color: var(--teal);
  font-size: 29px;
  line-height: 1;
}

.labor-kpi-grid em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.labor-visual-panel {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.44);
}

.labor-ring {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, #0f766e var(--ring), rgba(151, 164, 139, 0.22) 0),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12), 0 16px 34px rgba(15, 118, 110, 0.12);
}

.labor-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 25%, rgba(110, 231, 183, 0.16), transparent 34%),
    #f8faf4;
}

.labor-ring > div {
  position: relative;
  display: grid;
  gap: 4px;
  text-align: center;
}

.labor-ring strong {
  color: var(--teal);
  font-size: 27px;
  line-height: 1;
}

.labor-ring span {
  max-width: 86px;
  color: var(--steel);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.labor-breakdown {
  display: grid;
  gap: 9px;
  min-width: 0;
}

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

.labor-row span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 850;
}

.labor-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(151, 164, 139, 0.18);
}

.labor-row i {
  display: block;
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 28%, rgba(255, 255, 255, 0.42), transparent 70%) 0 0 / 140px 100%,
    linear-gradient(90deg, #0f766e, #d99b32);
  animation: liveBarSweep 2.8s linear infinite;
}

.labor-row strong {
  color: var(--ink);
  font-size: 14px;
  text-align: right;
}

.manager-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.manager-split span {
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--steel);
  font-size: 11px;
  font-weight: 800;
}

.manager-split b {
  display: block;
  margin-bottom: 2px;
  color: var(--teal);
  font-size: 20px;
}

.daily-schedule-board {
  min-width: 0;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 54%),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

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

.schedule-rail::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 27px;
  height: 3px;
  border-radius: 999px;
  background: #dfe4d9;
}

.schedule-node {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 152px;
  padding: 0 10px 12px;
  text-align: center;
}

.schedule-node .node-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: 0 auto;
  border: 3px solid #dfe4d9;
  border-radius: 50%;
  background: #ffffff;
  color: var(--steel);
  box-shadow: 0 10px 20px rgba(36, 42, 31, 0.1);
}

.schedule-node svg {
  width: 22px;
  height: 22px;
}

.schedule-node.is-done .node-dot {
  border-color: var(--teal);
  background: #e5f4ec;
  color: var(--teal);
}

.schedule-node.is-active .node-dot {
  border-color: #d99b32;
  background: #fff7e8;
  color: #b7791f;
  animation: statusPulse 1.8s ease-out infinite;
}

.schedule-time {
  color: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

.schedule-node h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.schedule-node p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.command-hero {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 244, 0.94));
}

.command-hero::after,
.automation-map::after {
  content: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h3 {
  max-width: 880px;
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.3;
}

.hero-copy p:last-child {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.7;
}

.claim-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.claim-grid div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.claim-grid strong,
.claim-grid span {
  display: block;
}

.claim-grid strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.claim-grid span {
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.automation-map {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(23, 33, 30, 0.96), rgba(31, 42, 39, 0.96)),
    #17211e;
  color: #eef7f0;
}

.map-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.automation-map .eyebrow {
  color: #98c7bd;
}

.map-subtitle {
  display: block;
  margin-top: 5px;
  color: #9ebbb3;
  font-size: 12px;
  font-weight: 800;
}

.live-chip {
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid rgba(110, 231, 183, 0.36);
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.12);
  color: #8cf4c8;
  font-size: 12px;
  font-weight: 800;
}

.pipeline-canvas {
  position: relative;
  z-index: 1;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.03);
  background-size: 34px 34px;
  overflow: hidden;
}

.pipeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-base,
.flow-active {
  fill: none;
  stroke-linecap: round;
  stroke-width: 5;
}

.flow-base {
  stroke: rgba(255, 255, 255, 0.12);
}

.flow-base.thin,
.flow-active.thin {
  stroke-width: 2;
}

.flow-active {
  stroke: url(#flowStroke);
  stroke-dasharray: 18 18;
  animation: dashFlow 1.4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(110, 231, 183, 0.38));
}

.flow-active.delay {
  animation-delay: -0.7s;
}

.pipeline-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 186px;
  height: 186px;
  place-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
}

.core-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(110, 231, 183, 0.28);
  border-radius: 50%;
  animation: coreSpin 10s linear infinite;
}

.core-ring::before,
.core-ring::after {
  content: "";
  position: absolute;
  border: inherit;
  border-radius: inherit;
}

.core-ring::before {
  inset: 18px;
  border-color: rgba(217, 155, 50, 0.32);
  animation: coreSpin 8s linear infinite reverse;
}

.core-ring::after {
  inset: 38px;
  border-color: rgba(199, 81, 70, 0.24);
}

.pipeline-core strong,
.pipeline-core span {
  position: relative;
  display: block;
}

.pipeline-core strong {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 19px;
}

.pipeline-core span {
  color: #a8c3bb;
  font-size: 12px;
  line-height: 1.45;
}

.pipeline-node {
  position: absolute;
  display: grid;
  gap: 5px;
  width: 142px;
  min-height: 86px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  animation: nodeFloat 4.4s ease-in-out infinite;
}

.pipeline-node i,
.pipeline-node svg {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(110, 231, 183, 0.13);
  color: #8cf4c8;
}

.pipeline-node strong {
  font-size: 14px;
}

.pipeline-node span {
  color: #acc3bd;
  font-size: 11px;
  line-height: 1.35;
}

.node-a {
  left: 18px;
  top: 120px;
}

.node-b {
  left: 150px;
  top: 28px;
  animation-delay: -0.8s;
}

.node-c {
  right: 150px;
  top: 28px;
  animation-delay: -1.6s;
}

.node-d {
  right: 18px;
  top: 120px;
  animation-delay: -2.4s;
}

.node-e {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  animation-delay: -3.2s;
}

.source-data-board {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.data-worktext {
  grid-column: 1 / -1;
}

.data-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.source-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef6f3;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

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

.wechat-kpi {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 58%),
    #fbfcf7;
}

.wechat-kpi span,
.production-bar span,
.progress-item span,
.work-card span {
  display: block;
}

.wechat-kpi span:first-child {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wechat-kpi strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
}

.production-bars {
  display: grid;
  gap: 12px;
}

.production-bar {
  display: grid;
  gap: 7px;
}

.production-bar header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.production-track,
.progress-trackline {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e5e9df;
}

.production-fill,
.progress-trackline i {
  position: relative;
  overflow: hidden;
  display: block;
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 18%, rgba(255, 255, 255, 0.45) 42%, transparent 70%) 0 0 / 180px 100%,
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 8px, rgba(255, 255, 255, 0) 8px 16px),
    linear-gradient(90deg, var(--teal), #d99b32, var(--coral));
  animation: barGrow 900ms ease-out both, liveBarSweep 1.45s linear infinite;
  box-shadow: 0 0 14px rgba(15, 118, 110, 0.22);
}

.progress-rank {
  display: grid;
  gap: 10px;
}

.progress-item {
  display: grid;
  grid-template-columns: minmax(126px, 0.55fr) 150px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
}

.progress-name {
  overflow: hidden;
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-value {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.progress-meta {
  color: var(--muted);
  font-size: 11px;
}

.worktext-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.worktext-pill {
  min-height: 64px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
}

.worktext-pill strong {
  display: block;
  color: var(--coral);
  font-size: 22px;
  line-height: 1;
}

.worktext-pill span {
  display: block;
  margin-top: 7px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
}

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

.work-map h4 {
  margin: 0 0 10px;
  color: var(--steel);
  font-size: 14px;
}

.work-timeline {
  display: grid;
  gap: 8px;
}

.work-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 10px 10px 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: visible;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  z-index: 30;
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: 0 16px 30px rgba(36, 42, 31, 0.16);
  transform: translateY(-2px);
}

.work-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), #d99b32);
}

.work-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card span {
  color: var(--muted);
  font-size: 11px;
}

.work-detail-popover {
  position: absolute;
  left: 10px;
  top: calc(100% + 8px);
  z-index: 50;
  width: min(460px, 78vw);
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 58%),
    #ffffff;
  box-shadow: 0 22px 46px rgba(20, 30, 26, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 140ms ease, transform 140ms ease;
}

.work-card.is-plan .work-detail-popover {
  right: 10px;
  left: auto;
}

.work-card:hover .work-detail-popover,
.work-card:focus-visible .work-detail-popover,
.work-card:focus-within .work-detail-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.detail-label {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.work-detail-popover h5 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.work-detail-popover p,
.work-detail-popover li {
  color: var(--steel);
  font-size: 13px;
  line-height: 1.6;
}

.work-detail-popover p,
.work-detail-popover ol {
  margin: 0;
}

.work-detail-popover ol {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

/* Blue glass presentation theme */
.brand-mark,
.nav-item,
.compact-panel,
.sidebar-flow,
.summary-strip article,
.daily-schedule-board,
.command-hero,
.automation-map,
.data-panel,
.workflow-area,
.control-panel,
.log-panel,
.template-panel,
.flow-column,
.flow-card,
.wechat-kpi,
.worktext-pill,
.work-card,
.path-item,
.check-item,
.panel-section,
.output-box,
.system-status {
  border-radius: var(--radius-card);
}

.summary-strip article,
.daily-schedule-board,
.command-hero,
.data-panel,
.workflow-area,
.control-panel,
.log-panel,
.template-panel,
.flow-card,
.wechat-kpi,
.worktext-pill,
.work-card,
.check-item,
.system-status {
  border-color: rgba(147, 197, 253, 0.34);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow: 0 20px 48px rgba(30, 64, 175, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.primary-button {
  border-radius: var(--radius-control);
  background: linear-gradient(135deg, #2563eb, #0284c7);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.secondary-button,
.icon-button,
.card-tools button,
.segmented,
.segmented button,
textarea {
  border-radius: var(--radius-control);
}

.secondary-button,
.icon-button,
textarea {
  border-color: rgba(147, 197, 253, 0.42);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
}

.source-badge,
.live-chip,
.status-pill {
  border-radius: 999px;
}

.flow-column,
.output-box,
.pipeline-canvas {
  border-color: rgba(147, 197, 253, 0.22);
  background: rgba(248, 250, 252, 0.46);
  backdrop-filter: blur(14px);
}

.automation-map {
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(7, 21, 39, 0.94), rgba(15, 23, 42, 0.92));
}

.pipeline-canvas {
  background:
    linear-gradient(90deg, rgba(147, 197, 253, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(147, 197, 253, 0.08) 1px, transparent 1px),
    rgba(15, 23, 42, 0.18);
  background-size: 34px 34px;
}

.schedule-node .node-dot,
.side-dot {
  border-color: rgba(147, 197, 253, 0.54);
}

.schedule-node.is-done .node-dot,
.side-schedule li.is-done .side-dot {
  border-color: #60a5fa;
  background: rgba(219, 234, 254, 0.92);
  color: #2563eb;
}

.production-fill,
.progress-trackline i {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 18%, rgba(255, 255, 255, 0.5) 42%, transparent 70%) 0 0 / 180px 100%,
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0 8px, rgba(255, 255, 255, 0) 8px 16px),
    linear-gradient(90deg, #1d4ed8, #38bdf8, #60a5fa);
}

.progress-fill {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 18%, rgba(255, 255, 255, 0.5) 42%, transparent 70%) 0 0 / 180px 100%,
    linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.work-card:hover,
.work-card:focus,
.work-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 20px 46px rgba(30, 64, 175, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.work-card:focus .work-detail-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.work-detail-popover {
  border-color: rgba(96, 165, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.82), rgba(255, 255, 255, 0.9)),
    #ffffff;
  backdrop-filter: blur(18px) saturate(1.16);
}

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

body.is-report-view .main-grid {
  grid-template-columns: 1fr;
}

body.is-report-view .control-panel {
  display: none;
}

.workflow-area {
  min-width: 0;
  padding: 18px;
}

.section-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-heading.tight {
  margin-bottom: 12px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6ef;
}

.segmented button {
  min-height: 32px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.segmented button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(36, 42, 31, 0.08);
}

.flow-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.flow-column {
  min-height: 368px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf4;
}

.flow-column h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  color: var(--steel);
  font-size: 13px;
}

.column-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.flow-card {
  display: grid;
  gap: 10px;
  min-height: 126px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(36, 42, 31, 0.12);
}

.flow-card[data-status="blocked"] {
  border-left-color: var(--coral);
}

.flow-card[data-status="review"] {
  border-left-color: var(--amber);
}

.flow-card[data-status="done"] {
  border-left-color: var(--green);
}

.flow-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.flow-card h5 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.status-pill {
  align-self: flex-start;
  padding: 4px 7px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-ready {
  background: var(--teal);
}

.status-review {
  background: var(--amber);
}

.status-blocked {
  background: var(--coral);
}

.status-done {
  background: var(--green);
}

.report-command-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.report-command-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(151, 164, 139, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.5);
}

body.is-report-view .report-command-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.report-command-hero h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.report-command-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.6;
}

.report-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.report-kpi-row span {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--steel);
  font-size: 11px;
  font-weight: 850;
}

.report-kpi-row b {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 26px;
  line-height: 1;
}

.report-application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  min-width: 0;
}

body.is-report-view .report-application-grid {
  grid-template-columns: minmax(240px, 0.92fr) minmax(320px, 1.16fr) minmax(240px, 0.92fr);
}

.report-lane,
.report-engine-card,
.report-module-card {
  border: 1px solid rgba(151, 164, 139, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.report-lane {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 13px;
}

.lane-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 2px;
}

.lane-head svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
}

.lane-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.source-row {
  padding: 10px;
  border-left: 3px solid rgba(15, 118, 110, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.source-row strong,
.source-row span {
  display: block;
}

.source-row strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.source-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.report-engine-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 260px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(23, 33, 30, 0.94), rgba(31, 42, 39, 0.9));
  color: #eef7f0;
}

.report-engine-card::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(217, 241, 237, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(217, 241, 237, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: rotate(-4deg);
}

.engine-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(110, 231, 183, 0.28);
  border-radius: 50%;
  text-align: center;
  animation: coreSpin 18s linear infinite;
}

.engine-orbit::before,
.engine-orbit::after {
  content: "";
  position: absolute;
  border: inherit;
  border-radius: inherit;
}

.engine-orbit::before {
  inset: 18px;
  border-color: rgba(217, 155, 50, 0.28);
  animation: coreSpin 12s linear infinite reverse;
}

.engine-orbit::after {
  inset: 36px;
  border-color: rgba(110, 231, 183, 0.2);
}

.engine-orbit > div {
  position: relative;
  z-index: 1;
  animation: coreSpin 18s linear infinite reverse;
}

.engine-orbit strong,
.engine-orbit span {
  display: block;
}

.engine-orbit strong {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 16px;
}

.engine-orbit span {
  color: #a8c3bb;
  font-size: 11px;
  line-height: 1.35;
}

.engine-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.engine-steps span {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #d8e3d9;
  font-size: 12px;
  font-weight: 800;
}

.engine-steps b {
  color: #8cf4c8;
  font-size: 13px;
}

.report-module-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.report-module-card {
  display: grid;
  gap: 9px;
  min-height: 116px;
  padding: 12px;
  border-left: 4px solid var(--teal);
}

.report-module-card[data-status="review"] {
  border-left-color: var(--amber);
}

.report-module-card[data-status="blocked"] {
  border-left-color: var(--coral);
}

.report-module-card[data-status="done"] {
  border-left-color: var(--green);
}

.report-module-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.report-module-card h5 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.report-module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  body.is-report-view .report-command-hero,
  body.is-report-view .report-application-grid {
    grid-template-columns: 1fr;
  }

  .report-engine-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .report-kpi-row,
  .report-engine-card {
    grid-template-columns: 1fr;
  }

  .engine-orbit {
    margin: 0 auto;
  }
}

.card-tools {
  display: flex;
  gap: 6px;
}

.card-tools button {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
  color: var(--steel);
  font-size: 12px;
  font-weight: 700;
}

.control-panel {
  min-width: 0;
}

.panel-section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-section:last-child {
  border-bottom: 0;
}

.report-tone {
  background: #f9faf4;
}

.report-tone p {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.7;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field span {
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcf7;
  color: var(--ink);
  line-height: 1.5;
}

textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.button-row {
  gap: 10px;
}

.output-box {
  min-height: 260px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202622;
  color: #eff7ef;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  margin-top: 18px;
}

.log-panel,
.template-panel {
  min-width: 0;
  padding: 18px;
}

.activity-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-size: 13px;
}

.activity-list li:last-child {
  border-bottom: 0;
}

.activity-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.path-list {
  display: grid;
  gap: 10px;
}

.path-item {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.path-item:last-child {
  border-bottom: 0;
}

.path-item strong {
  color: var(--steel);
  font-size: 13px;
}

.path-item code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 12px;
}

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

.check-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
}

.check-item button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.check-item.is-done button {
  border-color: var(--green);
  background: #e5f4ec;
  color: var(--green);
}

.check-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.check-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.is-hidden {
  display: none;
}

body.is-running .pipeline-canvas {
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.3), 0 0 28px rgba(15, 118, 110, 0.2);
}

body.is-running .flow-active {
  animation-duration: 0.55s;
}

body.is-running .pipeline-node {
  border-color: rgba(110, 231, 183, 0.38);
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -72;
  }
}

@keyframes nodeFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes coreSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes statusPulse {
  70% {
    box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes surfaceSweep {
  45%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes barGrow {
  from {
    width: 0;
  }
  to {
    width: var(--width);
  }
}

@keyframes liveBarSweep {
  to {
    background-position: 180px 0, 0 0, 0 0;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .main-grid,
  .bottom-grid,
  .command-deck,
  .source-data-board {
    grid-template-columns: 1fr;
  }

  .flow-board {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

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

  .sidebar {
    position: static;
    padding: 18px;
  }

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

  .workspace {
    padding: 18px;
  }

  .summary-strip {
    display: flex;
  }

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

  .source-data-board {
    grid-template-columns: 1fr;
  }

  .schedule-rail {
    grid-template-columns: 1fr;
  }

  .schedule-rail::before {
    left: 28px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 3px;
    height: auto;
  }

  .schedule-node {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 96px;
    text-align: left;
  }

  .schedule-node .node-dot {
    margin: 0;
    grid-row: span 3;
  }

  .project-labor-board,
  .labor-visual-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-list,
  .claim-grid,
  .flow-board,
  .checklist-board {
    grid-template-columns: 1fr;
  }

  .pipeline-canvas {
    height: 560px;
  }

  .pipeline-svg,
  .pipeline-core {
    display: none;
  }

  .pipeline-node,
  .node-a,
  .node-b,
  .node-c,
  .node-d,
  .node-e {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin: 10px;
    transform: none;
  }

  .wechat-kpis,
  .worktext-summary,
  .work-map,
  .labor-kpi-grid,
  .manager-split {
    grid-template-columns: 1fr;
  }

  .brand-block {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }
}

/* Restored teal/green report theme with floating workflow window */
:root {
  --paper: #eef1ea;
  --surface: rgba(255, 255, 255, 0.72);
  --ink: #222620;
  --muted: #687066;
  --line: rgba(151, 164, 139, 0.32);
  --teal: #0f766e;
  --teal-soft: rgba(217, 241, 237, 0.76);
  --coral: #c75146;
  --amber: #b7791f;
  --green: #2f855a;
  --steel: #44546a;
  --shadow: 0 22px 54px rgba(36, 42, 31, 0.14);
  --deep: #17211e;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(15, 118, 110, 0.18), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(199, 81, 70, 0.1), transparent 30%),
    linear-gradient(90deg, rgba(23, 33, 30, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 33, 30, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #f7f8f3, #eef1ea 56%, #e2e7d8);
  background-size: 44px 44px;
}

.app-shell {
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  min-height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  margin: 18px 0 18px 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(110, 231, 183, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(15, 118, 110, 0.18), rgba(199, 81, 70, 0.06)),
    rgba(23, 33, 30, 0.9);
  box-shadow: 0 28px 70px rgba(23, 33, 30, 0.28);
  backdrop-filter: blur(18px) saturate(1.08);
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(217, 241, 237, 0.22);
}

.compact-panel {
  display: none;
}

.workspace {
  padding: 24px 24px 24px 6px;
}

.summary-strip article,
.daily-schedule-board,
.command-hero,
.data-panel,
.workflow-area,
.control-panel,
.log-panel,
.template-panel,
.flow-card,
.wechat-kpi,
.worktext-pill,
.work-card,
.check-item,
.system-status {
  border-color: rgba(151, 164, 139, 0.34);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: 0 22px 54px rgba(36, 42, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.primary-button {
  background: linear-gradient(135deg, #0f766e, #2f855a);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.24);
}

.automation-map {
  background:
    radial-gradient(circle at 18% 22%, rgba(110, 231, 183, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(23, 33, 30, 0.96), rgba(31, 42, 39, 0.93));
}

.pipeline-canvas {
  background:
    linear-gradient(90deg, rgba(217, 241, 237, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(217, 241, 237, 0.07) 1px, transparent 1px),
    rgba(255, 255, 255, 0.03);
  background-size: 34px 34px;
}

.source-badge {
  background: rgba(217, 241, 237, 0.82);
  color: var(--teal);
}

.schedule-node.is-done .node-dot,
.side-schedule li.is-done .side-dot {
  border-color: rgba(15, 118, 110, 0.74);
  background: rgba(217, 241, 237, 0.92);
  color: var(--teal);
}

.schedule-node.is-active .node-dot,
.side-schedule li.is-active .side-dot {
  border-color: #d99b32;
  background: #fff7e8;
  color: #b7791f;
}

.schedule-node.is-selected .node-dot,
.side-schedule li.is-selected .side-dot {
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.12), 0 0 24px rgba(15, 118, 110, 0.28);
}

.schedule-node.is-selected {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
}

.side-schedule li {
  cursor: pointer;
}

.side-schedule li.is-selected strong {
  color: #8cf4c8;
}

.production-fill,
.progress-trackline i {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 18%, rgba(255, 255, 255, 0.5) 42%, transparent 70%) 0 0 / 180px 100%,
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0 8px, rgba(255, 255, 255, 0) 8px 16px),
    linear-gradient(90deg, #0f766e, #d99b32, #c75146);
}

.progress-fill {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 18%, rgba(255, 255, 255, 0.5) 42%, transparent 70%) 0 0 / 180px 100%,
    linear-gradient(90deg, #0f766e, #6ee7b7);
}

.workflow-detail-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.detail-head span {
  color: #8cf4c8;
  font-size: 16px;
  font-weight: 900;
}

.detail-head strong {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.14);
  color: #a7f3d0;
  font-size: 12px;
}

.workflow-detail-panel h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.workflow-detail-panel p {
  margin: 0 0 12px;
  color: #b8c8c2;
  font-size: 12px;
  line-height: 1.5;
}

.detail-output {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(110, 231, 183, 0.18);
  border-radius: 14px;
  background: rgba(110, 231, 183, 0.08);
  color: #dff8ef;
}

.detail-output svg {
  width: 18px;
  height: 18px;
  color: #8cf4c8;
}

.detail-output span {
  overflow-wrap: anywhere;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.detail-status-grid {
  display: grid;
  gap: 8px;
}

.detail-status-grid div {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.detail-status-grid b,
.detail-status-grid span {
  display: block;
}

.detail-status-grid b {
  margin-bottom: 4px;
  color: #8cf4c8;
  font-size: 12px;
}

.detail-status-grid span {
  color: #d8e3d9;
  font-size: 11px;
  line-height: 1.45;
}

.work-detail-popover {
  border-color: rgba(15, 118, 110, 0.32);
  background:
    linear-gradient(135deg, rgba(217, 241, 237, 0.78), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

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

  .sidebar {
    position: static;
    min-height: auto;
    margin: 14px;
  }

  .workspace {
    padding: 18px;
  }
}

/* Final layout tuning: tiled quick-file matrix and softer moving background */
body {
  background:
    linear-gradient(115deg, rgba(15, 118, 110, 0.12), transparent 34%, rgba(217, 155, 50, 0.08) 58%, transparent 82%),
    linear-gradient(245deg, rgba(71, 194, 161, 0.12), transparent 42%, rgba(199, 81, 70, 0.06) 74%, transparent),
    linear-gradient(180deg, #f8faf4 0%, #edf1e7 48%, #e6ecdf 100%);
  background-size: 220% 220%, 180% 180%, 100% 100%;
  animation: softBackgroundFlow 18s ease-in-out infinite alternate;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.summary-strip article {
  flex: initial;
  min-height: 96px;
  padding: 11px 88px 11px 12px;
  scroll-snap-align: none;
}

.summary-strip p {
  margin-bottom: 5px;
}

.summary-strip strong {
  font-size: 18px;
}

.summary-strip span {
  min-height: 15px;
}

.file-updated {
  margin-top: 6px;
}

.openable-card em {
  position: absolute;
  top: 10px;
  right: 10px;
  margin-top: 0;
  min-height: 24px;
  padding: 4px 8px;
}

.summary-strip::-webkit-scrollbar {
  display: none;
}

@keyframes softBackgroundFlow {
  0% {
    background-position: 0% 45%, 100% 50%, 0 0;
  }
  100% {
    background-position: 100% 55%, 0% 48%, 0 0;
  }
}

@media (max-width: 1180px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .summary-strip {
    grid-template-columns: 1fr;
  }
}

/* Production and weather-risk visualization */
.data-risk {
  grid-column: 1 / -1;
}

.month-plan-hero {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 20%, rgba(15, 118, 110, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(217, 241, 237, 0.32));
}

.month-gauge {
  position: relative;
  display: grid;
  width: 140px;
  height: 140px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, #0f766e var(--value), rgba(217, 155, 50, 0.42) var(--value), rgba(199, 81, 70, 0.34) 100%),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12), 0 18px 38px rgba(15, 118, 110, 0.14);
}

.month-gauge::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(248, 250, 244, 0.95);
}

.month-gauge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0deg, rgba(110, 231, 183, 0.52) 22deg, transparent 48deg),
    radial-gradient(circle, transparent 58%, rgba(15, 118, 110, 0.16) 60%, transparent 66%);
  animation: gaugeScan 3.2s linear infinite;
  filter: blur(0.2px);
}

.month-gauge > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  text-align: center;
}

.month-gauge > div::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 18px rgba(110, 231, 183, 0.72);
  transform: translateX(-50%);
  animation: gaugePulse 1.6s ease-in-out infinite;
}

.month-gauge strong {
  color: var(--teal);
  font-size: 32px;
  line-height: 1;
}

.month-gauge span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
}

.month-plan-copy {
  min-width: 0;
}

.month-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.month-plan-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.month-plan-head > span {
  align-self: flex-start;
  white-space: nowrap;
}

.risk-high,
.risk-mid,
.risk-low {
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.risk-high {
  background: #c75146;
}

.risk-mid {
  background: #d99b32;
}

.risk-low {
  background: #0f766e;
}

.month-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.month-stat-grid span {
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(151, 164, 139, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--steel);
  font-size: 11px;
  font-weight: 800;
}

.month-stat-grid b {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 18px;
}

.month-day-track {
  display: grid;
  grid-template-columns: repeat(31, minmax(3px, 1fr));
  gap: 2px;
  align-items: end;
  height: 22px;
}

.month-day {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(151, 164, 139, 0.2);
}

.month-day.is-done {
  height: 18px;
  background: linear-gradient(180deg, #6ee7b7, #0f766e);
}

.month-day.is-gap {
  background: rgba(217, 155, 50, 0.42);
}

.month-day.is-today {
  height: 22px;
  background: linear-gradient(180deg, #f3c36a, #c75146);
  box-shadow: 0 0 0 3px rgba(217, 155, 50, 0.16);
}

.progress-item.is-risk-high,
.progress-item.is-risk-mid {
  padding: 8px;
  border-radius: 8px;
  background: rgba(217, 241, 237, 0.32);
}

.progress-item.is-risk-high .progress-value,
.progress-item.is-risk-mid .progress-value {
  color: var(--teal);
}

.progress-item.has-daily-progress {
  border-left: 3px solid rgba(15, 118, 110, 0.54);
}

.daily-progress-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  background: rgba(217, 241, 237, 0.62);
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.progress-item.no-daily-progress .daily-progress-line {
  border-color: rgba(151, 164, 139, 0.2);
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
}

.risk-forecast {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1fr);
  gap: 12px;
}

.risk-summary-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(151, 164, 139, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(199, 81, 70, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.56);
}

.risk-score {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, #c75146 var(--risk), rgba(151, 164, 139, 0.22) 0),
    #ffffff;
}

.risk-score::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #f8faf4;
}

.risk-score strong,
.risk-score span {
  position: relative;
  display: block;
  text-align: center;
}

.risk-score strong {
  color: #c75146;
  font-size: 26px;
  line-height: 1;
}

.risk-score span {
  color: var(--steel);
  font-size: 11px;
  font-weight: 900;
}

.risk-summary-card h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.risk-summary-card p:not(.eyebrow) {
  margin: 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.55;
}

.forecast-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  align-content: start;
}

/* 月计划面板的年计划/合同额两条已删(与产值趋势三环重复)，空容器隐藏防留白 */
.production-bars:empty { display: none; }

.forecast-card {
  display: grid;
  gap: 5px;
  min-height: 138px;
  padding: 10px;
  border: 1px solid rgba(151, 164, 139, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.forecast-card span,
.forecast-card em,
.forecast-card i,
.forecast-card b {
  display: block;
}

.forecast-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.forecast-card strong {
  color: var(--ink);
  font-size: 16px;
}

.forecast-card em {
  color: var(--teal);
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
}

.forecast-card i {
  color: var(--steel);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.forecast-card b {
  align-self: end;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal);
  font-size: 11px;
}

.forecast-card.risk-level-高 {
  border-color: rgba(199, 81, 70, 0.28);
  background: linear-gradient(135deg, rgba(199, 81, 70, 0.12), rgba(255, 255, 255, 0.62));
}

.forecast-card.risk-level-高 b {
  background: rgba(199, 81, 70, 0.12);
  color: #c75146;
}

.forecast-card.risk-level-中 b {
  background: rgba(217, 155, 50, 0.14);
  color: #b7791f;
}

/* 降雨雷达：天气版块内嵌 Windy 实时降水动态地图（现成第三方组件，免密钥） */
.rain-radar {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(151, 164, 139, 0.22);
}

.rain-radar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.rain-radar-head .eyebrow { margin: 0; }

.rain-radar-src {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.rain-radar-frame {
  position: relative;
  height: 340px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(151, 164, 139, 0.24);
  background: rgba(13, 60, 130, 0.05);
}

.rain-radar-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 760px) {
  .rain-radar-frame { height: 300px; }
}

.risk-action-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.risk-action-grid span {
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: rgba(217, 241, 237, 0.5);
  color: var(--steel);
  font-size: 12px;
  line-height: 1.5;
}

.risk-action-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
}

@keyframes gaugeScan {
  to {
    rotate: 360deg;
  }
}

@keyframes gaugePulse {
  0%,
  100% {
    opacity: 0.55;
    scale: 0.86;
  }
  50% {
    opacity: 1;
    scale: 1.18;
  }
}

@keyframes dailyPulseBar {
  0%,
  100% {
    background-position: 0 0, 0 0;
    filter: saturate(1);
  }
  50% {
    background-position: 90px 0, 0 0;
    filter: saturate(1.25);
  }
}

@media (max-width: 1180px) {
  .risk-forecast,
  .risk-action-grid {
    grid-template-columns: 1fr;
  }

  .forecast-strip {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .month-plan-hero,
  .risk-summary-card {
    grid-template-columns: 1fr;
  }

  .month-gauge,
  .risk-score {
    margin: 0 auto;
  }

  .month-stat-grid {
    grid-template-columns: 1fr;
  }

  .progress-item {
    grid-template-columns: minmax(96px, 0.75fr) minmax(0, 1fr) 56px;
    gap: 8px;
    align-items: center;
  }

  .progress-name {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .daily-progress-line {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
  }

  .progress-item > div:not(.daily-progress-line) {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  .progress-value {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Closed-loop overview polish */
.command-deck {
  align-items: start;
}

.command-hero {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 22px;
  background:
    radial-gradient(circle at 8% 6%, rgba(15, 118, 110, 0.18), transparent 34%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 244, 0.64));
}

.hero-copy h3 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.24;
}

.hero-copy p:last-child {
  max-width: 720px;
  margin-bottom: 0;
}

.loop-status-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.automation-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.automation-proof span {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(240, 253, 250, 0.66)),
    rgba(255, 255, 255, 0.68);
  color: var(--steel);
  font-size: 12px;
  line-height: 1.42;
}

.automation-proof svg {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 8px;
  background: #dbeafe;
  color: #2563eb;
}

.automation-proof b {
  display: block;
  margin-bottom: 2px;
  color: #0f172a;
  font-size: 13px;
}

.loop-status-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px 9px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(151, 164, 139, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(217, 241, 237, 0.3)),
    rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.loop-status-item::after {
  content: none;
}

.loop-status-item svg {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.11);
  color: var(--teal);
}

.loop-status-item span,
.loop-status-item strong {
  position: relative;
  z-index: 1;
  display: block;
}

.loop-status-item span {
  align-self: end;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.loop-status-item strong {
  align-self: start;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.loop-status-item.is-running {
  border-color: rgba(217, 155, 50, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.82), rgba(217, 241, 237, 0.26)),
    rgba(255, 255, 255, 0.54);
}

.loop-status-item.is-running svg {
  background: rgba(217, 155, 50, 0.14);
  color: #b7791f;
}

.loop-status-item.is-ready {
  border-color: rgba(199, 81, 70, 0.22);
}

.claim-grid {
  gap: 8px;
}

.claim-grid div {
  min-height: 70px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.claim-grid strong {
  font-size: 28px;
}

.automation-map {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background:
    radial-gradient(circle at 16% 18%, rgba(110, 231, 183, 0.2), transparent 26%),
    radial-gradient(circle at 84% 82%, rgba(217, 155, 50, 0.15), transparent 30%),
    linear-gradient(145deg, rgba(23, 33, 30, 0.97), rgba(31, 42, 39, 0.94));
}

.pipeline-canvas {
  flex: 1;
  min-height: 418px;
}

.pipeline-status {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(110, 231, 183, 0.18);
  border-radius: 999px;
  background: rgba(23, 33, 30, 0.68);
  color: #c9ddd6;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.pipeline-status b {
  color: #8cf4c8;
  font-size: 13px;
}

.pipeline-core {
  width: 198px;
  height: 198px;
}

.pipeline-node {
  width: 154px;
  min-height: 90px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, scale 0.2s ease;
}

.pipeline-node::after {
  content: "已闭环";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.13);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pipeline-node:hover {
  border-color: rgba(110, 231, 183, 0.48);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), 0 0 26px rgba(110, 231, 183, 0.13);
  scale: 1.02;
}

.pipeline-node:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.node-a {
  top: 41%;
}

.node-b,
.node-c {
  top: 68px;
}

.node-b {
  left: 16%;
  right: auto;
}

.node-c {
  left: auto;
  right: 16%;
}

.node-d {
  top: 41%;
}

.node-e {
  bottom: 72px;
}

.pipeline-output-ribbon {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 9px 12px;
  border: 1px solid rgba(217, 155, 50, 0.2);
  border-radius: 8px;
  background: rgba(217, 155, 50, 0.1);
  color: #f3dfb8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(10px);
}

@media (max-width: 1360px) {
  .command-deck {
    grid-template-columns: 1fr;
  }

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

  .automation-proof,
  .loop-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .automation-proof,
  .loop-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-canvas {
    min-height: 390px;
  }
}

@media (max-width: 820px) {
  .claim-grid,
  .automation-proof,
  .loop-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-status {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .claim-grid,
  .automation-proof,
  .loop-status-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-node,
  .node-a,
  .node-b,
  .node-c,
  .node-d,
  .node-e {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
  }

  .pipeline-status,
  .pipeline-output-ribbon {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 10px;
    transform: none;
  }
}

/* Document center dashboard fit */
[hidden],
.legacy-action {
  display: none !important;
}

.daily-photo-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.3fr) minmax(0, 1fr) 116px;
  gap: 14px;
  min-height: 478px;
  margin-bottom: 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #0f172a, #1e293b 48%, #0f766e);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

.carousel-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 12px;
  color: #ffffff;
}

.carousel-copy .eyebrow {
  color: #93c5fd;
}

.carousel-copy h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.12;
}

.carousel-copy span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.65;
}

.carousel-stage {
  position: relative;
  min-width: 0;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 700ms ease, transform 900ms ease;
}

.carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.carousel-slide.is-active img {
  animation: photoDrift 4.2s ease-in-out both;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.76));
}

.carousel-slide figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 5px;
  color: #ffffff;
}

.carousel-slide figcaption span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.76);
  font-size: 11px;
  font-weight: 900;
}

.carousel-slide figcaption strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-loading {
  display: grid;
  min-height: 292px;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.carousel-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: min(520px, calc(100% - 56px));
}

.carousel-dots button {
  display: grid;
  width: 30px;
  height: 8px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.carousel-dots button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.carousel-dots button.is-active {
  width: 46px;
  background: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

@keyframes photoDrift {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}

.site-fit-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.84)),
    #ffffff;
}

.site-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.site-panel-header h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.site-panel-header span:not(.live-chip) {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.site-metric-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.site-metric-grid span,
.site-metric-grid strong {
  display: block;
}

.site-metric-grid span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-metric-grid strong {
  color: #1d4ed8;
  font-size: 24px;
  line-height: 1;
}

.site-category-bars {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
}

.site-category-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(90px, 1.3fr) 44px;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.site-category-row span {
  overflow: hidden;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-category-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.site-category-row i {
  display: block;
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.site-category-row strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

.document-ops-board {
  display: grid;
  grid-template-columns: minmax(420px, 1.4fr) minmax(260px, 0.8fr) minmax(240px, 0.7fr);
  gap: 16px;
  margin-bottom: 18px;
}

.ops-card {
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    #ffffff;
}

.ops-card .section-heading > i,
.ops-card .section-heading > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.ops-recent-list,
.ops-guide-list {
  display: grid;
  gap: 10px;
}

.ops-recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.8);
}

.ops-recent-item strong,
.ops-recent-item span {
  display: block;
  min-width: 0;
}

.ops-recent-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-recent-item span,
.ops-recent-item time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ops-recent-item time {
  font-weight: 800;
  white-space: nowrap;
}

.ops-guide-list span {
  display: block;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.55;
}

.ops-guide-list b {
  display: block;
  margin-bottom: 3px;
  color: #1d4ed8;
}

.ops-server-card {
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 16px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(239, 246, 255, 0.74)),
    #ffffff;
}

.ops-server-card strong {
  color: #0f766e;
  font-size: 22px;
}

.ops-server-card span,
.ops-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .daily-photo-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-copy {
    align-content: start;
    padding-bottom: 0;
  }

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

  .document-ops-board {
    grid-template-columns: 1fr 1fr;
  }

  .ops-card-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .daily-photo-carousel {
    min-height: auto;
    padding: 14px;
  }

  .carousel-copy h3 {
    font-size: 26px;
  }

  .carousel-stage,
  .carousel-loading {
    min-height: 230px;
  }

  .carousel-dots {
    position: static;
    justify-content: flex-start;
    max-width: 100%;
    margin-top: -2px;
  }

  .site-panel-header,
  .ops-recent-item {
    grid-template-columns: 1fr;
  }

  .site-panel-header {
    display: grid;
  }

  .document-ops-board,
  .site-metric-grid {
    grid-template-columns: 1fr;
  }

  .site-category-row {
    grid-template-columns: minmax(86px, 0.8fr) minmax(0, 1fr) 40px;
  }

  .ops-recent-item strong {
    white-space: normal;
  }
}

/* ===================================================================
   3.0 明亮玻璃指挥中心（Bright Glass Command Center）
   追加于文件末尾，整体覆盖上方规则：苹果玻璃质感 + 蓝色弥散光
   =================================================================== */

:root {
  --paper: #ecf3fd;
  --surface: rgba(255, 255, 255, 0.7);
  --ink: #0e1b2c;
  --muted: #5c6c80;
  --line: rgba(13, 60, 130, 0.12);
  --teal: #0a7aff;
  --teal-soft: rgba(10, 122, 255, 0.1);
  --coral: #0ea5e9;
  --amber: #d97706;
  --green: #16a34a;
  --steel: #41546e;
  --shadow: 0 14px 44px rgba(23, 58, 128, 0.1);
  --deep: #dbe9fc;
  --glass: rgba(255, 255, 255, 0.64);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glow: 0 6px 18px rgba(10, 122, 255, 0.22);
  --num: #0a66d8;
}

body,
.app-shell {
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(64, 156, 255, 0.22), transparent 60%),
    radial-gradient(900px 520px at -10% 30%, rgba(125, 211, 252, 0.22), transparent 55%),
    radial-gradient(800px 560px at 75% 100%, rgba(99, 102, 241, 0.1), transparent 55%),
    linear-gradient(170deg, #f3f8ff 0%, #e9f1fc 50%, #e2edfb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(13, 60, 130, 0.025) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(13, 60, 130, 0.025) 0 1px, transparent 1px 44px);
}

.app-shell > * {
  position: relative;
  z-index: 1;
}

/* ---------- 面板统一：明亮玻璃卡 ---------- */

.sidebar,
.data-panel,
.workflow-area,
.control-panel,
.log-panel,
.template-panel,
.project-labor-board,
.command-hero,
.automation-map,
.site-fit-panel,
.ops-card,
.topbar,
.daily-photo-carousel,
.daily-schedule-board,
.summary-strip article,
.compact-panel {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-radius: 16px;
}

/* 当日施工图片：文案原为深底白字，明亮化后改为浅底深字（修复白字看不清） */
.carousel-copy {
  color: var(--ink);
}

.carousel-copy .eyebrow {
  color: var(--teal);
}

.carousel-copy h3 {
  color: var(--ink);
  text-shadow: none;
}

.carousel-copy span {
  color: var(--muted);
}

.carousel-stage {
  border-color: rgba(13, 60, 130, 0.12);
}

.carousel-loading {
  color: var(--muted);
}

.topbar h2,
.section-heading h3,
.sidebar h1,
.sidebar-flow-head h2,
.project-identity h3,
.hero-copy h3,
.site-panel-header h3 {
  color: var(--ink);
  text-shadow: none;
}

.eyebrow,
.sidebar .eyebrow {
  color: var(--teal);
  letter-spacing: 0.14em;
}

p,
.summary-strip span,
.today-update-summary span,
.hero-copy p,
.project-identity p,
.site-panel-header span,
.side-schedule span {
  color: var(--steel);
}

.made-by {
  color: var(--num);
  background: var(--teal-soft);
  border: 1px solid rgba(10, 122, 255, 0.25);
}

.brand-mark {
  color: #fff;
  background: linear-gradient(135deg, #4fa6ff, #0a66d8);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: none;
}

/* ---------- 顶栏与按钮 ---------- */

.doc-center-link,
.secondary-button,
.icon-button,
.mini-link,
.check-item button,
.card-tools button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 60, 130, 0.14);
}

.doc-center-link:hover,
.mini-link:hover,
.secondary-button:hover,
.icon-button:hover {
  border-color: rgba(10, 122, 255, 0.45);
  box-shadow: var(--glow);
  background: #fff;
  color: var(--num);
}

.primary-button {
  color: #fff;
  background: linear-gradient(120deg, #3b9bff, #0a66d8);
  border: none;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.system-status {
  color: #0f7a3d;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 999px;
}

.system-status span {
  background: #22b85c;
  box-shadow: 0 0 8px rgba(34, 184, 92, 0.7);
}

.live-chip {
  color: var(--num);
  background: var(--teal-soft);
  border: 1px solid rgba(10, 122, 255, 0.3);
  box-shadow: 0 4px 14px rgba(10, 122, 255, 0.16);
}

/* ---------- 关键日期卡 ---------- */

.summary-strip article {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.summary-strip strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.summary-strip p {
  color: var(--num);
}

.openable-card:hover,
.openable-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(10, 122, 255, 0.45);
  box-shadow: 0 20px 50px rgba(23, 58, 128, 0.18);
  background: var(--glass-strong);
}

.openable-card em {
  color: var(--num);
  background: var(--teal-soft);
}

.openable-card.confidential-card {
  background: rgba(228, 235, 244, 0.6);
  border-style: dashed;
}

.openable-card.confidential-card em {
  color: var(--muted);
  background: rgba(110, 125, 145, 0.12);
}

.file-updated {
  color: var(--green);
}

.file-updated.is-missing {
  color: var(--muted);
}

/* ---------- 数据面板内部 ---------- */

.month-plan-hero {
  background: rgba(244, 249, 255, 0.85);
  border-color: var(--line);
}

/* 月度计划完成率：恢复环形数据环（蓝色） */
.month-gauge {
  background:
    conic-gradient(from -90deg, #0a7aff var(--value, 0%), rgba(13, 60, 130, 0.1) 0),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(10, 122, 255, 0.14), 0 14px 32px rgba(10, 122, 255, 0.14);
  border-color: transparent;
}

.month-gauge::before {
  background: #fff;
}

.month-gauge::after {
  background:
    conic-gradient(from 0deg, transparent 0deg, rgba(10, 122, 255, 0.38) 22deg, transparent 48deg),
    radial-gradient(circle, transparent 58%, rgba(10, 122, 255, 0.14) 60%, transparent 66%);
}

.month-gauge > div::after {
  background: #3b9bff;
  box-shadow: 0 0 14px rgba(59, 155, 255, 0.7);
}

.month-stat-grid span,
.claim-grid div,
.labor-kpi-grid article,
.manager-split span,
.report-kpi-row span,
.forecast-card,
.report-module-card,
.ops-guide-list span,
.ops-recent-item,
.ops-server-card,
.loop-status-item,
.automation-proof span,
.detail-status-grid div,
.engine-steps span {
  color: var(--steel);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

/* 今日更新详情卡：修正深色主题残留的低对比文字（白标题/浅绿标签在亮底上看不清） */
.workflow-detail-panel h3 { color: var(--ink); }
.workflow-detail-panel p { color: var(--muted); }
.detail-head span { color: var(--num); }
.detail-head strong { color: var(--num); background: rgba(10, 102, 216, 0.12); }
.detail-status-grid b { color: var(--num); }
.detail-status-grid span { color: var(--ink); }

.claim-grid strong,
.labor-kpi-grid strong,
.site-metric-grid strong,
.month-stat-grid b,
.wechat-kpis strong {
  color: var(--num);
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}

.labor-kpi-grid svg,
.loop-status-item svg,
.automation-proof svg,
.lane-head svg,
.ops-card .section-heading > svg {
  color: var(--teal);
  background: var(--teal-soft);
}

.loop-status-item.is-running {
  border-color: rgba(217, 119, 6, 0.4);
}

.loop-status-item.is-running svg {
  color: var(--amber);
  background: rgba(217, 119, 6, 0.1);
}

.labor-row div {
  background: rgba(13, 60, 130, 0.09);
}

.labor-row i {
  background: linear-gradient(90deg, #54b0ff, #0a7aff);
  box-shadow: 0 2px 8px rgba(10, 122, 255, 0.3);
}

.labor-ring {
  background:
    radial-gradient(closest-side, #ffffff 78%, transparent 79% 100%),
    conic-gradient(#0a7aff var(--ring), rgba(13, 60, 130, 0.1) 0);
  box-shadow: 0 10px 30px rgba(10, 122, 255, 0.16);
}

.labor-ring::before {
  background: transparent;
}

.labor-ring strong {
  color: var(--num);
  text-shadow: none;
}

.project-logo {
  color: #fff;
  background: linear-gradient(135deg, #4fa6ff, #0a66d8);
  box-shadow: var(--glow);
}

.project-tags span,
.risk-action-grid span {
  color: var(--num);
  background: var(--teal-soft);
  border: 1px solid rgba(10, 122, 255, 0.22);
}

.project-labor-board::after,
.automation-map::after {
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.35) 48%, transparent 70%);
}

/* ---------- 进度与图表 ---------- */

.progress-track,
.progress-trackline,
.daily-progress-line {
  background: rgba(13, 60, 130, 0.09);
}

.progress-fill,
.progress-trackline i {
  background: linear-gradient(90deg, #54b0ff, #0a7aff);
  box-shadow: 0 2px 8px rgba(10, 122, 255, 0.3);
}

.production-bars i,
.site-category-bars i {
  background: linear-gradient(90deg, #54b0ff, #0a7aff) !important;
  box-shadow: 0 2px 6px rgba(10, 122, 255, 0.26);
}

.month-day {
  background: rgba(13, 60, 130, 0.1);
}

.month-day.is-done {
  background: linear-gradient(180deg, #3b9bff, #0a66d8);
  box-shadow: 0 2px 6px rgba(10, 122, 255, 0.3);
}

.month-day.is-today {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
}

.month-day.is-gap {
  background: rgba(245, 158, 11, 0.3);
}

.progress-item.is-risk-mid {
  background: rgba(217, 119, 6, 0.07);
}

.progress-item.no-daily-progress .daily-progress-line {
  background: rgba(13, 60, 130, 0.06);
}

.forecast-card b {
  background: var(--teal-soft);
  color: var(--num);
}

.forecast-card.risk-level-中 b {
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber);
}

.forecast-card.risk-level-高 {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(255, 255, 255, 0.78));
}

.forecast-card.risk-level-高 b {
  background: rgba(225, 29, 72, 0.12);
  color: #be123c;
}

/* ---------- 侧栏 ---------- */

.sidebar-flow,
.file-update-panel {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.sidebar-flow-head strong {
  color: var(--num);
  text-shadow: none;
}

.today-update-summary strong,
.side-schedule strong {
  color: var(--ink);
}

.side-schedule::before {
  background: rgba(10, 122, 255, 0.22);
}

.side-dot {
  background: #fff;
  border-color: rgba(10, 122, 255, 0.45);
}

.side-schedule li.is-done .side-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
}

.side-schedule li.is-active .side-dot {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(10, 122, 255, 0.6);
}

.side-schedule li.is-selected > div,
.side-schedule li:hover > div {
  background: rgba(10, 122, 255, 0.07);
}

.side-schedule time {
  color: var(--muted);
}

/* ---------- 轮播与列表 ---------- */

.carousel-stage {
  background: rgba(228, 238, 250, 0.85);
  border: 1px solid var(--line);
}

.carousel-dots button {
  background: rgba(13, 60, 130, 0.18);
}

.carousel-dots button.is-active {
  background: var(--teal);
  box-shadow: 0 0 6px rgba(10, 122, 255, 0.5);
}

.carousel-slide figcaption span {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.ops-recent-item:hover {
  border-color: rgba(10, 122, 255, 0.4);
  background: rgba(10, 122, 255, 0.05);
}

.ops-recent-item strong {
  color: var(--ink);
}

.site-metric-grid div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.site-metric-grid span {
  color: var(--muted);
}

/* ---------- 滚动条与选区 ---------- */

::selection {
  color: var(--ink);
  background: rgba(10, 122, 255, 0.2);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(13, 60, 130, 0.05);
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(13, 60, 130, 0.2);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 122, 255, 0.45);
}

/* ---------- 数字入场动效 ---------- */

@keyframes commandPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.system-status strong {
  animation: commandPulse 2.6s ease-in-out infinite;
}

/* ---------- 产值趋势区块 ---------- */

.value-trend-board,
.activity-heat-board {
  margin-top: 18px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
}

.trend-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 250px;
  gap: 18px;
  margin-top: 16px;
  align-items: stretch;
}

.trend-gauges {
  display: grid;
  gap: 14px;
  align-content: space-between;
}

.trend-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #ffffff 76%, transparent 77% 100%),
    conic-gradient(#0a7aff var(--ring), rgba(13, 60, 130, 0.1) 0);
  box-shadow: 0 10px 26px rgba(10, 122, 255, 0.14);
}

.trend-ring > div {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.trend-ring strong {
  font-size: 20px;
  color: var(--num);
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}

.trend-ring span {
  font-size: 11px;
  color: var(--muted);
}

.trend-chart-wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.trend-chart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.trend-chart-head strong {
  font-size: 30px;
  color: var(--num);
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}

.trend-chart-head span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.trend-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}

.trend-legend span::before {
  content: "";
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.trend-legend .lg-line::before {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b9bff, #0a66d8);
}

.trend-legend .lg-bar::before {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(10, 122, 255, 0.45);
}

#trendChart {
  width: 100%;
  height: 230px;
  display: block;
}

.trend-line {
  fill: none;
  stroke: #0a7aff;
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 3px 5px rgba(10, 122, 255, 0.35));
}

.trend-area {
  fill: url(#trendFill);
}

.trend-dot {
  fill: #ffffff;
  stroke: #0a7aff;
  stroke-width: 2;
}

.trend-dot:hover {
  fill: #0a7aff;
}

.trend-bar {
  fill: rgba(10, 122, 255, 0.38);
}

.trend-bar:hover {
  fill: rgba(10, 122, 255, 0.75);
}

.trend-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.trend-items {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  background: rgba(244, 249, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.trend-items h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink);
}

.trend-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.trend-item-row span {
  color: var(--steel);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-item-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 60, 130, 0.1);
  overflow: hidden;
}

.trend-item-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #54b0ff, #0a7aff);
  box-shadow: none;
}

.trend-item-row strong {
  color: var(--num);
  font-variant-numeric: tabular-nums;
}

.trend-empty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.trend-money {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}

.trend-money b {
  color: var(--num);
  font-variant-numeric: tabular-nums;
}

/* ---------- 线路工点进度图 ---------- */

.route-board {
  margin-top: 18px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
}

/* 工序完成率 KPI 概览（演示头部） */
.route-kpis {
  display: grid;
  grid-template-columns: 1.4fr repeat(6, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.route-kpi {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 18px rgba(23, 58, 128, 0.06);
}

.route-kpi-hero {
  background: linear-gradient(150deg, rgba(10, 122, 255, 0.14), rgba(10, 122, 255, 0.04));
  border-color: rgba(10, 122, 255, 0.28);
  box-shadow: 0 10px 28px rgba(10, 122, 255, 0.16);
}

.route-kpi-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-kpi-hero .route-kpi-name {
  color: var(--num);
}

.route-kpi strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--num);
  font-variant-numeric: tabular-nums;
}

.route-kpi-hero strong {
  font-size: 30px;
}

.route-kpi strong i {
  font-size: 0.55em;
  font-weight: 700;
  font-style: normal;
  margin-left: 1px;
  opacity: 0.85;
}

.route-kpi-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 60, 130, 0.1);
  overflow: hidden;
}

.route-kpi-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #54b0ff, #0a7aff);
  transform-origin: left;
  animation: routeKpiGrow 1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s both;
}

.route-kpi.is-mid .route-kpi-bar i {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.route-kpi.is-low .route-kpi-bar i {
  background: linear-gradient(90deg, #fb9a8f, #e1485f);
}

.route-kpi.is-mid strong {
  color: #d97706;
}

.route-kpi.is-low strong {
  color: #be123c;
}

.route-kpi small {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

@keyframes routeKpiGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .route-kpi-bar i { animation: none; }
}

.route-map {
  margin-top: 14px;
  overflow-x: auto;
}

.route-map svg {
  display: block;
  width: 100%;
  min-width: 880px;
  height: auto;
}

.route-grid {
  stroke: rgba(13, 60, 130, 0.1);
  stroke-width: 1;
}

.route-tick {
  fill: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.route-lane-line {
  stroke: rgba(13, 60, 130, 0.08);
  stroke-width: 1;
}

.route-label {
  fill: var(--steel);
  font-size: 12px;
}

.route-stat {
  fill: var(--num);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.route-pt-done {
  fill: #0a7aff;
}

.route-pt-part {
  fill: #f59e0b;
}

.route-pt-todo {
  fill: rgba(13, 60, 130, 0.14);
}

.route-active-line {
  stroke: rgba(217, 119, 6, 0.4);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.route-active-dot {
  fill: #f59e0b;
  animation: commandPulse 1.6s ease-in-out infinite;
}

.route-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.route-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.route-lg {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.route-lg.lg-done { background: #0a7aff; box-shadow: 0 1px 4px rgba(10, 122, 255, 0.4); }
.route-lg.lg-part { background: #f59e0b; }
.route-lg.lg-todo { background: rgba(13, 60, 130, 0.14); }
.route-lg.lg-active { background: #f59e0b; border-radius: 50%; box-shadow: 0 0 6px rgba(245, 158, 11, 0.7); }

.route-src {
  margin-left: auto;
  opacity: 0.8;
}

/* ---------- 施工活动热力 ---------- */

.heatmap-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 20px;
  margin-top: 16px;
  align-items: center;
}

.heatmap-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 13px);
  grid-auto-columns: 13px;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.heatmap-grid i,
.heat-legend i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.heat-l0 { background: rgba(13, 60, 130, 0.07); }
.heat-l1 { background: rgba(10, 122, 255, 0.25); }
.heat-l2 { background: rgba(10, 122, 255, 0.45); }
.heat-l3 { background: rgba(10, 122, 255, 0.7); }
.heat-l4 { background: #0a7aff; box-shadow: 0 1px 5px rgba(10, 122, 255, 0.45); }

.heatmap-grid i:hover {
  outline: 1px solid rgba(10, 102, 216, 0.85);
}

.heatmap-side {
  display: grid;
  gap: 10px;
}

.heatmap-side > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.heatmap-side strong {
  min-width: 44px;
  font-size: 22px;
  color: var(--num);
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}

.heatmap-side span {
  font-size: 12px;
  color: var(--muted);
}

.heat-legend {
  display: flex !important;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.heat-legend span {
  font-size: 11px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .trend-layout {
    grid-template-columns: 1fr;
  }

  .trend-gauges {
    grid-template-columns: repeat(3, 1fr);
  }

  .heatmap-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .trend-gauges {
    grid-template-columns: 1fr;
  }

  .trend-chart-head strong {
    font-size: 24px;
  }
}

/* ---------- 演示级入场动画 ---------- */

@keyframes glassRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trendDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes trendBarGrow {
  to {
    transform: scaleY(1);
  }
}

@keyframes softFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.topbar {
  animation: glassRise 0.5s ease both;
}

.sidebar {
  animation: glassRise 0.55s ease both 0.05s;
}

.daily-photo-carousel {
  animation: glassRise 0.55s ease both 0.1s;
}

.summary-strip article {
  animation: glassRise 0.5s ease both calc(0.12s + var(--stagger, 0) * 0.06s);
}

.summary-strip article:nth-child(1) { --stagger: 0; }
.summary-strip article:nth-child(2) { --stagger: 1; }
.summary-strip article:nth-child(3) { --stagger: 2; }
.summary-strip article:nth-child(4) { --stagger: 3; }
.summary-strip article:nth-child(5) { --stagger: 4; }

.route-board {
  animation: glassRise 0.55s ease both 0.16s;
}

.value-trend-board {
  animation: glassRise 0.55s ease both 0.22s;
}

.activity-heat-board {
  animation: glassRise 0.55s ease both 0.28s;
}

.data-panel,
.project-labor-board,
.command-hero,
.ops-card {
  animation: glassRise 0.55s ease both 0.18s;
}

/* 产值曲线：描线生长 */
.trend-line {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: trendDraw 1.8s cubic-bezier(0.3, 0.6, 0.25, 1) 0.25s forwards;
}

.trend-area {
  opacity: 0;
  animation: softFadeIn 0.9s ease 1.1s forwards;
}

.trend-dot {
  opacity: 0;
  animation: softFadeIn 0.5s ease 1.5s forwards;
}

/* 当日完成柱：自下而上生长 */
.trend-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: trendBarGrow 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) 0.45s forwards;
}

.route-map svg,
.heatmap-grid {
  animation: softFadeIn 0.7s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .sidebar,
  .daily-photo-carousel,
  .summary-strip article,
  .value-trend-board,
  .route-board,
  .activity-heat-board,
  .data-panel,
  .project-labor-board,
  .command-hero,
  .ops-card,
  .trend-line,
  .trend-area,
  .trend-dot,
  .trend-bar,
  .route-map svg,
  .heatmap-grid {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* =====================================================================
   手机端专项适配（≤640px）— 领导演示聚焦工程数据
   原桌面看板在手机上达 ~12700px（16 屏），此层精简为可快速浏览的数据故事
   ===================================================================== */

@media (max-width: 640px) {
  /* 单列布局，去掉桌面侧栏栅格 */
  .app-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* 隐藏运营/运维类长面板：这些面向项目部内部，不是领导关注的工程数据 */
  .sidebar,
  .command-deck,
  .document-ops-board,
  .workflow-area,
  .control-panel,
  .bottom-grid,
  .daily-schedule-board {
    display: none !important;
  }

  /* 主区铺满、边距收紧 */
  .main-view,
  .content-area,
  .dashboard-main,
  main {
    padding: 12px !important;
    margin: 0 !important;
  }

  /* 顶栏（标题/文档中心/自动化系统在线/演示按钮）在手机端整条隐藏：
     标题已由主站标签体现，演示改由主站底部悬浮「一键演示」入口触发，腾出篇幅给工程数据 */
  .topbar {
    display: none !important;
  }

  /* 关键日期：固定单行横滑（原被 display:grid 竖排撑到 ~1800px） */
  .summary-strip {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .summary-strip article {
    flex: 0 0 auto;
    width: 158px;
    min-width: 158px;
    scroll-snap-align: start;
  }

  /* 各数据看板：边距与圆角收紧 */
  .value-trend-board,
  .route-board,
  .activity-heat-board,
  .project-labor-board {
    padding: 14px;
    margin-top: 14px;
    border-radius: 14px;
  }

  .section-heading h3 {
    font-size: 16px;
  }

  /* 进度图 KPI：综合卡占满整行，6 道工序 2 列 */
  .route-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .route-kpi-hero {
    grid-column: 1 / -1;
  }

  .route-kpi strong {
    font-size: 19px;
  }

  .route-kpi-hero strong {
    font-size: 26px;
  }

  /* 产值三环：手机端横向并排可滑 */
  .trend-gauges {
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 8px;
  }

  .trend-ring {
    width: 104px;
    height: 104px;
  }

  .trend-chart-head strong {
    font-size: 22px;
  }

  /* 产值曲线图手机端压扁：桌面 230px 在窄屏会被拉成近正方形，显得"太长" */
  #trendChart {
    height: 170px;
  }

  /* 当日施工图片轮播：限定高度，避免占满整屏 */
  .daily-photo-carousel {
    padding: 12px;
  }

  .carousel-stage {
    max-height: 260px;
  }

  /* 人员态势板块：内部网格转单/双列 */
  .labor-kpi-grid,
  .site-metric-grid,
  .wechat-kpis,
  .worktext-summary,
  .claim-grid,
  .month-stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }

  .manager-split {
    grid-template-columns: 1fr 1fr !important;
  }

  /* 数据面板组（产值/进度/风险/工作）单列 */
  .source-data-board {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* 热力图：纵向排布，图在上、统计在下 */
  .heatmap-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 超窄屏（≤380px） */
@media (max-width: 380px) {
  .trend-gauges {
    grid-template-columns: 1fr 1fr;
  }

  .labor-kpi-grid,
  .site-metric-grid,
  .claim-grid,
  .month-stat-grid {
    grid-template-columns: 1fr !important;
  }

  .summary-strip article {
    width: 146px;
    min-width: 146px;
  }
}

/* ===================================================================
   一键演示导览 v2（Guided Demo Tour）
   =================================================================== */

/* 启动按钮 */
.tour-launch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #3b9bff, #0a66d8);
  box-shadow: 0 8px 20px rgba(10, 122, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.tour-launch:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(10, 122, 255, 0.44);
}

.tour-launch i,
.tour-launch i svg {
  width: 17px;
  height: 17px;
}

/* 演示进行时：其余区块弱化（仅 opacity，过渡平滑、无 filter 卡顿）
   animation:none 解除各区块 glassRise 的 both 填充对 opacity 的锁定 */
.workspace.tour-running section:not(.tour-active) {
  animation: none !important;
  opacity: 0.34;
  transition: opacity 0.5s ease;
}

/* 当前聚焦区块：静态辉光 + 轻抬升（GPU 友好，不用逐帧 box-shadow 动画） */
.tour-active {
  position: relative;
  z-index: 5;
  scroll-margin-top: 150px;
  scroll-margin-bottom: 104px;
  scroll-snap-align: none;
  border-radius: 16px;
  outline: 2px solid rgba(10, 122, 255, 0.55);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(10, 122, 255, 0.1), 0 24px 60px rgba(10, 122, 255, 0.24);
  transition: box-shadow 0.45s ease, outline-color 0.45s ease;
}

/* 呼吸光环：用 transform/opacity 的伪元素实现，避免 box-shadow 逐帧重绘 */
.tour-active::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(10, 122, 255, 0.45);
  opacity: 0;
  pointer-events: none;
  animation: tourRing 2.6s ease-out infinite;
}

@keyframes tourRing {
  0% { opacity: 0.55; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.018); }
  100% { opacity: 0; transform: scale(1.018); }
}

/* 区块解说卡：浮在区块顶部上方留白处，含综述 + 亮点解读 */
.tour-callout {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  z-index: 65;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  width: min(620px, calc(100% - 28px));
  padding: 14px 16px;
  border-radius: 16px;
  /* 演示解说窗：深蓝指挥色，在明亮看板上高对比、清晰可辨 */
  background: linear-gradient(135deg, rgba(12, 42, 84, 0.97), rgba(7, 26, 56, 0.97));
  border: 1px solid rgba(96, 172, 255, 0.55);
  box-shadow: 0 22px 54px rgba(6, 22, 52, 0.5), 0 0 0 4px rgba(40, 120, 230, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  transform-origin: top center;
  animation: tourCalloutIn 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes tourCalloutIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tour-callout-tag {
  display: inline-grid;
  place-items: center;
  align-self: start;
  padding: 5px 11px;
  border-radius: 999px;
  color: #06243f;
  background: linear-gradient(135deg, #6fd2ff, #29a0ff);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tour-callout-body {
  min-width: 0;
}

.tour-callout-body strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 3px;
}

.tour-callout-body p {
  margin: 0;
  color: #c2d6f2;
  font-size: 13px;
  line-height: 1.55;
}

/* 亮点解读：特别强调样式 */
.tour-callout-hl {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(96, 172, 255, 0.2), rgba(96, 172, 255, 0.08));
  border: 1px solid rgba(120, 190, 255, 0.34);
  color: #dbe9ff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.tour-callout-hl i {
  flex: 0 0 auto;
  margin-top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #4fa6ff, #0a66d8);
}

/* 解说卡底部朝下小尾巴，指向居中的区块 */
.tour-callout-tail {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: rgba(8, 28, 60, 0.97);
  border-right: 1px solid rgba(96, 172, 255, 0.55);
  border-bottom: 1px solid rgba(96, 172, 255, 0.55);
  transform: rotate(45deg);
}

/* —— 开场综述遮罩 —— */
.tour-intro {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(900px 600px at 50% 30%, rgba(20, 60, 140, 0.42), rgba(8, 22, 48, 0.62));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.tour-intro.show {
  opacity: 1;
}

.tour-intro-card {
  width: min(680px, 100%);
  padding: 34px 32px 30px;
  border-radius: 26px;
  text-align: center;
  color: #0e1b2c;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 40px 100px rgba(6, 20, 50, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.tour-intro.show .tour-intro-card {
  transform: translateY(0) scale(1);
}

.tour-intro-eyebrow {
  margin: 0 0 8px;
  color: #0a7aff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.tour-intro-card h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tour-intro-sub {
  margin: 0 0 22px;
  color: #41546e;
  font-size: 14px;
  font-weight: 600;
}

.tour-intro-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.tour-intro-kpi {
  padding: 14px 10px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(10, 122, 255, 0.12), rgba(10, 122, 255, 0.04));
  border: 1px solid rgba(10, 122, 255, 0.18);
  opacity: 0;
  transform: translateY(12px);
  animation: tourKpiIn 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  animation-delay: var(--d, 0.3s);
}

@keyframes tourKpiIn {
  to { opacity: 1; transform: translateY(0); }
}

.tour-intro-kpi strong {
  display: block;
  color: #0a66d8;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tour-intro-kpi span {
  display: block;
  margin-top: 6px;
  color: #5c6c80;
  font-size: 12px;
  font-weight: 600;
}

.tour-intro-hint {
  margin: 0;
  color: #8294a9;
  font-size: 12.5px;
  font-weight: 600;
}

/* —— 底部控制条 —— */
.tour-hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 14px max(env(safe-area-inset-bottom), 14px);
  pointer-events: none;
  transform: translateY(120%);
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.tour-hud.show {
  transform: translateY(0);
}

.tour-hud-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  width: min(960px, 100%);
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(12, 42, 84, 0.95), rgba(8, 28, 60, 0.93));
  border: 1px solid rgba(120, 170, 255, 0.32);
  box-shadow: 0 18px 50px rgba(6, 18, 44, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.tour-index {
  display: grid;
  place-items: center;
  min-width: 50px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3b9bff, #0a66d8);
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.tour-hud-text {
  min-width: 0;
}

.tour-hud-text strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.tour-hud-text p {
  margin: 2px 0 0;
  color: rgba(214, 230, 255, 0.92);
  font-size: 12.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-hud-hl {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #8fd6fb;
  font-size: 11.5px;
  font-weight: 700;
}
.tour-hud-hl[hidden] {
  display: none;
}

.tour-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-progress i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.tour-progress i.on {
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #54b0ff, #0a66d8);
}

.tour-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-controls button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(13, 60, 130, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: #0a66d8;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.tour-controls button:hover {
  background: #0a66d8;
  border-color: #0a66d8;
  color: #fff;
}

.tour-controls .tour-exit {
  width: auto;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
}

.tour-controls i {
  width: 17px;
  height: 17px;
}

@media (prefers-reduced-motion: reduce) {
  .tour-active::after,
  .tour-callout,
  .tour-intro-kpi { animation: none; }
  .tour-intro-kpi { opacity: 1; transform: none; }
}

/* —— 手机端 —— */
@media (max-width: 640px) {
  .tour-launch span { display: none; }
  .tour-launch { padding: 9px 11px; }

  .tour-callout {
    left: 10px;
    width: calc(100% - 20px);
    margin-bottom: 12px;
    padding: 12px 13px;
  }

  .tour-callout-body strong { font-size: 15px; }

  .tour-intro-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .tour-intro-card {
    padding: 26px 20px 22px;
  }

  /* 手机端 HUD 压扁：去掉圆点行与青色徽标，控制条一行铺满，避免占去近半屏 */
  .tour-hud { padding: 0 8px max(env(safe-area-inset-bottom), 8px); }
  .tour-hud-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "idx text"
      "ctrl ctrl";
    gap: 8px 11px;
    padding: 9px 11px;
    border-radius: 14px;
  }

  .tour-index { grid-area: idx; min-width: 44px; height: 30px; font-size: 13px; }
  .tour-hud-text { grid-area: text; }
  .tour-hud-text strong { font-size: 13.5px; }
  .tour-hud-text p {
    margin-top: 1px;
    font-size: 11.5px;
    line-height: 1.35;
    white-space: normal;
    -webkit-line-clamp: 2;
  }
  .tour-hud-hl { display: none; }
  .tour-progress { display: none; }
  .tour-controls { grid-area: ctrl; gap: 8px; }
  .tour-controls button { flex: 1 1 0; min-width: 0; height: 38px; }
  .tour-controls .tour-exit { flex: 1.5 1 0; }
}

/* ===================================================================
   演示效果深度优化 · 板块填空 + 去歧义（追加层，优先级最高）
   =================================================================== */

/* ---------- 进度排名：三态状态 + 风险竖条 ---------- */
.daily-progress-line {
  position: relative;
  gap: 6px;
  padding-left: 18px;
  font-weight: 700;
}

.daily-progress-line::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: currentColor;
}

.daily-progress-line.is-done {
  color: #0f7a3d;
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.28);
}

.daily-progress-line.is-holding {
  color: #b45309;
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.24);
}

.daily-progress-line.is-syncing {
  color: #5c6c80;
  background: rgba(13, 60, 130, 0.07);
  border-color: rgba(13, 60, 130, 0.12);
}

.progress-item {
  border-left: 3px solid transparent;
  transition: background 0.2s ease;
}

.progress-item.is-risk-high {
  border-left-color: #e1485f;
  background: rgba(225, 29, 72, 0.06);
}

.progress-item.is-risk-mid {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.07);
}

.progress-item.has-daily-progress {
  border-left-color: #16a34a;
}

.progress-item.is-complete {
  border-left-color: #0a7aff;
}

.progress-item.is-complete .progress-value {
  color: #0a66d8;
}

.progress-item.is-complete .progress-meta {
  color: #0f7a3d;
  font-weight: 700;
}

/* ---------- 产值"当日推进分项"：填空 + 诚实标注 ---------- */
.trend-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-content: initial;
}

.trend-sub-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.trend-item-row.is-filler span {
  color: var(--muted);
}

.trend-item-row.is-filler .trend-item-bar i {
  background: linear-gradient(90deg, rgba(84, 176, 255, 0.7), rgba(10, 122, 255, 0.55));
}

.trend-item-row.is-filler strong {
  color: var(--muted);
  font-weight: 700;
}

.trend-progress-card {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(244, 249, 255, 0.85);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.trend-progress-card b {
  color: var(--num);
  font-variant-numeric: tabular-nums;
}

.trend-progress-rate {
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.trend-progress-rate b {
  font-size: 14px;
}

/* ---------- 施工热力右侧：2×2 + 近14日迷你柱 ---------- */
.heatmap-wrap {
  grid-template-columns: auto minmax(0, 1fr) 232px;
  gap: 18px;
  align-items: stretch;
}

.heatmap-side {
  align-content: start;
  gap: 12px;
}

.heat-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.heat-kpi-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(244, 249, 255, 0.85);
  border: 1px solid var(--line);
}

.heat-kpi-grid strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--num);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.heat-kpi-grid span {
  font-size: 11px;
  color: var(--muted);
}

.heat-trend {
  display: grid;
  gap: 6px;
}

.heat-trend-head span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.heat-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 52px;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(244, 249, 255, 0.85);
  border: 1px solid var(--line);
}

.heat-trend-chart i {
  flex: 1;
  height: var(--h, 4%);
  min-height: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #54b0ff, #0a7aff);
}

/* ---------- 天气保障：今日建议横条 + 行动卡 ---------- */
.risk-advice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.risk-advice-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(10, 122, 255, 0.12);
}

.risk-advice[data-level="high"] {
  color: #0f7a3d;
  background: rgba(22, 163, 74, 0.12);
}

.risk-advice[data-level="mid"] {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
}

.risk-advice[data-level="low"] {
  color: #be123c;
  background: rgba(225, 29, 72, 0.1);
}

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

.risk-action-card {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.78);
}

.risk-action-card b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.risk-action-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.risk-action-card[data-kind="resource"] { border-top-color: #0a7aff; }
.risk-action-card[data-kind="rain"] { border-top-color: #38bdf8; }
.risk-action-card[data-kind="track"] { border-top-color: #16a34a; }

/* ===================================================================
   看板审查改进追加层（#1 人员口径 / #6 台账防御 / #11 产值Y轴 / #12 预期进度）
   =================================================================== */

/* #1 人员态势：今日实时在场条 + 5 月末口径标注 */
.labor-live-bar:empty { display: none; }
.labor-live-bar {
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 2px 0 14px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 145, 96, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(22, 163, 110, 0.12), rgba(16, 145, 96, 0.04));
}
.labor-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(16, 145, 96, 0.16);
  color: #0f7a52;
  font-size: 12px;
  font-weight: 900;
}
.labor-live-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a36e;
  box-shadow: 0 0 0 3px rgba(22, 163, 110, 0.22);
}
.labor-live-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  color: var(--steel);
  font-size: 13px;
}
.labor-live-metrics b {
  margin-right: 3px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}
.labor-section-label {
  grid-column: 1 / -1;
  margin: 4px 0 10px;
  padding: 7px 12px;
  border-left: 3px solid rgba(176, 137, 44, 0.55);
  border-radius: 0 8px 8px 0;
  background: rgba(176, 137, 44, 0.09);
  color: #8a6d1f;
  font-size: 12px;
  font-weight: 700;
}

/* #6 线路台账数据不完整提示 */
.route-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--steel);
  font-size: 14px;
}

/* #11 产值趋势 Y 轴金额刻度（HTML 叠加，对齐拉伸的 SVG） */
.trend-plot {
  position: relative;
}
.trend-yaxis {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.trend-yaxis span {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--steel);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

/* #12 分项排名：预期进度参考线 + 领先/落后着色 */
.progress-trackline {
  position: relative;
}
.progress-pace {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: var(--exp, 0%);
  width: 0;
  border-left: 2px dashed rgba(13, 60, 130, 0.55);
  transform: translateX(-1px);
}
.progress-item.is-behind .progress-pace {
  border-left-color: rgba(199, 81, 70, 0.78);
}
.progress-item.is-behind .progress-value {
  color: #c75146;
}
.progress-item.is-ahead .progress-value {
  color: #1f9d57;
}

/* ===== 当日施工照片：缩略图墙 + 灯箱 ===== */
.photo-main {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(15, 23, 42, 0.45);
}
.photo-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.photo-main-img.is-active {
  opacity: 1;
  animation: photoKenburns 14s ease-out both;
}
@keyframes photoKenburns {
  from { transform: scale(1.002); }
  to { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-main-img {
    transition: none;
  }
  .photo-main-img.is-active {
    animation: none;
  }
}
.photo-main-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}
.photo-main .carousel-loading {
  margin: auto;
  /* photo-main 是深底，空状态文字需用浅色，否则 var(--muted) 深灰在深底上看不清 */
  color: rgba(255, 255, 255, 0.82);
}
.photo-rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 440px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.rail-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rail-thumb:hover {
  opacity: 0.85;
}
.rail-thumb.is-active {
  opacity: 1;
  border-color: #38bdf8;
}

/* ============ 项目影像展示（视频）模块 ============ */
.video-showcase {
  position: relative;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}
.video-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 14px;
}
.video-main {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  height: 440px;
  border: 1px solid rgba(13, 60, 130, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-main-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.video-rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 440px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.video-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0.78;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb:hover { opacity: 0.9; }
.video-thumb.is-active { opacity: 1; border-color: #38bdf8; }
.video-thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  pointer-events: none;
}
.video-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
@media (max-width: 760px) {
  .video-showcase { padding: 12px; }
  .video-stage {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .video-main { height: 210px; }
  .video-rail {
    flex-direction: row;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }
  .video-thumb { width: 150px; }
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 24, 0.92);
  backdrop-filter: blur(4px);
}
.photo-lightbox[hidden] {
  display: none;
}
.photo-lightbox img {
  max-width: 86vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lb-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lb-close {
  top: 24px;
  right: 28px;
  font-size: 20px;
}
.lb-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-caption {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
}
@media (max-width: 640px) {
  .daily-photo-carousel {
    grid-template-columns: 1fr;
  }
  .labor-kpi-grid {
    grid-template-columns: 1fr !important;
  }
  .photo-main {
    height: 200px;
  }
  .photo-rail {
    flex-direction: row;
    height: 60px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .rail-thumb {
    width: auto;
    height: 100%;
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---------- 手机端补充 ---------- */
@media (max-width: 640px) {
  .heatmap-wrap {
    grid-template-columns: 1fr;
  }

  .risk-action-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 演示导览：子板块聚焦 + 进入动效 ---------- */
.workspace.tour-running section.tour-host {
  opacity: 1 !important;
}

.tour-host > article.tour-sub-dim {
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.tour-animating {
  animation: tourFocusIn 0.5s ease both;
}

@keyframes tourFocusIn {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* 切到板块时的一道高光，配合板块内数字滚动，让画面"动起来" */
.tour-emphasize {
  animation: tourEmphasize 1s ease;
}
@keyframes tourEmphasize {
  0% { box-shadow: 0 0 0 0 rgba(10, 122, 255, 0); }
  28% { box-shadow: 0 0 0 4px rgba(10, 122, 255, 0.28), 0 18px 44px rgba(10, 122, 255, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(10, 122, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tour-animating { animation: none; }
  .tour-emphasize { animation: none; }
}

/* ===================================================================
   核心资料卡重排：动作按钮从右上角浮动 → 卡片底部正常流
   内容统一左对齐，去掉 padding-right:88px 的硬挤空间，消除标题与按钮碰撞("歪")
   =================================================================== */
.summary-strip article.openable-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  min-height: 124px;
}

.summary-strip article.openable-card > p {
  margin-bottom: 4px;
}

.summary-strip .file-updated {
  margin-top: 8px;
}

/* 动作按钮：回到正常流、贴卡片底部、左对齐 */
.summary-strip .openable-card em {
  position: static;
  align-self: flex-start;
  margin: 12px 0 0;
  margin-top: auto;
  top: auto;
  right: auto;
  padding: 6px 12px;
}

@media (max-width: 560px) {
  .summary-strip article.openable-card {
    min-height: 0;
  }
  .summary-strip .openable-card em {
    margin-top: 12px;
  }
}

/* ===================================================================
   核心资料卡整合进左侧竖栏（sidebar）：桌面竖向单列；移动端顶部横滑
   =================================================================== */
.side-resources {
  display: flex !important;
  flex-direction: column;
  gap: 8px !important;
  grid-template-columns: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

.side-resource-head {
  margin-bottom: 2px;
}

.side-resource-head .eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
}

.side-resource-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

/* 侧栏内卡片：紧凑单列 */
.side-resources article.openable-card {
  min-height: 0 !important;
  padding: 11px 12px !important;
  border-radius: 12px;
  gap: 1px;
}

.side-resources .openable-card > p {
  margin-bottom: 2px;
  font-size: 11px;
}

.side-resources .openable-card strong {
  margin-bottom: 1px;
  font-size: 15px;
}

.side-resources .openable-card span {
  font-size: 10px;
}

.side-resources .file-updated {
  margin-top: 5px;
  font-size: 10px;
}

.side-resources .openable-card em {
  margin-top: 9px !important;
  padding: 5px 11px !important;
  font-size: 10px;
}

.side-resources .openable-card em svg {
  width: 12px;
  height: 12px;
}

/* ---------- 移动端：sidebar 只保留资料卡，做成顶部横滑条 ---------- */
@media (max-width: 640px) {
  .app-shell {
    min-width: 0;
  }

  .app-shell .sidebar {
    display: flex !important;
    position: static !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 12px 12px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .sidebar > .brand-block,
  .sidebar > .sidebar-flow,
  .sidebar > .compact-panel {
    display: none !important;
  }

  .side-resource-head {
    display: none;
  }

  .side-resources {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
  }

  .side-resources article.openable-card {
    flex: 0 0 158px !important;
    width: 158px;
    scroll-snap-align: start;
  }
}

/* ===================================================================
   修正：热力图右侧 KPI/迷你柱图被旧规则 .heatmap-side>div{display:flex} 压垮
   提高选择器优先级，恢复 2×2 网格 + 标题在上/柱图在下
   =================================================================== */
.heatmap-side > .heat-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.heatmap-side > .heat-trend {
  display: grid;
  gap: 6px;
}

.heatmap-side .heat-kpi-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
}

.heatmap-side .heat-kpi-grid strong {
  font-size: 19px;
}

.heatmap-side .heat-kpi-grid span {
  font-size: 10px;
  line-height: 1.25;
}

.heat-trend-chart {
  width: 100%;
}

.heat-trend-chart i {
  background-image: linear-gradient(180deg, #54b0ff, #0a7aff);
  background-color: transparent;
}

/* ===================================================================
   修正：板块垂直间距统一 + 左侧竖栏随页面整体滚动（去掉内部独立滚动）
   =================================================================== */
.app-shell > .workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-shell > .workspace > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 侧栏：自然高度、随页面滚动，不再固定高度+内部滚动条 */
.app-shell > .sidebar {
  position: relative;
  align-self: start;
  max-height: none;
  min-height: 0;
  overflow: visible;
}

/* ===================================================================
   施工活动热力 · 中部「资料库累计增长曲线」（填补中间留白）
   =================================================================== */
.heatmap-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  background: rgba(244, 249, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.heat-center-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.heat-center-head span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.heat-center-head b {
  font-size: 13px;
  color: var(--num);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.heat-curve-svg {
  display: block;
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 174px;
}

.heat-area {
  opacity: 0;
  animation: heatFade 0.6s ease 0.4s forwards;
}

.heat-line {
  fill: none;
  stroke: #0a7aff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: heatDraw 1.3s ease 0.1s forwards;
}

.heat-mbar {
  fill: rgba(10, 122, 255, 0.1);
}

.heat-mlabel {
  fill: var(--muted);
  font-size: 9px;
  text-anchor: middle;
}

.heat-dot {
  fill: #0a7aff;
  stroke: #fff;
  stroke-width: 1.5;
}

.heat-dot-label {
  fill: var(--num);
  font-size: 10px;
  font-weight: 700;
}

.heat-center-empty {
  margin: auto;
  color: var(--muted);
  font-size: 12px;
}

@keyframes heatDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes heatFade {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .heat-line { stroke-dashoffset: 0; animation: none; }
  .heat-area { opacity: 1; animation: none; }
}

@media (max-width: 1100px) {
  .heatmap-center { min-height: 180px; }
  .heat-curve-svg { min-height: 160px; }
}

@media (max-width: 640px) {
  .heat-curve-svg { min-height: 150px; }
  .heat-dot-label { font-size: 9px; }
  .heat-mlabel { font-size: 8px; }
}

/* ===================================================================
   线路工点进度 · 近三周施工作业趋势（数据：每日工作情况快照 work-trend.json）
   =================================================================== */
.route-trend {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.wt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.wt-head span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.wt-head b {
  font-size: 12px;
  color: var(--num);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.wt-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.wt-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.wt-val {
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 700;
  color: var(--num);
  font-variant-numeric: tabular-nums;
}

.wt-bar {
  width: 100%;
  max-width: 24px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #54b0ff, #0a7aff);
  transition: filter 0.15s ease;
}

.wt-col:hover .wt-bar {
  filter: brightness(1.08);
}

.wt-bar.is-today {
  background: linear-gradient(180deg, #ffce4d, #f59e0b);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.wt-col em {
  margin-top: 4px;
  font-size: 9px;
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
}

.wt-hide {
  visibility: hidden;
}

@media (max-width: 640px) {
  .wt-head { flex-direction: column; gap: 2px; }
  .wt-head span { font-size: 11px; }
  /* 手机端：柱子自适应铺满整屏宽，一屏看全近三周趋势，不横滚不拥挤 */
  .wt-chart {
    gap: 2px;
  }
  .wt-col { flex: 1 1 0; min-width: 0; }
  .wt-bar { max-width: 12px; border-radius: 3px 3px 0 0; }
  .wt-val { display: none; }
  .wt-col em { font-size: 7px; }
  /* 隐藏的日期标签必须保留占位（visibility 而非 display:none）：
     否则带标签的列更高，flex-end 下其柱子被抬高，造成柱子基线锯齿状错位 */
  .wt-hide { visibility: hidden; }
}

/* ===================================================================
   Toast 轻提示（资料卡点击/失败/保密的可见反馈，替代隐藏日志）
   =================================================================== */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  max-width: min(440px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 32, 60, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(10, 30, 70, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-open { background: linear-gradient(120deg, #0a66d8, #0a7aff); }
.toast-error { background: linear-gradient(120deg, #be123c, #e1485f); }
.toast-lock { background: rgba(60, 72, 92, 0.95); }

@media (max-width: 640px) {
  .toast-stack { bottom: 76px; }
}

/* 人员板块"数据截止"高亮标签 + 天气来源标识 */
.project-tags .tag-date {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.3) !important;
  font-weight: 700;
}

.risk-source {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}

.risk-source.is-live {
  color: #0f7a3d;
  background: rgba(22, 163, 74, 0.12);
}

.risk-source.is-est {
  color: #8a6d3b;
  background: rgba(217, 119, 6, 0.14);
}

/* 全局键盘焦点可见（无障碍 WCAG 2.4.7） */
:focus-visible {
  outline: 2px solid var(--accent, #0a7aff);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.openable-card:focus-visible,
.view-tab:focus-visible,
.language-button:focus-visible {
  outline: 2px solid var(--accent, #0a7aff);
  outline-offset: 2px;
}

/* ===================================================================
   修复：嵌入主站 iframe 后按内容自适应高度时，body/app-shell 的 min-height:100vh
   会与父页自适应形成循环（100vh=内容高），把 iframe 撑出大片空白。改为 0。
   =================================================================== */
body,
.app-shell {
  min-height: 0 !important;
}

/* ============================================================
   演示打磨层 / Demo polish layer  (appended to END of dashboard/styles.css)
   作者: Claude  日期: 2026-06-17
   说明: 只追加、作用域明确，覆盖在现有多层主题之上稳定生效；
         不动 markup/JS，纯装饰，可整段删除回退。
   ============================================================ */

/* —— 线路工点进度 KPI 卡：玻璃分层 + 按状态着色顶条 —— */
.route-kpis{ gap:12px; }
.route-kpi{
  position:relative; padding:15px 14px 13px; border-radius:16px;
  border:1px solid rgba(148,178,226,0.45);
  background:linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,251,255,0.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 26px -14px rgba(23,58,128,0.34), 0 2px 6px rgba(23,58,128,0.06);
  overflow:hidden; transition:transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s;
}
.route-kpi::before{ content:""; position:absolute; left:0; right:0; top:0; height:3px;
  background:linear-gradient(90deg,#54b0ff,#0a7aff); opacity:.92; }
.route-kpi.is-mid::before{ background:linear-gradient(90deg,#fbbf24,#f59e0b); }
.route-kpi.is-low::before{ background:linear-gradient(90deg,#fb9a8f,#e1485f); }
.route-kpi:hover{ transform:translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 20px 38px -16px rgba(23,58,128,0.46), 0 3px 8px rgba(23,58,128,0.08); }
.route-kpi-hero{
  background:
    radial-gradient(120% 150% at 86% -24%, rgba(10,122,255,0.24), transparent 60%),
    linear-gradient(155deg, rgba(10,122,255,0.17), rgba(10,122,255,0.04));
  border-color:rgba(10,122,255,0.36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 18px 36px -16px rgba(10,122,255,0.52), 0 2px 8px rgba(10,122,255,0.10);
}
.route-kpi-hero::before{ height:4px; opacity:1; }
.route-kpi strong{ font-size:23px; letter-spacing:-0.3px; }
.route-kpi-hero strong{ font-size:34px; letter-spacing:-0.6px; }
.route-kpi-bar{ height:7px; background:rgba(13,60,130,0.10); box-shadow:inset 0 1px 2px rgba(13,60,130,0.12); }
.route-kpi-bar i{ box-shadow:0 0 9px rgba(10,122,255,0.50); }
.route-kpi.is-mid .route-kpi-bar i{ box-shadow:0 0 9px rgba(245,158,11,0.48); }
.route-kpi.is-low .route-kpi-bar i{ box-shadow:0 0 9px rgba(225,72,95,0.42); }

/* —— 各大板块标题左侧品牌竖向强调条（仅 .section-heading，不影响侧栏/轮播）—— */
.section-heading{ position:relative; padding-left:15px; }
.section-heading::before{ content:""; position:absolute; left:0; top:3px; bottom:3px; width:4px;
  border-radius:999px; background:linear-gradient(180deg,#54b0ff,#0a7aff);
  box-shadow:0 2px 8px rgba(10,122,255,0.30); }

/* ============================================================
   极光流动色罩 / Aurora flowing veil  (append after polish layer)
   作者: Claude  日期: 2026-06-18
   说明: 满铺面板布局下背景层会被面板遮住几乎不可见，故用「前置色罩」浮在数据之上、
         pointer-events:none 不挡任何操作。v4 修正：① 去掉 rotate（消除放大旋转时的硬边/接缝）；
         ② 放大层 inset:-15% 不露边；③ 颜色推到四角柔和起色 + 中央径向遮罩降到 ~30% 让出数据区；
         ④ 整体调淡保读数。GPU transform 驱动、无 blur、在玻璃层之前所以不触发 backdrop-filter 重算。
         5 色冷调（蓝/青/靛/紫）。纯装饰，可整段删除回退。
   ============================================================ */
body::after{
  content:""; position:fixed; inset:-15%; z-index:45; pointer-events:none; background-repeat:no-repeat;
  background-image:
    radial-gradient(58% 54% at 50% 50%, rgba(37,99,235,0.26), transparent 72%),
    radial-gradient(54% 50% at 50% 50%, rgba(34,211,238,0.23), transparent 72%),
    radial-gradient(56% 52% at 50% 50%, rgba(99,102,241,0.23), transparent 72%),
    radial-gradient(52% 48% at 50% 50%, rgba(168,85,247,0.20), transparent 74%);
  background-size:60% 56%,54% 50%,56% 52%,50% 46%;
  background-position:2% 10%,96% 14%,10% 96%,98% 92%;
  -webkit-mask:radial-gradient(118% 102% at 50% 46%, rgba(0,0,0,0.30) 22%, #000 78%);
  mask:radial-gradient(118% 102% at 50% 46%, rgba(0,0,0,0.30) 22%, #000 78%);
  animation:auroraDrift 22s ease-in-out infinite alternate; will-change:transform;
}
@keyframes auroraDrift{
  0%{transform:translate3d(-3%,-2%,0) scale(1.02);}
  100%{transform:translate3d(3%,2%,0) scale(1.07);}
}
@media (prefers-reduced-motion: reduce){ body::after{ animation:none; } }
