:root {
  --bg: #f5f6f2;
  --paper: #fff;
  --ink: #203a31;
  --muted: #7c8880;
  --line: #e2e7df;
  --green: #265b43;
  --lime: #d3eab2;
  --orange: #a97437;
  --red: #b34c42;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a {
  color: var(--green);
  text-decoration: none;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 15px;
  transition: background 0.15s;
}
button:hover {
  background: #edf2e9;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.primary:hover {
  background: #174630;
}
.danger {
  color: var(--red);
}
.text-button {
  border: 0;
  background: none;
  padding: 5px 0;
}
.icon-button {
  font-size: 23px;
  border: 0;
  background: transparent;
  padding: 2px 10px;
}
.muted,
small {
  color: var(--muted);
}
.error {
  color: var(--red);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7e8d70;
}
.sidebar {
  width: 234px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fcfdf9;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 0 9px;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 4px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: #e8f0d3;
  font-family: serif;
  font-weight: 400;
  width: 45px;
  height: 45px;
  border-radius: 13px 13px 13px 2px;
  font-size: 26px;
  letter-spacing: 0;
}
.workspace-label {
  font-size: 10px;
  color: var(--muted);
  margin: 44px 10px 18px;
  display: flex;
  justify-content: space-between;
}
.workspace-label span {
  color: #658149;
  background: #edf3e5;
  padding: 2px 6px;
  border-radius: 4px;
}
nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 14px;
  color: #69786d;
  border-radius: 7px;
  margin-bottom: 5px;
}
nav a span {
  font-size: 20px;
  width: 22px;
  text-align: center;
}
nav a.active {
  background: #e6eddf;
  color: var(--green);
  font-weight: 700;
}
nav a:hover {
  background: #eef2e9;
}
nav b {
  margin-left: auto;
  background: white;
  font: 11px monospace;
  padding: 3px 6px;
  border-radius: 4px;
}
.nav-label {
  font-size: 10px;
  color: #8f9b91;
  margin: 28px 14px 14px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 10px 0;
  font-size: 11px;
}
.sidebar-bottom strong {
  display: block;
  margin: 10px 0;
}
.sidebar-bottom small {
  line-height: 1.9;
  font-size: 10px;
}
.sidebar-bottom button {
  display: block;
  margin-top: 16px;
  font-size: 11px;
}
.region-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8caa67;
}
.main-shell {
  margin-left: 234px;
  min-height: 100vh;
}
.topbar {
  height: 75px;
  background: #fcfdf9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 14px;
  color: #c1c9bd;
}
.breadcrumb b {
  font-weight: 400;
  color: var(--ink);
}
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.connection {
  font-size: 10px;
  color: #6f816e;
}
.avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #e5e8dc;
  border-radius: 50%;
  font-size: 11px;
}
main {
  max-width: 1510px;
  margin: 0 auto;
  padding: 37px 42px;
  min-height: calc(100vh - 130px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: 1px;
  margin: 7px 0 10px;
  font-weight: 650;
}
.page-heading p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero {
  background: #e8efdf;
  border: 1px solid #dce5d1;
  border-radius: 12px;
  padding: 27px 31px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: 21px;
  margin: 5px 0 12px;
  font-weight: 550;
}
.hero p {
  font-size: 12px;
  color: #6b7d63;
  line-height: 1.9;
  margin: 0;
}
.hero .hero-circle {
  height: 130px;
  width: 230px;
  position: absolute;
  right: 40px;
  top: 20px;
  border: 1px solid #c3d1af;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.hero .hero-circle:after {
  content: "";
  position: absolute;
  inset: 17px -12px;
  border: 1px solid #c3d1af;
  border-radius: 50%;
  transform: rotate(50deg);
}
.hero .hero-circle b {
  position: absolute;
  left: 15px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9db87a;
}
.hero button {
  align-self: center;
  z-index: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 23px 0 28px;
}
.stat {
  padding: 21px 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat-label {
  font-size: 11px;
  color: #788477;
  display: flex;
  justify-content: space-between;
}
.stat-value {
  font-family: Georgia, serif;
  font-size: 38px;
  margin: 12px 0 6px;
  line-height: 1;
}
.stat small {
  font-size: 10px;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 22px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel-heading h2 {
  font-size: 14px;
  margin: 0;
}
.panel-heading a,
.panel-heading small {
  font-size: 10px;
}
.check-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #edf0e9;
}
.check-row:last-child {
  border: 0;
}
.check-number {
  height: 29px;
  width: 29px;
  background: #f1f4eb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 12px Georgia;
  color: #748b62;
}
.check-row strong {
  font-size: 12px;
  font-weight: 500;
}
.check-row p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.check-row a {
  margin-left: auto;
  font-size: 11px;
}
.empty {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 25px;
}
.empty-symbol {
  font-size: 38px;
  color: #a0b58d;
  background: #f2f5ec;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0;
}
.empty p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 380px;
}
.empty button {
  font-size: 11px;
  margin-top: 8px;
}
.tag {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 7px;
  background: #eff3e9;
  color: #63814c;
  font-size: 10px;
  white-space: nowrap;
}
.tag.warn {
  background: #fbf2e3;
  color: #a77d42;
}
.tag.bad {
  background: #faeae6;
  color: #b45f50;
}
.tag.neutral {
  background: #f0f2ee;
  color: #7a8578;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.task-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.task-main {
  padding: 23px;
}
.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.task-icon {
  width: 38px;
  height: 38px;
  background: #eef2e6;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 20px;
  color: #74895c;
}
.task-card h2 {
  font-size: 15px;
  margin: 18px 0 8px;
}
.task-card p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 39px;
}
.task-meta {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: #77806e;
  margin: 20px 0 8px;
}
.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  background: #fcfdf9;
}
.task-footer button {
  font-size: 10px;
  padding: 6px 10px;
}
.task-footer small {
  font-size: 10px;
}
.notice {
  font-size: 12px;
  line-height: 1.9;
  background: #f1f3e9;
  border-left: 3px solid #b2c792;
  padding: 13px 17px;
  margin: 16px 0 23px;
  color: #718064;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters input {
  flex: 1;
  min-width: 180px;
}
.filters select {
  width: auto;
  min-width: 120px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dfe5d8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b9cfa6;
  border-color: #8ba879;
}
textarea {
  resize: vertical;
  line-height: 1.8;
}
label {
  display: block;
  font-size: 12px;
  color: #52634e;
  margin-bottom: 20px;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 9px;
}
label small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.span-2 {
  grid-column: 1/-1;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}
.form-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  align-items: center;
}
.form-actions small {
  margin-left: auto;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 25px;
}
.aside-note h3 {
  font-size: 14px;
  margin: 0 0 14px;
}
.aside-note p {
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
}
.aside-note ol {
  padding-left: 20px;
  font-size: 11px;
  color: #77866e;
  line-height: 2.5;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-weight: 400;
  color: #8a9483;
  background: #fafbf7;
  font-size: 10px;
  padding: 14px 19px;
}
td {
  padding: 17px 19px;
  border-top: 1px solid #edf0e8;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td.title-cell {
  white-space: normal;
  min-width: 220px;
}
td p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 0;
  line-height: 1.7;
}
td button {
  font-size: 10px;
  padding: 6px 10px;
}
tr:hover td {
  background: #fcfdf9;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 11px;
  color: var(--muted);
}
.browser-preview {
  background: #f0f2ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.browser-preview img {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}
.browser-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.browser-tools input {
  flex: 1;
  min-width: 200px;
}
.browser-tools button {
  font-size: 11px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 0 42px 24px;
  font-size: 9px;
  color: #9aa390;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  width: min(650px, calc(100% - 30px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 20px 80px #203a3120;
}
dialog::backdrop {
  background: #172b2655;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.modal-heading h2 {
  font-size: 20px;
  margin: 0;
}
.detail-body {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 12px;
  background: #f5f6f1;
  padding: 18px;
  max-height: 260px;
  overflow: auto;
  margin: 18px 0;
}
.detail-link {
  word-break: break-all;
  font-size: 11px;
  display: block;
  margin: 14px 0;
}
.detail-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  font-size: 12px;
}
.detail-kv small {
  display: block;
  margin-bottom: 5px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #233f32;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: 0 5px 25px #0002;
  z-index: 1000;
  max-width: 90vw;
  font-size: 12px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: #e6eddc;
  padding: 60px 10%;
  position: relative;
  overflow: hidden;
}
.login-art .eyebrow {
  margin-top: 70px;
}
.login-art h1 {
  font-family: "STSong", "SimSun", serif;
  font-size: 47px;
  line-height: 1.5;
  font-weight: 400;
}
.login-art > p:not(.eyebrow) {
  line-height: 2;
  font-size: 13px;
  color: #748066;
}
.login-form {
  max-width: 420px;
  width: 100%;
  margin: auto;
  padding: 30px;
}
.login-form h2 {
  font-weight: 500;
  font-size: 25px;
  margin: 20px 0;
}
.login-form .muted {
  font-size: 12px;
  margin-bottom: 40px;
}
.login-form button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}
.login-form small {
  font-size: 10px;
  line-height: 1.8;
}
.orbit {
  height: 200px;
  margin-top: 60px;
  position: relative;
}
.orbit i {
  display: block;
  width: 300px;
  height: 150px;
  border: 1px solid #bacba7;
  border-radius: 50%;
  position: absolute;
  transform: rotate(-25deg);
}
.orbit i:nth-child(2) {
  transform: rotate(25deg);
}
.orbit i:nth-child(3) {
  transform: rotate(80deg);
}
.orbit b {
  position: absolute;
  top: 65px;
  left: 80px;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 400;
  color: #80976b;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .aside-note {
    display: none;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-circle {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .sidebar {
    width: 210px;
  }
  .main-shell {
    margin-left: 210px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 22px;
  }
  .workspace-label,
  .sidebar-bottom,
  .nav-label {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 14px;
  }
  nav a {
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 11px;
  }
  nav a span {
    font-size: 15px;
    width: 15px;
  }
  nav b {
    display: none;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    height: 55px;
    padding: 0 18px;
  }
  .connection {
    display: none;
  }
  main {
    padding: 22px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-value {
    font-size: 33px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 22px;
    flex-direction: column;
  }
  .hero button {
    align-self: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions small {
    margin: 0;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-form {
    margin: 15vh auto;
  }
  .panel {
    padding: 20px;
  }
  footer {
    padding: 0 18px 20px;
  }
  .detail-kv {
    grid-template-columns: 1fr;
  }
  .filters select {
    flex: 1;
  }
  dialog {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.service-picker { padding: 16px; border: 1px solid #dce5dc; border-radius: 12px; background: #f7f9f4; min-width: 0; }
.service-heading { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 12px; }
.service-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.service-options button { min-height: 40px; padding: 8px 14px; border-radius: 8px; overflow-wrap: anywhere; }
.service-options button[aria-pressed="true"] { background: #245c46; color: white; border-color: #245c46; box-shadow: inset 0 0 0 1px #fff6; }
.service-options button:focus-visible { outline: 3px solid #91b7a2; outline-offset: 2px; }
