@font-face {
  font-family: Inter;
  src: url(/static/vendor/InterVariable.woff2) format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* 功能区：独立运维控制台。关联入口：cdn-admin；与公开站点布局及脚本隔离。 */
:root {
  font-family: Inter, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #203839;
  background: #f4f7f7;
  font-size: 14px;
  line-height: 1.55;
  --bg: #f4f7f7;
  --surface: #fff;
  --text: #203839;
  --muted: #536c6d;
  --line: #dce6e5;
  --accent: #087c69;
  --soft: #e8f4f0;
  --danger: #b53632;
  --shadow: 0 12px 32px #1c41411a;
  font-synthesis: none;
}
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #122020;
  --surface: #192c2c;
  --text: #e7f2ef;
  --muted: #a4bcb7;
  --line: #304a47;
  --accent: #73d2b4;
  --soft: #203f36;
  --danger: #ffaaa3;
  --shadow: 0 12px 32px #0004;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 13px;
  font-weight: 550;
  line-height: 1.4;
  transition:
    background-color 0.15s,
    color 0.15s;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: var(--accent);
  color: var(--surface);
}
button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
button.quiet {
  padding: 5px 8px;
  background: transparent;
  color: inherit;
}
button.danger {
  background: var(--surface);
  border-color: var(--danger);
  color: var(--danger);
}
button.link {
  padding: 3px 6px;
  background: transparent;
  color: var(--accent);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  padding: 9px 11px;
  min-width: 0;
  caret-color: var(--accent);
}
input[type='checkbox'] {
  width: auto;
  accent-color: var(--accent);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
}
::selection {
  background: var(--accent);
  color: var(--surface);
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.025em;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.015em;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
strong,
.number {
  font-variant-numeric: tabular-nums;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #173b36;
  color: #e6f3ee;
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  background: #b7e0cc;
  color: #183f32;
  border-radius: 9px 3px 9px 3px;
  font-size: 23px;
  font-weight: 750;
}
.sidebar-label {
  margin: 22px 11px 14px;
  color: #a5c4b9;
  font-size: 12px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  padding: 10px 13px;
  border-radius: 6px;
  color: #c9dfd7;
  font-size: 13px;
  text-decoration: none;
}
.sidebar nav a:hover {
  background: #244c43;
  color: #fff;
}
.sidebar nav a.active {
  background: #d3e9dc;
  color: #153d30;
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 10px 0;
  font-size: 11px;
  color: #b7d2c7;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #6bd2ac;
}
.account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  border-top: 1px solid #ffffff20;
  padding-top: 12px;
  font-size: 12px;
}
main {
  padding: 32px 38px 60px;
  min-width: 0;
  max-width: 1800px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.page-header p {
  margin-top: 5px;
  font-size: 13px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-head p {
  margin-top: 4px;
  font-size: 12px;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
}
.metric {
  padding: 22px 24px;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.metric-value {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 620;
}
.metric-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 20px;
}
.grid-even {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--soft);
  border-radius: 5px;
  color: var(--accent);
  padding: 3px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.state.bad {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
}
.state.neutral {
  background: var(--bg);
  color: var(--muted);
}
.resource {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.resource:last-child {
  border: 0;
}
.resource-label {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 9px;
  font-size: 12px;
}
.meter {
  height: 5px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 12px;
}
.service-row + .service-row {
  border-top: 1px solid var(--line);
}
.notice {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
  background: var(--soft);
}
.notice.error {
  color: var(--danger);
  background: var(--surface);
}
.error {
  color: var(--danger);
  font-size: 12px;
  min-height: 18px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  padding: 11px 12px;
  background: var(--bg);
}
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
td.wrap {
  white-space: normal;
  min-width: 160px;
  max-width: 440px;
  overflow-wrap: anywhere;
}
.table-title {
  font-size: 13px;
  font-weight: 600;
}
.table-secondary {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.empty {
  padding: 36px 15px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 4px;
  align-items: center;
}
.tabs button {
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
}
.tabs button.active {
  background: var(--soft);
  color: var(--accent);
}
.chart {
  width: 100%;
  min-height: 240px;
}
.chart .uplot {
  font-family: inherit !important;
}
.chart .u-legend {
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
}
.inline-form > label {
  flex: 1;
}
.rule {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.6fr 0.65fr auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.rule label {
  font-size: 11px;
}
.rule .extras {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 18px;
}
.rule .extras label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.rule .extras input[type='text'] {
  width: 220px;
}
.section-gap {
  margin-top: 28px;
}
.definition {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  font-size: 12px;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.health-history {
  display: flex;
  gap: 2px;
  align-items: center;
}
.health-history span {
  height: 18px;
  width: 5px;
  background: var(--accent);
  border-radius: 2px;
}
.health-history span.bad {
  background: var(--danger);
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1000;
  padding: 13px 20px;
  max-width: min(560px, 90vw);
  border-radius: 9px;
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  white-space: pre-wrap;
}
.toast.bad {
  background: var(--danger);
  color: #fff;
}
.advanced-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 225px);
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.code-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 15px;
  background: var(--bg);
  border-radius: 7px;
  font-size: 12px;
  max-height: 300px;
  overflow: auto;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
.login-form {
  width: min(420px, calc(100% - 48px));
  margin: auto;
  padding: 55px 0;
}
.login-form .brand {
  margin-bottom: 50px;
}
.login-form h1 {
  font-size: 27px;
}
.login-form > p {
  margin-top: 12px;
}
.login-form form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.login-form form .primary {
  padding: 12px;
}
.login-form > .small {
  margin-top: 27px;
  line-height: 1.8;
}
.login-intro {
  background: #173b36;
  color: #e6f3ee;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-intro > div {
  margin: auto 0;
}
.login-intro h2 {
  font-size: 39px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.035em;
  margin: 35px 0 22px;
}
.login-intro p {
  font-size: 14px;
  color: #b5d3c7;
  line-height: 1.9;
}
.brand-mark.large {
  width: 46px;
  height: 48px;
  font-size: 33px;
}
.login-intro > .small {
  color: #a5c4b9;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.row-actions {
  display: flex;
  gap: 8px;
}
.sensitive {
  background: var(--soft);
  padding: 18px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.sensitive code {
  user-select: all;
}
.dot-list {
  margin: 8px 0;
  padding-left: 18px;
}
.dot-list li {
  margin: 8px 0;
}
.skeleton {
  padding: 45px 0;
  color: var(--muted);
}
@media (min-width: 1500px) {
  main {
    padding: 40px 55px;
  }
  .metric {
    padding: 25px 30px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 192px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 12px;
  }
  .sidebar .brand {
    font-size: 16px;
  }
  main {
    padding: 26px 24px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .metric {
    padding: 18px 15px;
  }
  .page-header {
    align-items: flex-start;
  }
  .toolbar {
    justify-content: flex-end;
  }
  .rule {
    grid-template-columns: 1fr 1fr;
  }
  .rule .extras {
    flex-wrap: wrap;
  }
  .grid-even {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px;
  }
  .sidebar > .brand {
    font-size: 17px;
  }
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
    gap: 4px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 8px 11px;
  }
  .page-header {
    display: block;
  }
  .page-header .toolbar {
    justify-content: flex-start;
    margin-top: 17px;
  }
  main {
    padding: 22px 15px 40px;
  }
  h1 {
    font-size: 24px;
  }
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .metric-value {
    font-size: 25px;
  }
  .panel {
    padding: 17px;
  }
  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .inline-form label {
    width: 100%;
  }
  .login {
    display: block;
  }
  .login-intro {
    display: none;
  }
  .login-form {
    padding-top: 45px;
  }
  .login-form .brand {
    margin-bottom: 40px;
  }
  .rule {
    grid-template-columns: 1fr;
  }
  .rule .extras {
    display: grid;
  }
  .advanced-frame {
    height: 75vh;
  }
  .definition {
    grid-template-columns: 100px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
