:root {
  color-scheme: light;
  --ink: #172f2c;
  --muted: #526860;
  --line: #d7e0d9;
  --pine: #183b36;
  --paper: #f4f6f1;
  --white: #fff;
  --warm: #ffbd79;
  --red: #964b2f;
  --green: #245a47;
  --dark: #102c29;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial,
    sans-serif;
  font-weight: 430;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #df843c;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.045em;
}
h1 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 690;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 660;
}
h3 {
  font-size: 16px;
}
input,
select,
textarea {
  min-width: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b7c7be;
  border-radius: 6px;
  padding: 10px 12px;
}
textarea {
  resize: vertical;
  min-height: 84px;
}
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 6px;
  border: 1px solid #b6c6bb;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.button:hover {
  background: #edf3ec;
}
.button.primary {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
}
.button.primary:hover {
  background: #295347;
}
.button.amber {
  background: var(--warm);
  color: #293329;
  border-color: transparent;
}
.button.plain {
  border-color: transparent;
  background: transparent;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
  transform: rotate(-4deg);
}
.mark i {
  background: #ffbb76;
  border-radius: 1px;
}
.mark i:nth-child(2) {
  opacity: 0.48;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  letter-spacing: 0.04em;
  font-weight: 760;
}
.brand-logo small {
  font-size: 11px;
  letter-spacing: 0.09em;
  color: #b0c4b6;
  font-weight: 650;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.7;
}
.loading,
.fatal {
  padding: 32px;
  max-width: 620px;
  margin: 0 auto;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(390px, 1fr);
}
.login-brand {
  background: var(--pine);
  color: #f1f6ee;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vw, 84px);
  position: relative;
  overflow: hidden;
}
.login-brand .brand-logo {
  margin-bottom: clamp(60px, 10vh, 120px);
}
.login-brand h1 {
  font-size: clamp(38px, 4.2vw, 67px);
  letter-spacing: -0.06em;
  line-height: 1.17;
}
.login-brand p {
  font-size: 16px;
  line-height: 1.85;
  color: #c6d7ca;
  max-width: 29em;
  margin-top: 20px;
}
.login-path {
  margin-top: 42px;
  display: grid;
  border-top: 1px solid #78938670;
}
.login-path span {
  padding: 14px 0;
  border-bottom: 1px solid #78938670;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
  color: #eaf1e7;
}
.login-path b {
  color: var(--warm);
  font-weight: 520;
}
.login-brand footer {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  color: #b3c8ba;
}
.login-area {
  padding: 32px clamp(20px, 5vw, 86px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  width: 100%;
  max-width: 430px;
}
.login-box header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.login-box p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.login-box .demo-label {
  margin: 16px 0 8px;
  color: var(--ink);
  font-weight: 600;
}
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.roles button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 5px;
  font-size: 14px;
  font-weight: 600;
  min-height: 42px;
}
.roles button.sel {
  background: #e4ede3;
  border-color: #628979;
}
.login-form {
  margin: 18px 0 12px;
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.login-form .button {
  height: 46px;
}
.login-box .access {
  padding: 10px 12px;
  background: #e9eee7;
  color: #465c50;
  border-radius: 5px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.back {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-error {
  color: #973c26;
  font-size: 13px;
  line-height: 1.5;
  min-height: 1em;
  overflow-wrap: anywhere;
}
.shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #e5eee7;
  min-width: 0;
  padding: 25px 14px 17px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.rail .brand-logo {
  padding: 0 9px;
  margin-bottom: 42px;
}
.rail nav {
  display: grid;
  gap: 5px;
}
.rail nav button {
  border-radius: 5px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: #cbdbd1;
  text-align: left;
  font-size: 14px;
  font-weight: 530;
  min-height: 42px;
}
.rail nav button:hover {
  background: #23453e;
}
.rail nav button.active {
  background: #325c4e;
  color: #fff;
  box-shadow: inset 3px 0 #f6b570;
}
.rail-foot {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding: 16px 8px 0;
  border-top: 1px solid #426053;
}
.rail-foot a {
  color: #bfcec3;
  font-size: 13px;
}
.rail-foot p {
  font-size: 12px;
  color: #adbeb4;
}
.stage {
  min-width: 0;
}
.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 clamp(18px, 2.8vw, 43px);
  font-size: 13px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e5ede1;
  color: #315345;
  font-weight: 700;
}
.switcher {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 38px;
}
.body-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px clamp(16px, 2.8vw, 43px) 36px;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}
.pagehead p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.65;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 19px;
}
.metric {
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-width: 0;
}
.metric.main {
  background: var(--pine);
  color: #fff;
  border-color: transparent;
}
.metric strong {
  font-size: clamp(24px, 2.5vw, 39px);
  line-height: 1.1;
  letter-spacing: -0.06em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.metric .caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.45;
}
.main .caption {
  color: #d0dfcc;
}
.metric .mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 590;
  font-size: 13px;
}
.metric .mhead .icon {
  width: 15px;
  height: 15px;
  opacity: 0.65;
}
.panel,
.detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}
.panelhead,
.detailhead {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panelhead small {
  font-size: 12px;
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(249px, 0.8fr);
  gap: 15px;
  align-items: start;
}
.tools {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 16px 13px;
}
.tools input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.tools select {
  width: 96px;
  flex: 0 0 96px;
  font-size: 13px;
}
.tabs {
  padding: 0 15px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  font-size: 12px;
  color: var(--muted);
  min-height: 38px;
  padding: 6px 7px;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: #1d4a3a;
  border-color: #386b50;
  font-weight: 650;
}
.rows {
  display: grid;
}
.workrow {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 75px 55px;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid #e5eae3;
  min-height: 66px;
}
.workrow:last-child {
  border: 0;
}
.workrow.active {
  background: #edf3eb;
  box-shadow: inset 3px 0 #5e8569;
}
.workrow:hover,
.reference:hover {
  background: #eff4ed;
}
.workrow .subject {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.workrow .meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  justify-self: start;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 4px;
  color: #41574b;
  background: #eaf0e8;
}
.b0 {
  background: #fff0d9;
  color: #75471a;
}
.b1 {
  background: #e6edf8;
  color: #335171;
}
.b2 {
  background: #dfeeea;
  color: #285646;
}
.b3 {
  background: #eee8f1;
  color: #634875;
}
.b4 {
  background: #eaeee9;
  color: #50624f;
}
.urgent {
  font-size: 12px;
  color: #a24827;
  font-weight: 600;
}
.ordinary {
  font-size: 12px;
  color: var(--muted);
}
.detail {
  position: relative;
}
.detailhead {
  padding-bottom: 9px;
}
.detailbody {
  padding: 4px 17px 17px;
}
.detailbody h3 {
  margin: 3px 0 7px;
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.detailbody .desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.spec {
  margin: 13px 0;
  display: grid;
  gap: 8px;
}
.spec > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.spec dt,
.spec dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}
.spec dt {
  color: var(--muted);
}
.spec dd {
  overflow-wrap: anywhere;
}
.textlink {
  color: #26644d;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  padding: 0;
  text-align: left;
}
.detailbody .button {
  width: 100%;
}
.hint {
  font-size: 12px;
  background: #f0f3ed;
  color: #546858;
  border-radius: 5px;
  padding: 9px 10px;
  line-height: 1.65;
}
.subhead {
  font-size: 13px;
  font-weight: 650;
  margin: 17px 0 9px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.timeline li {
  border-left: 2px solid #bfcebd;
  padding-left: 10px;
}
.timeline .when {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}
.timeline li p {
  font-size: 12px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.section-body {
  padding: 0 16px 16px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: #f0f3ed;
  color: #5a6c5e;
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  padding: 9px 10px;
}
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e2e9df;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.data-table .textlink {
  font-weight: 630;
}
.detail-card {
  padding: 15px 17px;
  border-top: 1px solid var(--line);
}
.detail-card p {
  line-height: 1.7;
  font-size: 13px;
}
.detail-card h3 {
  margin-bottom: 8px;
}
.empty {
  padding: 25px 16px;
  color: var(--muted);
  font-size: 14px;
}
.low {
  background: #faeedb;
  color: #744b22;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
}
.chart {
  display: grid;
  gap: 14px;
  padding: 8px 18px 20px;
}
.chartrow {
  display: grid;
  grid-template-columns: 66px 1fr 34px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.track {
  height: 9px;
  border-radius: 3px;
  background: #e8eee7;
  overflow: hidden;
}
.track span {
  display: block;
  height: 100%;
  background: #517b65;
}
.chartrow:last-child .track span {
  background: #b78054;
}
.mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.footnote {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
}
.detail select {
  width: 100%;
}
dialog {
  border: 1px solid #c2cec4;
  border-radius: 10px;
  box-shadow: 0 14px 65px #132d2936;
  padding: 0;
  color: var(--ink);
  max-width: min(520px, calc(100vw - 24px));
  width: 100%;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #1229256b;
}
.dlg-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.dlg-h button {
  font-size: 21px;
  min-width: 38px;
  min-height: 38px;
}
.dlg-b {
  padding: 16px 20px;
  display: grid;
  gap: 14px;
}
.dlg-b .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dlg-b .buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.dlg-b .small {
  overflow-wrap: anywhere;
}
#toast:not(:empty) {
  position: fixed;
  z-index: 5;
  background: #15382e;
  color: #fff;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  max-width: calc(100% - 24px);
}
.role-options {
  display: grid;
  gap: 8px;
}
.role-options button {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.role-options button:hover {
  background: #f0f5ed;
}
.role-options b {
  margin-right: 8px;
}
.role-options .small {
  display: block;
  margin-top: 3px;
}
@media (min-width: 1550px) {
  .body-wrap {
    padding-top: 40px;
  }
  .panelhead,
  .detailhead {
    padding-top: 20px;
  }
  .workrow {
    padding-block: 18px;
  }
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 158px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 10px;
  }
  .brand-logo small {
    display: none;
  }
  .columns {
    grid-template-columns: minmax(0, 1.55fr) minmax(225px, 0.85fr);
  }
  .workrow {
    grid-template-columns: minmax(0, 1fr) 57px;
  }
  .workrow .urgency {
    display: none;
  }
  .rail nav button {
    gap: 8px;
  }
  .body-wrap {
    padding-inline: 18px;
  }
}
@media (max-width: 900px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail {
    scroll-margin: 15px;
  }
  .mini {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 0.88fr 1fr;
  }
  .login-area {
    padding: 25px;
  }
  .kpis {
    gap: 7px;
  }
  .metric {
    padding: 10px;
  }
  .topbar {
    padding-inline: 18px;
  }
}
@media (max-width: 730px) {
  .shell {
    display: block;
  }
  .rail {
    position: static;
    height: auto;
    padding: 10px 12px 0;
  }
  .rail .brand-logo {
    margin: 0;
    font-size: 18px;
    padding: 3px 4px 10px;
  }
  .rail .brand-logo small {
    display: inline;
    font-size: 10px;
  }
  .rail nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }
  .rail nav button {
    font-size: 12px;
    padding: 8px 1px;
    min-height: 43px;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
  }
  .rail nav button.active {
    box-shadow: inset 0 -2px #f9bd82;
    border-radius: 4px 4px 0 0;
  }
  .rail nav .icon {
    display: none;
  }
  .rail-foot {
    display: none;
  }
  .topbar {
    min-height: 45px;
    padding-inline: 13px;
  }
  .body-wrap {
    padding: 17px 12px 25px;
  }
  .pagehead {
    align-items: center;
    margin-bottom: 13px;
  }
  .pagehead h1 {
    font-size: 27px;
  }
  .pagehead p {
    font-size: 12px;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }
  .metric .mhead {
    margin-bottom: 5px;
  }
  .caption {
    line-height: 1.3;
  }
  .metric strong {
    font-size: 27px;
  }
  .columns {
    gap: 12px;
  }
  .panelhead,
  .detailhead {
    padding-inline: 13px;
  }
  .tools {
    padding-inline: 12px;
  }
  .tabs {
    padding: 0 9px;
    gap: 1px;
  }
  .tabs button {
    padding: 6px;
    min-height: 40px;
  }
  .workrow {
    min-height: 66px;
    padding: 10px 12px;
  }
  .login {
    display: block;
  }
  .login-brand {
    padding: 18px 20px;
  }
  .login-brand .brand-logo {
    margin: 0 0 12px;
    font-size: 20px;
  }
  .login-brand h1 {
    font-size: 28px;
  }
  .login-brand h1 br,
  .login-path,
  .login-brand footer {
    display: none;
  }
  .login-brand p {
    font-size: 13px;
    margin: 6px 0 0;
  }
  .login-area {
    padding: 20px 16px 28px;
  }
  .login-box header {
    margin-bottom: 12px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .button {
    min-height: 44px;
  }
  .data-table {
    font-size: 12px;
  }
  .data-table th,
  .data-table td {
    padding: 8px 6px;
  }
  .section-body {
    padding: 0 9px 10px;
  }
  .data-table .opt {
    display: none;
  }
  .tools input,
  .tools select {
    font-size: 16px;
  }
  .detailbody {
    padding: 4px 13px 15px;
  }
  .detailbody .button {
    min-height: 44px;
  }
  .switcher {
    min-height: 44px;
  }
  .back {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  .dlg-b .pair {
    grid-template-columns: 1fr;
  }
  .dlg-b,
  .dlg-h {
    padding: 14px;
  }
  .footnote {
    text-align: left;
  }
}
