:root {
  --ink: #173444;
  --muted: #687d88;
  --teal: #007c80;
  --line: #dce5e8;
  --bg: #f4f7f8;
  --nav: #102f3c;
  --amber: #9a6511;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.65 "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #1a9f9e;
  outline-offset: 2px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: var(--nav);
  color: #e7f4f5;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 27px;
  color: white;
  text-decoration: none;
  letter-spacing: 3px;
  font-weight: 600;
}
.brand span {
  color: #64cfca;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 7px;
  color: #b5ccd2;
}
.side-label {
  margin-top: 36px;
  color: #a8c0c8;
  font-size: 11px;
  letter-spacing: 2px;
}
aside select {
  margin-top: 10px;
  max-width: 100%;
  font-size: 12px;
  background: #1e4250;
  border-color: #3c5d69;
  color: white;
  padding: 9px 6px;
}
.nature {
  font-size: 11px;
  color: #8eb9c4;
  margin: 8px 0 23px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  border: 0;
  background: none;
  text-align: left;
  color: #bed0d6;
  padding: 11px 12px;
  border-radius: 7px;
}
nav button.active {
  background: #25616a;
  color: white;
}
nav button:hover {
  background: #204957;
}
.side-footer {
  margin-top: auto;
  padding: 20px 10px 0;
  font-size: 11px;
  color: #86a5b0;
}
.side-footer span {
  display: block;
  margin-top: 7px;
  color: #6f929f;
}
main {
  margin-left: 236px;
  padding: 36px 38px 22px;
  max-width: 1740px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 5px;
}
h1 {
  font-size: 29px;
  line-height: 1.4;
  margin: 0 0 5px;
  font-weight: 600;
}
h2 {
  font-size: 21px;
  margin: 0;
}
header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.header-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
button,
.button {
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.quiet {
  background: white;
  color: var(--ink);
}
.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.notice {
  border: 1px solid #d7e8e6;
  background: #edf6f4;
  padding: 11px 15px;
  border-radius: 7px;
  font-size: 12px;
  color: #4d6f70;
  margin-bottom: 22px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 9px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 23px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px 20px;
}
.metric span {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  font-weight: 500;
  font-size: 29px;
  line-height: 1.5;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
input,
select,
textarea {
  padding: 8px 10px;
  border: 1px solid #cbd9df;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  min-width: 0;
}
#search {
  width: 250px;
}
.filters select {
  max-width: 190px;
}
#count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
  font-size: 12px;
}
th {
  background: #eaf0f2;
  padding: 12px 15px;
  font-size: 11px;
  font-weight: 500;
  color: #617781;
  text-align: left;
  white-space: nowrap;
}
td {
  padding: 14px 15px;
  border-top: 1px solid #e7edef;
  vertical-align: top;
}
tr:hover td {
  background: #f9fcfc;
}
.item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  white-space: normal;
}
.item-title:hover {
  color: var(--teal);
}
.minor {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  font-size: 11px;
  background: #f0f3f5;
  border-radius: 4px;
  color: #617681;
  padding: 3px 8px;
  white-space: nowrap;
}
.badge.warn {
  background: #fff3d9;
  color: #8b661f;
}
.badge.good {
  background: #e3f2ed;
  color: #287062;
}
.badge.active {
  background: #e4effa;
  color: #476f97;
}
.empty {
  background: white;
  border: 1px dashed #c9d8de;
  padding: 45px 25px;
  text-align: center;
  border-radius: 8px;
  color: var(--muted);
}
.phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.phase {
  background: white;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 7px;
}
.phase strong {
  font-size: 12px;
}
.phase p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 0;
}
.phase small {
  color: var(--teal);
  font-size: 10px;
}
footer {
  font-size: 11px;
  color: #8799a3;
  padding: 20px 2px;
}
.hidden {
  display: none !important;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(820px, 95vw);
  max-height: 92vh;
  box-shadow: 0 20px 80px #082d4d33;
  padding: 27px;
  color: var(--ink);
}
dialog::backdrop {
  background: #12313f77;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.close {
  border: 0;
  background: none;
  font-size: 28px;
  color: #8399a3;
  padding: 0 7px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
textarea {
  resize: vertical;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 22px;
}
.error {
  color: #a53c35;
  font-size: 12px;
  min-height: 16px;
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
.history {
  font-size: 12px;
  color: var(--muted);
}
.history pre {
  white-space: pre-wrap;
  background: var(--bg);
  padding: 12px;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: var(--nav);
  color: white;
  border-radius: 7px;
  padding: 13px 20px;
  box-shadow: 0 4px 20px #1234;
  max-width: 85vw;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.document-name {
  max-width: 280px;
  overflow-wrap: anywhere;
}
.documents a {
  color: var(--teal);
}
@media (max-width: 1150px) {
  main {
    padding: 28px 24px;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 12px;
  }
  .phases {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  aside {
    position: relative;
    width: auto;
    max-width: 100%;
    padding: 20px;
  }
  .brand {
    font-size: 24px;
  }
  .side-label,
  .side-footer,
  .nature {
    display: none;
  }
  aside select {
    margin-top: 15px;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
    max-width: 100%;
    min-width: 0;
  }
  nav button {
    white-space: nowrap;
    padding: 8px 12px;
  }
  main {
    margin: 0;
    padding: 24px 15px;
    max-width: 100%;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters {
    gap: 8px;
  }
  #search {
    width: 100%;
  }
  .filters label:first-child {
    width: 100%;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .phases {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  dialog {
    padding: 19px;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions button,
  .header-actions a {
    padding: 8px 11px;
    font-size: 12px;
  }
  h1 {
    font-size: 25px;
  }
}

.workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 8px;
  background: #ebf2f3;
  border: 1px solid #d7e5e7;
  border-radius: 10px;
}
.workspace-nav a {
  display: inline-flex;
  flex: 1 1 142px;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
  padding: 10px 9px;
  color: #31505c;
  border-radius: 7px;
  min-height: 39px;
}
.workspace-nav a:hover,
.workspace-nav a:focus {
  background: #fff;
  color: #123c46;
}
.workspace-nav a[aria-current="page"] {
  background: #164f59;
  color: #fff;
  box-shadow: 0 2px 6px #164f591a;
}
.m6-evaluation {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.m6-evaluation .status-pill[data-state="UNKNOWN"] {
  background: #f3f4f6;
  color: #596574;
}
.m6-evaluation .status-pill[data-state="UNSATISFIED"] {
  background: #fff1e2;
  color: #985921;
}
.m6-evaluation .status-pill[data-state="CONFLICT"] {
  background: #feecec;
  color: #923e3e;
}
.m6-evaluation .status-pill[data-state="SATISFIED"] {
  background: #e6f3eb;
  color: #256b51;
}
.m6-json {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 300px;
  background: #f5f9fa;
  border: 1px solid #dbe8e9;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
}
.m6-footnote {
  color: #6b818a;
  font-size: 12px;
  padding: 12px 0;
}
.m6-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.m6-grid section {
  min-width: 0;
}
@media (max-width: 920px) {
  .m6-grid {
    grid-template-columns: 1fr;
  }
  .workspace-nav a {
    flex-basis: 140px;
  }
}
.account-panel {
  background: #fff;
  color: var(--ink);
  border-color: #bfd8d5;
  padding: 20px;
}
.account-heading,
.account-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.account-heading h2 { margin: 0 0 4px; font-size: 20px; }
.account-heading p { margin: 0; color: var(--muted); }
.account-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}
.account-panel [hidden] { display: none !important; }
.account-form label { font-weight: 600; }
.account-form input,
.account-form select { width: 100%; min-height: 42px; font-size: 16px; }
.account-submit button { min-width: 108px; min-height: 42px; }
.account-membership,
.account-help { grid-column: 1 / -1; }
.account-help { color: var(--muted); margin: 0; font-size: 12px; }
.account-state { margin-top: 14px; }
#home-auth-status { overflow-wrap: anywhere; }
.account-ops {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
  color: var(--muted);
}
.account-ops summary { cursor: pointer; width: fit-content; }
.account-ops p { margin: 10px 0; }
.account-ops label { max-width: 600px; margin: 10px 0; }
.account-ops input { width: 100%; }
@media (max-width: 700px) {
  .account-panel { padding: 16px; }
  .account-form { grid-template-columns: minmax(0, 1fr); }
  .account-submit button { width: 100%; }
  .account-heading { align-items: flex-start; }
  .account-state { align-items: flex-start; }
}
