:root {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #172033;
  background: #f3f6fb;
  font-synthesis: none;
  --ink: #172033;
  --muted: #69758c;
  --line: #dfe5ef;
  --blue: #0878ff;
  --navy: #092651;
  --cyan: #dff5ff;
  --white: #fff;
  --red: #c53d50;
}

[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 10%, #d9f5ff, transparent 35%),
    linear-gradient(145deg, #f9fbff, #edf2fa);
}
.login form {
  width: min(420px, calc(100vw - 32px));
  padding: 42px;
  border: 1px solid #d8e3f1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(25, 55, 99, 0.13);
}
.login a,
.topbar > a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.login a span,
.topbar > a span {
  color: var(--blue);
}
.login h1 {
  margin: 30px 0 28px;
  font-size: 2.1rem;
}
.login label {
  display: grid;
  gap: 7px;
  margin: 13px 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}
.login input {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 13px;
  background: #fff;
}
.login button {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}
.login [role="alert"] {
  min-height: 20px;
  margin-top: 10px;
  color: var(--red);
  font-size: 0.73rem;
}
.topbar {
  height: 68px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar strong {
  font-size: 0.85rem;
}
.topbar nav,
.topbar > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.topbar nav {
  justify-content: center;
}
.topbar button,
.topbar > div a {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #566176;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
}
.topbar button:hover,
.topbar > div a:hover,
.topbar button[aria-selected="true"] {
  background: #edf5ff;
  color: #075bbb;
  border-color: #d3e6ff;
}
.queue-layout {
  height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 300px minmax(480px, 1fr) 260px;
  gap: 0;
}
.queue-panel,
.editor-panel,
.policy {
  min-width: 0;
  overflow-y: auto;
  background: #fff;
}
.queue-panel {
  border-right: 1px solid var(--line);
}
.queue-panel header,
.page-section > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 24px;
}
.queue-panel h1,
.page-section h1 {
  margin: 0;
  font-size: 1.45rem;
}
.queue-panel header button,
.page-section header button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 750;
  padding: 0 12px;
}
.queue-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-top: 1px solid #edf0f5;
  background: #fff;
  padding: 14px 18px;
  text-align: left;
}
.queue-item:hover,
.queue-item[aria-current="true"] {
  background: #eef7ff;
}
.queue-item > span:first-child {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cyan);
  color: #075bbb;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 850;
}
.queue-item strong,
.queue-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-item strong {
  font-size: 0.78rem;
}
.queue-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.64rem;
}
.queue-item em {
  color: var(--blue);
  font-size: 0.61rem;
  font-style: normal;
}
.empty,
.blank {
  padding: 42px 24px;
  color: var(--muted);
  font-size: 0.76rem;
}
.editor-panel {
  padding: 34px 38px;
}
.blank {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
}
.blank strong {
  color: var(--ink);
  font-size: 1.1rem;
}
.blank span {
  max-width: 420px;
  line-height: 1.7;
}
.status-tags {
  display: flex;
  gap: 7px;
}
.status-tags span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #edf5ff;
  color: #075bbb;
  font-size: 0.61rem;
  font-weight: 800;
}
.editor-panel h2 {
  margin: 13px 0 8px;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.editor-panel > a {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 750;
}
.editor-panel blockquote {
  margin: 20px 0;
  padding: 15px 17px;
  border: 1px solid #d8e8f7;
  border-radius: 10px;
  background: #f4faff;
  color: #53617a;
  font-size: 0.74rem;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  color: #5c6880;
  font-size: 0.69rem;
  font-weight: 750;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.feed-form input,
.feed-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}
.form-grid input,
.form-grid select {
  height: 42px;
}
.form-grid textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}
.checks {
  display: grid;
  gap: 9px;
  margin: 20px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcff;
}
.checks label {
  color: #4c5a70;
  font-size: 0.72rem;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.actions button {
  height: 44px;
  border-radius: 11px;
  padding: 0 17px;
  font-size: 0.74rem;
  font-weight: 800;
}
.actions .quiet {
  border: 1px solid var(--line);
  background: #fff;
}
.actions .danger {
  color: var(--red);
}
.actions .publish {
  border: 0;
  background: var(--blue);
  color: #fff;
}
.policy {
  border-left: 1px solid var(--line);
  padding: 28px 24px;
}
.policy h2 {
  margin: 0;
  font-size: 1.2rem;
}
.policy ol {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.8;
}
.page-section {
  width: min(1280px, calc(100% - 48px));
  margin: 26px auto;
  padding: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.page-section > header {
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
td button {
  min-height: 31px;
  margin: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #075bbb;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0 9px;
}
.feed-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 24px;
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
}
.feed-form button {
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}
.governance-page > header {
  align-items: center;
}
.governance-page > header h1 {
  margin-bottom: 6px;
}
.governance-page > header p:last-child,
.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}
.service-budget {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0 24px 16px;
  padding: 12px 14px;
  border: 1px solid #bfe4d2;
  border-radius: 12px;
  background: #f0fbf6;
  color: #176044;
  font-size: 0.7rem;
}
.service-budget.is-degraded {
  border-color: #f1d4ad;
  background: #fff8ed;
  color: #8a5315;
}
.governance-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr) 150px minmax(240px, 1.4fr);
  gap: 12px;
  align-items: end;
  margin: 0 24px 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}
.governance-controls > div:not(.governance-buttons),
.governance-controls label {
  min-width: 0;
}
.governance-controls small,
.governance-controls label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
}
.governance-controls strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.governance-controls input,
.governance-controls select {
  width: 100%;
  height: 40px;
  margin-top: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.governance-buttons {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
}
.governance-buttons button,
.cluster-card button,
.audit-list button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #bdd8f7;
  border-radius: 9px;
  background: #fff;
  color: #075bbb;
  font-size: 0.66rem;
  font-weight: 760;
}
.governance-buttons button:first-child {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.governance-buttons .quiet {
  margin-left: auto;
  color: var(--muted);
}
.governance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 0 24px;
}
.governance-grid h2 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}
.cluster-list,
.audit-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.cluster-card,
.audit-list article {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.cluster-card.is-locked {
  border-color: #edca91;
  background: #fffdf8;
}
.cluster-card > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}
.cluster-card > header > div:first-child {
  min-width: 0;
}
.cluster-card > header > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.cluster-card h3 {
  margin: 4px 0;
  font-size: 0.86rem;
  line-height: 1.4;
}
.cluster-card span,
.cluster-card small {
  color: var(--muted);
  font-size: 0.62rem;
}
.cluster-card details {
  border-top: 1px solid #edf0f5;
}
.cluster-card summary {
  padding: 10px 14px;
  color: #526178;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
}
.cluster-reports {
  display: grid;
  gap: 1px;
  padding: 0 12px 12px;
}
.cluster-reports label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 0.68rem;
}
.cluster-reports b,
.cluster-reports small {
  display: block;
}
.cluster-reports a {
  color: var(--blue);
  font-size: 0.64rem;
}
.cluster-reports > button {
  justify-self: start;
  margin-top: 8px;
}
.audit-list article {
  padding: 13px;
}
.audit-list article header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.audit-list article header span {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 750;
}
.audit-list p {
  margin: 8px 0;
  color: #4d5b70;
  font-size: 0.7rem;
  line-height: 1.55;
}
.audit-list small {
  display: block;
  color: var(--muted);
  font-size: 0.61rem;
}
.audit-list button {
  margin-top: 10px;
  color: var(--red);
}
.report-page {
  width: min(1120px, calc(100% - 48px));
}
.report-page > header {
  align-items: center;
  background: linear-gradient(120deg, #fbfdff 0%, #f1f7ff 100%);
}
.report-page > header h1 {
  margin-bottom: 6px;
}
.report-page > header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}
.report-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 24px 0;
  padding: 13px 15px;
  border: 1px solid #efd9b7;
  border-radius: 12px;
  background: #fffaf1;
  color: #72501f;
  font-size: 0.68rem;
}
.report-summary strong {
  color: #5d3c0b;
  font-size: 0.76rem;
}
.report-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 24px 0;
}
.report-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
  overflow: hidden;
}
.report-card[aria-busy="true"] {
  opacity: 0.72;
}
.report-card > header {
  padding: 17px 18px 12px;
}
.report-card h2 {
  margin: 7px 0 4px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.report-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.report-card h2 a:hover {
  color: var(--blue);
}
.report-card time {
  color: var(--muted);
  font-size: 0.62rem;
}
.report-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff1dc;
  color: #9b5b00;
  font-size: 0.6rem;
  font-weight: 800;
}
.report-comment {
  margin: 0 18px 14px;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
  color: #344158;
  font-size: 0.74rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.report-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  padding: 0 18px 16px;
}
.report-facts div {
  min-width: 0;
  padding: 9px 10px;
  background: #f8fafc;
}
.report-facts div:first-child {
  border-radius: 9px 0 0 0;
}
.report-facts div:nth-child(2) {
  border-radius: 0 9px 0 0;
}
.report-facts div:nth-last-child(2) {
  border-radius: 0 0 0 9px;
}
.report-facts div:last-child {
  border-radius: 0 0 9px 0;
}
.report-facts dt {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 700;
}
.report-facts dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: #2c384d;
  font-size: 0.68rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-card > footer {
  min-height: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #edf0f5;
  background: #fbfcfe;
}
.report-card > footer span {
  color: var(--red);
  font-size: 0.62rem;
}
.report-card > footer button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #53617a;
  font-size: 0.67rem;
  font-weight: 800;
}
.report-card > footer .report-action {
  border-color: #efc6cc;
  color: #a52b3d;
}
.report-card > footer button:hover:not(:disabled) {
  border-color: #aacbf2;
  background: #f2f8ff;
}
.report-card > footer button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.report-empty {
  text-align: center;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  max-width: min(460px, calc(100vw - 30px));
  padding: 12px 16px;
  border-radius: 11px;
  background: #172033;
  color: #fff;
  font-size: 0.74rem;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: 180ms;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1050px) {
  .queue-layout {
    grid-template-columns: 280px 1fr;
  }
  .policy {
    display: none;
  }
  .topbar {
    grid-template-columns: auto 1fr auto;
  }
  .topbar > strong {
    display: none;
  }
  .governance-controls {
    grid-template-columns: 1fr auto 1fr;
  }
  .governance-controls label {
    grid-column: span 1;
  }
  .governance-controls .reason-field {
    grid-column: span 2;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 68px;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 16px;
  }
  .topbar nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: flex-start;
    overflow: auto;
  }
  .topbar > div a {
    display: none;
  }
  .queue-layout {
    height: auto;
    display: block;
  }
  .queue-panel {
    max-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .editor-panel {
    padding: 24px 18px;
  }
  .form-grid,
  .feed-form {
    grid-template-columns: 1fr;
  }
  .page-section {
    width: calc(100% - 24px);
  }
  .login form {
    padding: 30px 24px;
  }
  .service-budget,
  .cluster-card > header {
    display: grid;
  }
  .governance-controls,
  .governance-grid {
    grid-template-columns: 1fr;
  }
  .governance-controls > span {
    display: none;
  }
  .governance-controls label,
  .governance-controls .reason-field,
  .governance-buttons {
    grid-column: auto;
  }
  .governance-buttons {
    flex-wrap: wrap;
  }
  .report-page {
    width: calc(100% - 24px);
  }
  .report-summary {
    display: grid;
    margin: 14px 14px 0;
  }
  .report-list {
    grid-template-columns: 1fr;
    padding: 14px 14px 0;
  }
  .report-card > footer {
    grid-template-columns: 1fr 1fr;
  }
  .report-card > footer span {
    grid-column: 1 / -1;
  }
  .report-card > footer button {
    min-height: 44px;
  }
}
