:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #233b35;
  background: #f5f6f3;
  font-synthesis: none;
  --green: #176b5b;
  --muted: #74807a;
  --line: #e2e8e1;
  --paper: #fff;
  --red: #b64a38;
}
[hidden] {
  display: none !important;
}
.shell .main {
  margin: 0 auto;
  align-self: start;
}
@media (max-width: 760px) {
  .modal-body .form-grid {
    gap: 12px;
  }
  .modal-body .note {
    margin-bottom: 0;
    padding: 10px 12px;
  }
  .modal-body textarea {
    min-height: 52px;
  }
  .modal-body .form-actions {
    position: sticky;
    bottom: -22px;
    background: #fff;
    padding: 14px 0;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: #fff;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #f1f5f1;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
button.primary:hover {
  background: #125445;
}
button.small {
  padding: 6px 10px;
  font-size: 12px;
}
button.text {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 6px;
}
button.danger {
  color: var(--red);
}
a {
  color: var(--green);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7dfd8;
  background: #fff;
  color: #233b35;
  border-radius: 7px;
  padding: 11px 12px;
  min-height: 42px;
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
}
input:disabled {
  background: #f1f4ef;
  color: #69756e;
}
input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--green);
}
textarea {
  resize: vertical;
  min-height: 78px;
}
label {
  font-size: 13px;
  font-weight: 550;
  display: grid;
  gap: 8px;
}
label.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 700;
  padding: 0 10px 34px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 20px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  text-align: left;
  border: 0;
  background: transparent;
  color: #68766e;
  padding: 13px 17px;
  font-weight: 500;
}
.nav button.active {
  background: #eaf2ec;
  color: var(--green);
  font-weight: 650;
}
.nav-icon {
  margin-right: 12px;
  font-size: 17px;
  display: inline-block;
  width: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 10px 0;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #f1e9d8;
  border-radius: 50%;
  color: #7c6841;
  font-weight: 600;
}
.identity small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.main {
  padding: 34px 38px 60px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 31px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.page-title p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px 22px;
  min-width: 0;
}
.metric.accent {
  background: #176b5b;
  color: #fff;
  border-color: #176b5b;
}
.metric-label {
  font-size: 12px;
  color: #748079;
  margin-bottom: 18px;
}
.metric.accent .metric-label,
.metric.accent small {
  color: #c2dbce;
}
.metric-value {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.metric-value .unit {
  font-size: 15px;
  margin-right: 5px;
  font-weight: 400;
}
.metric small {
  display: block;
  font-size: 11px;
  margin-top: 13px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 21px 23px;
  border-bottom: 1px solid #edf0eb;
}
.panel-body {
  padding: 23px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.table-wrap {
  overflow: auto;
}
.project-children {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 0 0 12px;
  border-left: 2px solid var(--line);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th {
  background: #fafbf8;
  color: #7c867f;
  font-size: 11px;
  font-weight: 500;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #edf0eb;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fbfcfa;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.strong {
  font-weight: 600;
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  background: #e9f3ec;
  color: #387459;
}
.badge.accept {
  background: #fff3da;
  color: #9f792c;
}
.badge.done {
  background: #edf0f2;
  color: #7b858c;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters label {
  min-width: 130px;
}
.filters input,
.filters select {
  min-width: 130px;
  width: auto;
}
.filters .search {
  max-width: 320px;
  width: 100%;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 14px;
}
.empty p {
  margin-bottom: 16px;
}
.bar-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 20px;
}
.bar-row:last-child {
  margin-bottom: 0;
}
progress {
  width: 100%;
  height: 9px;
  border: 0;
  appearance: none;
  border-radius: 10px;
  background: #edf1ea;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #edf1ea;
}
progress::-webkit-progress-value {
  background: #6b9a84;
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: #6b9a84;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  font-size: 13px;
}
.detail-meta dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.detail-meta dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 4px;
  white-space: nowrap;
}
.tabs button.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.note {
  padding: 12px 16px;
  border-radius: 8px;
  background: #f6f7f2;
  color: #76816e;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.mobile-only {
  display: none;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 20%, #e7eee3, transparent 60%), #f5f6f3;
}
.login-card {
  width: 100%;
  max-width: 410px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 38px;
  border-radius: 18px;
  box-shadow: 0 12px 50px #233b3507;
}
.login-card .brand {
  padding: 0 0 30px;
}
.login-card h1 {
  font-size: 23px;
  margin-bottom: 8px;
}
.login-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 27px;
  line-height: 1.7;
}
.login-card form {
  display: grid;
  gap: 18px;
}
.error {
  font-size: 13px;
  color: #af3c29;
  line-height: 1.6;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: 660px;
  width: calc(100% - 30px);
  max-height: 90vh;
  box-shadow: 0 24px 100px #162a3540;
}
dialog::backdrop {
  background: #132b254d;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 27px;
  border-bottom: 1px solid var(--line);
}
.modal-head button {
  border: 0;
  padding: 4px 8px;
  font-size: 22px;
  font-weight: 400;
}
.modal-body {
  padding: 25px 27px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.span-2 {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 24px;
}
.form-error {
  margin-top: 16px;
}
.member-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.member-row:last-child {
  border: 0;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  padding: 9px 15px;
  background: #f3f6f0;
  border-radius: 7px;
  font-size: 13px;
}
.report-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.report-option {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.report-option p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  color: #fff;
  background: #23473e;
  border-radius: 10px;
  z-index: 100;
  box-shadow: 0 5px 25px #0002;
  font-size: 14px;
}
.audit-details {
  max-width: 600px;
  white-space: pre-wrap;
  font-size: 12px;
}
.records-total {
  font-size: 13px;
  padding: 16px 22px;
  background: #f7faf5;
  color: var(--green);
}
@media (min-width: 1500px) {
  .main {
    padding: 40px 55px 60px;
  }
  .metric-value {
    font-size: 34px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .main {
    padding: 25px 24px 50px;
  }
  .cards {
    gap: 10px;
  }
  .metric {
    padding: 19px 15px;
  }
  .metric-value {
    font-size: 23px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .report-options {
    grid-template-columns: 1fr;
  }
  .detail-meta {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 18px;
    padding: 0 0 13px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .nav {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .nav button {
    padding: 12px 14px;
    white-space: nowrap;
    font-size: 12px;
    border-radius: 6px 6px 0 0;
  }
  .nav-icon {
    display: none;
  }
  .sidebar-bottom {
    position: absolute;
    top: 16px;
    right: 15px;
    border: 0;
    padding: 0;
  }
  .sidebar-bottom .identity {
    display: none;
  }
  .sidebar-bottom button {
    font-size: 11px;
    padding: 5px;
  }
  .main {
    padding: 22px 16px 40px;
  }
  .topline {
    margin-bottom: 18px;
    font-size: 11px;
  }
  .page-title {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-title h1 {
    font-size: 23px;
  }
  .page-title .actions button {
    padding: 9px 11px;
    font-size: 12px;
  }
  .page-title p {
    font-size: 11px;
    line-height: 1.7;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 18px 14px;
  }
  .metric-label {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .metric-value {
    font-size: 23px;
  }
  .metric small {
    font-size: 10px;
    margin-top: 9px;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-body {
    padding: 18px;
  }
  .panel {
    margin-bottom: 17px;
  }
  h2 {
    font-size: 16px;
  }
  td {
    padding: 14px;
  }
  th {
    padding: 12px 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .modal-body {
    padding: 22px;
  }
  .modal-head {
    padding: 18px 22px;
  }
  .filters {
    gap: 8px;
  }
  .filters label {
    min-width: 0;
    flex: 1;
  }
  .filters input,
  .filters select {
    min-width: 0;
    width: 100%;
  }
  .filters .search {
    max-width: none;
  }
  .detail-meta {
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .login-card {
    padding: 30px;
  }
  .hide-mobile {
    display: none;
  }
  .mobile-only {
    display: initial;
  }
  .bar-row {
    grid-template-columns: 50px 1fr 85px;
    gap: 10px;
  }
  .report-option {
    padding: 20px;
  }
}
