:root {
  --ink: #17211d;
  --muted: #6d7771;
  --line: #d9e0da;
  --paper: #f4f7f3;
  --panel: #ffffff;
  --green: #245c46;
  --green-soft: #e4f0e8;
  --amber: #ad6b20;
  --amber-soft: #fff1dc;
  --red: #a6473f;
  --red-soft: #fae8e5;
  --blue: #446e9b;
  --blue-soft: #e7eef7;
  --max: 1480px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; line-height: 1.55; letter-spacing: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: flex; }
.sidebar { width: 244px; flex: 0 0 244px; padding: 28px 18px 20px; background: #172b23; color: #eff6f0; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 40px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #172b23; background: #d7e6d8; font-weight: 900; border-radius: 8px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: #a9beb0; font-size: 11px; }
.nav { display: grid; gap: 5px; }
.nav-item { border: 0; border-radius: 7px; padding: 12px 13px; color: #b9c9bd; background: transparent; text-align: left; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.nav-item:hover, .nav-item.is-active { color: #fff; background: #2b4a3b; }
.nav-icon { width: 18px; color: #a7c9ad; font-size: 16px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.13); color: #a9beb0; font-size: 12px; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d79d38; display: inline-block; }
.status-dot.is-ok { background: #76c88c; }
.icon-button { margin-left: auto; border: 0; color: #d7e6d8; background: transparent; font-size: 20px; line-height: 1; }
.main { min-width: 0; flex: 1; max-width: var(--max); margin: 0 auto; padding: 0 48px 64px; }
.topbar { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: 1.6px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 25px; line-height: 1.1; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.last-sync { color: var(--muted); font-size: 12px; }
.button { min-height: 38px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 6px; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 7px; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: var(--green); }
.view { display: none; padding-top: 36px; }
.view.is-visible { display: block; }
.hero-row { padding: 12px 0 38px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.hero-row h2 { max-width: 650px; margin-bottom: 10px; font-size: clamp(28px, 3.5vw, 47px); line-height: 1.14; }
.hero-row p, .section-head p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.flow-line { min-width: 390px; padding-bottom: 10px; color: var(--green); font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.flow-line i { height: 1px; min-width: 18px; flex: 1; background: #9bb8a2; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat { min-height: 115px; padding: 17px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.stat-value { display: block; font-size: 31px; font-weight: 900; line-height: 1; }
.stat-label { display: block; margin-top: 20px; color: var(--muted); font-size: 12px; }
.dashboard-grid { margin-top: 24px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.panel-head h3 { margin-bottom: 0; font-size: 18px; }
.text-button { border: 0; padding: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 800; }
.priority-list, .pipeline-list { display: grid; }
.priority-item { padding: 15px 0; border-bottom: 1px solid #edf1ed; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.priority-item:last-child { border-bottom: 0; }
.priority-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 800; }
.priority-meta { margin-top: 4px; color: var(--muted); font-size: 11px; }
.priority-action { align-self: center; }
.pipeline-row { padding: 13px 0; border-bottom: 1px solid #edf1ed; display: flex; justify-content: space-between; gap: 15px; font-size: 13px; }
.pipeline-row:last-child { border-bottom: 0; }
.pipeline-row strong { font-size: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-head h2 { margin-bottom: 8px; font-size: 32px; line-height: 1.1; }
.toolbar { margin: 30px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #e9efea; }
.segmented button { border: 0; border-radius: 5px; padding: 7px 12px; color: var(--muted); background: transparent; font-size: 12px; }
.segmented button.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(23,33,29,.12); font-weight: 800; }
.search { width: min(320px, 42%); height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.record-list, .task-list { display: grid; gap: 9px; }
.record { padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.record:hover { border-color: #9eb7a4; }
.record-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 900; }
.record-sub { margin-top: 6px; color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.record-actions { display: flex; align-items: center; gap: 7px; }
.mini-button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--green); background: #fff; font-size: 11px; font-weight: 800; }
.mini-button:hover { border-color: var(--green); background: var(--green-soft); }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 4px; background: #edf2ee; color: var(--green); font-size: 11px; font-weight: 800; }
.tag.amber { color: var(--amber); background: var(--amber-soft); }.tag.red { color: var(--red); background: var(--red-soft); }.tag.blue { color: var(--blue); background: var(--blue-soft); }
.task { padding: 15px 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; }
.task-name { font-size: 13px; font-weight: 900; }.task-meta { margin-top: 4px; color: var(--muted); font-size: 11px; }.task-error { max-width: 420px; color: var(--red); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }.asset-card { min-height: 200px; padding: 22px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.asset-number { color: var(--green); font-size: 12px; font-weight: 900; }.asset-card h3 { margin: 38px 0 9px; font-size: 19px; }.asset-card p { color: var(--muted); font-size: 13px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; padding: 30px; background: rgba(13,24,19,.48); display: grid; place-items: center; }.modal { position: relative; width: min(760px, 100%); max-height: min(820px, 92vh); overflow: auto; padding: 28px; border-radius: 8px; background: #fff; box-shadow: 0 20px 70px rgba(13,24,19,.25); }.modal-close { position: absolute; right: 18px; top: 15px; border: 0; color: var(--muted); background: transparent; font-size: 25px; }.modal h2 { margin: 0 35px 10px 0; font-size: 25px; }.modal p { color: var(--muted); font-size: 13px; }.detail-grid { margin-top: 22px; display: grid; grid-template-columns: 130px 1fr; gap: 11px 18px; font-size: 13px; }.detail-grid dt { color: var(--muted); }.detail-grid dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }.command-row { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }.command-row .mini-button { background: var(--green-soft); }
.empty { padding: 48px 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; font-size: 13px; }.loading { padding: 48px; color: var(--muted); text-align: center; }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 12px 15px; color: #fff; border-radius: 6px; background: var(--ink); box-shadow: 0 8px 30px rgba(23,33,29,.2); font-size: 13px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 180ms ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1050px) { .sidebar { width: 210px; flex-basis: 210px; }.main { padding: 0 28px 50px; }.stat-grid { grid-template-columns: repeat(3, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.hero-row { display: block; }.flow-line { margin-top: 25px; } }
@media (max-width: 680px) { .shell { display: block; }.sidebar { width: auto; padding: 15px 14px 10px; }.brand { padding: 0 6px 14px; }.nav { display: flex; overflow-x: auto; gap: 4px; }.nav-item { flex: 0 0 auto; padding: 9px 10px; }.nav-icon { display: none; }.sidebar-foot { display: none; }.main { padding: 0 14px 40px; }.topbar { min-height: 88px; align-items: end; padding: 20px 0 14px; }.top-actions { gap: 8px; }.last-sync { display: none; }.button { min-height: 34px; padding: 0 10px; font-size: 12px; }.section-head, .toolbar { display: block; }.section-head .button { margin-top: 18px; }.segmented { max-width: 100%; overflow-x: auto; }.segmented button { white-space: nowrap; }.search { width: 100%; margin-top: 12px; }.stat-grid { grid-template-columns: repeat(2, 1fr); }.stat { min-height: 95px; padding: 13px; }.stat-value { font-size: 25px; }.stat-label { margin-top: 12px; }.record, .task { grid-template-columns: 1fr; gap: 12px; }.record-title { white-space: normal; }.record-actions { flex-wrap: wrap; }.task-error { max-width: none; white-space: normal; }.asset-grid { grid-template-columns: 1fr; }.detail-grid { grid-template-columns: 1fr; gap: 4px; }.detail-grid dd { margin-bottom: 10px; }.modal-backdrop { padding: 12px; }.modal { padding: 22px 17px; } }
