@import url("data:text/css,");
:root {
  color-scheme: dark;
  --bg: #101314;
  --panel: #181c1d;
  --panel2: #1e2324;
  --line: #2b3132;
  --muted: #8e9b98;
  --text: #edf2ef;
  --accent: #b6f2cf;
  --green: #8bd7ac;
  --warn: #e4ba7c;
  --red: #f19393;
  --side: 222px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  border-radius: 9px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
button:hover {
  background: #2b3331;
  border-color: #526258;
}
button:active {
  transform: translateY(1px);
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #163526;
  font-weight: 650;
}
button.primary:hover {
  background: #d3ffe4;
}
button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
button.danger {
  color: var(--red);
}
button.icon-btn {
  padding: 8px;
}
svg.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
input,
textarea,
select {
  width: 100%;
  background: #121617;
  border: 1px solid #363e3d;
  border-radius: 8px;
  color: var(--text);
  padding: 11px 13px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #b6f2cf12;
}
textarea {
  resize: vertical;
  min-height: 104px;
}
input::placeholder,
textarea::placeholder {
  color: #606d69;
}
label {
  display: block;
}
small,
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--side);
  background: #15191a;
  border-right: 1px solid var(--line);
  padding: 30px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px 33px;
}
.brand img {
  width: 35px;
  height: 35px;
}
.brand strong {
  font-size: 21px;
  letter-spacing: -0.8px;
}
.brand span {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
  display: block;
  margin-top: -3px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 15px 14px 9px;
  color: #6f7c78;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  border: 0;
  border-radius: 8px;
  justify-content: flex-start;
  background: transparent;
  color: #a2afab;
  padding: 12px 14px;
  gap: 13px;
  font-size: 13px;
}
.nav button.active {
  background: #b6f2cf12;
  color: var(--accent);
}
.nav button.active:after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: auto;
}
.nav button:hover {
  background: #242c29;
}
.sidebar-bottom {
  margin-top: auto;
}
.server-tag {
  margin: 12px 5px;
  padding: 13px;
  background: #1b2120;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.server-tag .status {
  font-size: 11px;
}
.server-tag .mono {
  display: block;
  color: #6f8078;
  margin-top: 5px;
}
.user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 6px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #384a40;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.user strong {
  font-size: 11px;
}
.user small {
  display: block;
  font-size: 10px;
}
.user button {
  margin-left: auto;
}
.main {
  margin-left: var(--side);
  padding: 28px 36px 80px;
  max-width: 1900px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 29px;
  font-size: 12px;
  color: var(--muted);
}
.topbar .crumb {
  display: flex;
  align-items: center;
  gap: 13px;
}
.topbar .right {
  display: flex;
  gap: 17px;
  align-items: center;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #707d77;
  display: inline-block;
}
.dot.green {
  background: var(--accent);
  box-shadow: 0 0 9px #b6f2cf44;
}
.dot.red {
  background: var(--red);
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
  gap: 16px;
}
.heading h1 {
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.8px;
  margin: 5px 0;
}
.heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.badge,
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  border-radius: 5px;
}
.badge {
  padding: 3px 8px;
  background: #b6f2cf12;
  color: var(--accent);
  border: 1px solid #b6f2cf22;
}
.badge.warn {
  background: #e4ba7c10;
  color: var(--warn);
  border-color: #e4ba7c28;
}
.badge.error {
  background: #f1939310;
  color: var(--red);
  border-color: #f1939328;
}
.badge.neutral {
  background: #ffffff06;
  color: #a4b1ac;
  border-color: var(--line);
}
.hero {
  position: relative;
  background: linear-gradient(108deg, #202c26 0%, #1d2923 38%, #18201d 100%);
  border: 1px solid #35493c;
  border-radius: 13px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 222px;
  margin-bottom: 23px;
}
.hero-copy {
  padding: 28px 32px;
  z-index: 1;
}
.hero h2 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 14px 0 11px;
}
.hero h2 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  color: #9fb4a7;
  font-size: 12px;
  max-width: 330px;
  margin: 0 0 22px;
}
.hero .eyebrow {
  color: #8caa98;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 23px;
  background-image: radial-gradient(#a2d7b515 1px, transparent 1px);
  background-size: 16px 16px;
}
.route-visual {
  width: 100%;
  max-width: 510px;
  position: relative;
}
.route-label {
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
  color: #678b75;
  margin-bottom: 22px;
}
.route-line {
  display: flex;
  align-items: center;
  justify-content: center;
}
.route-node {
  width: 79px;
  flex-shrink: 0;
  text-align: center;
}
.node-box {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 12px;
  background: #23362a;
  border: 1px solid #51705b;
  box-shadow: 0 5px 30px #0b160c50;
  color: #b9e9cd;
}
.node-box svg {
  width: 25px;
  height: 25px;
}
.node-box.center {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a3b27;
  box-shadow: 0 0 30px #b6f2cf18;
}
.route-node span {
  display: block;
  font-size: 11px;
  color: #adc6b7;
  margin-top: 9px;
}
.connector {
  position: relative;
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    #7faa8933 0 5px,
    transparent 5px 10px
  );
  margin-top: -25px;
}
.connector:after {
  content: "";
  position: absolute;
  left: 30%;
  width: 24px;
  height: 1px;
  background: #b6f2cf;
  box-shadow: 0 0 6px #b6f2cf;
}
.connector small {
  position: absolute;
  top: -24px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 9px;
  color: #8aaf97;
}
.route-bottom {
  border: 1px dashed #55776266;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  height: 27px;
  margin: 8px 40px 0;
  position: relative;
}
.route-bottom span {
  position: absolute;
  top: 13px;
  background: #1c2820;
  padding: 0 9px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  color: #7d9d88;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 23px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px 21px;
  position: relative;
  overflow: hidden;
}
.metric-label {
  font-size: 11px;
  color: #a1aea8;
  display: flex;
  gap: 7px;
  align-items: center;
}
.metric-label svg {
  width: 14px;
  height: 14px;
}
.metric .value {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-top: 10px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.metric .value small {
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 5px;
}
.metric-foot {
  font-size: 10px;
  color: #74877b;
  margin-top: 9px;
}
.metric-icon {
  position: absolute;
  right: 20px;
  bottom: 26px;
  color: #4e7860;
}
.metric-icon svg {
  width: 46px;
  height: 25px;
  stroke-width: 1;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 20px;
  margin-bottom: 23px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.card-head {
  padding: 20px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-head h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0;
}
.card-head small {
  font-size: 10px;
}
.card-body {
  padding: 0 23px 23px;
}
.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}
.legend .dot {
  width: 5px;
  height: 5px;
}
.chart {
  height: 180px;
  position: relative;
  padding-top: 10px;
}
.chart svg {
  width: 100%;
  height: 145px;
  overflow: visible;
}
.chart .axis {
  display: flex;
  justify-content: space-between;
  margin-left: 23px;
  font-size: 9px;
  color: #6b7b72;
}
.chart .empty-chart {
  position: absolute;
  top: 63px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #77877e;
}
.chart-note {
  color: #687a6e;
  font-size: 10px;
  margin-top: 5px;
}
.service-row {
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child {
  border-bottom: 0;
}
.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #27332c;
  color: #acc4b6;
}
.service-info strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.service-info small {
  font-size: 10px;
  display: block;
}
.service-row > .badge {
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
thead {
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #7c8b83;
  background: #141819;
}
th {
  padding: 11px 20px;
  font-weight: 400;
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid #282e2e;
  font-size: 11px;
  color: #c1cec7;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr[data-detail] {
  cursor: pointer;
}
tbody tr[data-detail]:hover {
  background: #ffffff03;
}
.file-cell {
  max-width: 330px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-cell strong {
  font-weight: 450;
}
.file-cell small {
  display: block;
  font-size: 9px;
  color: #6e8175;
  margin-top: 3px;
}
.card-foot {
  padding: 12px 23px;
  color: #6f8175;
  font-size: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.empty {
  padding: 43px 20px;
  text-align: center;
  color: #74867a;
  white-space: normal;
}
.empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  opacity: 0.7;
}
.empty strong {
  display: block;
  font-size: 12px;
  font-weight: 450;
  color: #9bb0a1;
}
.empty p {
  font-size: 11px;
  margin: 6px auto;
  max-width: 460px;
}
.info-strip {
  border: 1px solid #b6f2cf22;
  background: #b6f2cf06;
  border-radius: 9px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 17px;
  margin-bottom: 22px;
  font-size: 12px;
  color: #a7c6b2;
}
.info-strip.warn {
  color: var(--warn);
  background: #e4ba7c06;
  border-color: #e4ba7c22;
}
.info-strip svg {
  margin-top: 2px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
}
.subnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.subnav button {
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.subnav button.active {
  background: #b6f2cf0b;
  color: var(--accent);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 2px 24px 27px;
}
.field {
  min-width: 0;
}
.field > label {
  font-size: 12px;
  color: #c6d3cb;
  margin-bottom: 8px;
}
.field p {
  font-size: 10px;
  line-height: 1.7;
  color: #7d9184;
  margin: 8px 0 0;
}
.field.full {
  grid-column: 1/-1;
}
.field .mono {
  font-size: 10px;
  color: #627b69;
  margin-top: 5px;
}
.field textarea {
  font-size: 12px;
}
.switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.switch-field .switch {
  flex-shrink: 0;
}
.switch {
  display: inline-block;
  position: relative;
  width: 35px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #3a4340;
  cursor: pointer;
}
.switch span:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  height: 14px;
  width: 14px;
  background: #91a098;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch input:checked + span {
  background: #7fc79b;
}
.switch input:checked + span:before {
  transform: translateX(15px);
  background: #152c1d;
}
.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.savebar {
  position: fixed;
  bottom: 0;
  left: var(--side);
  right: 0;
  padding: 15px 37px;
  background: #19201eef;
  backdrop-filter: blur(15px);
  border-top: 1px solid #344b3c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 25;
  font-size: 12px;
}
.savebar small {
  display: block;
  font-size: 10px;
  color: #849d8d;
}
.section-title {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-form input {
  flex: 1;
}
.result-path {
  margin: 15px 0 0;
  padding: 13px;
  background: #101914;
  border: 1px dashed #3d614a;
  border-radius: 7px;
  word-break: break-all;
  color: var(--accent);
}
.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.policy-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  display: flex;
  gap: 17px;
}
.cloud-mark {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 650;
  color: var(--accent);
  border-radius: 12px;
  border: 1px solid #455b49;
  background: #25362a;
}
.cloud-mark.baidu {
  color: #a8bce4;
  background: #232c3b;
  border-color: #465572;
}
.policy-card h3 {
  margin: 0;
  font-size: 13px;
}
.policy-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 12px;
}
.rule {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  margin: 0 23px 13px;
  background: #151a18;
}
.rule-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.rule-num {
  color: #6e8f79;
  font-size: 10px;
  letter-spacing: 1px;
}
.rule-head input {
  background: transparent;
  border: 0;
  font-size: 12px;
  padding: 0;
}
.rule-head .actions {
  margin-left: auto;
  flex-wrap: nowrap;
}
.rule-fields {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 12px;
}
.rule-fields label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.rule-fields input,
.rule-fields select {
  font-size: 11px;
  padding: 9px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.search {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.search input {
  padding-left: 38px;
  font-size: 12px;
}
.search svg {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--muted);
}
.toolbar select {
  width: auto;
  font-size: 12px;
}
.logs {
  background: #0d1110;
  min-height: 470px;
  max-height: 65vh;
  overflow: auto;
  padding: 13px 19px;
}
.log-line {
  display: grid;
  grid-template-columns: 76px 54px 60px 1fr;
  gap: 9px;
  font-size: 11px;
  line-height: 1.8;
  font-family: ui-monospace, SFMono-Regular, monospace;
  padding: 5px 0;
  border-bottom: 1px solid #26362944;
}
.log-time {
  color: #4e6858;
}
.log-kind {
  color: #819a89;
}
.log-level {
  color: #87b299;
}
.log-level.error {
  color: var(--red);
}
.log-level.warn {
  color: var(--warn);
}
.log-message {
  color: #acbfb0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 23px;
}
.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 22px;
  padding: 12px 0;
  font-size: 12px;
}
.kv-row span {
  color: var(--muted);
}
.kv-row strong {
  font-weight: 450;
  text-align: right;
  word-break: break-all;
}
.kv-row:last-child {
  border: 0;
}
.revision {
  display: flex;
  align-items: center;
  padding: 16px 23px;
  gap: 16px;
  border-top: 1px solid var(--line);
}
.revision .version {
  background: #293e2f;
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
}
.revision strong {
  font-size: 12px;
  font-weight: 450;
}
.revision small {
  display: block;
  font-size: 10px;
}
.revision button {
  margin-left: auto;
  font-size: 11px;
}
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.doc-block {
  padding: 24px;
}
.doc-block h3 {
  margin: 0 0 13px;
  font-size: 15px;
  font-weight: 500;
}
.doc-block p,
.doc-block li {
  font-size: 12px;
  color: #9faf9f;
  line-height: 1.9;
}
.doc-block ol {
  padding-left: 19px;
}
.code {
  background: #101613;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #aed0b8;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 23px;
}
.step {
  padding: 17px 20px;
  border: 1px solid #35553e;
  border-radius: 9px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #b6f2cf04;
}
.step.failed {
  border-color: #683d36;
  background: #f1939305;
}
.step .step-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #b6f2cf10;
}
.step.failed .step-icon {
  color: var(--red);
  background: #f1939310;
}
.step strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.step p {
  font-size: 11px;
  margin: 5px 0 0;
  color: var(--muted);
  word-break: break-all;
}
.step small {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
}
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: #050a07b0;
  backdrop-filter: blur(5px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow: auto;
  background: #1b2220;
  border: 1px solid #3b5041;
  border-radius: 15px;
  box-shadow: 0 30px 100px #0008;
}
.modal.wide {
  max-width: 830px;
}
.modal-head {
  padding: 21px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
}
.modal-body {
  padding: 25px 26px;
}
.modal-body p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0;
}
.modal-footer {
  padding: 17px 26px;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}
.modal textarea.code {
  width: 100%;
  min-height: 380px;
  outline: none;
  line-height: 1.7;
}
.modal .kv-row {
  font-size: 11px;
}
.toast {
  padding: 13px 19px;
  border-radius: 9px;
  background: #274532;
  border: 1px solid #548662;
  color: #d4f8df;
  box-shadow: 0 10px 30px #0004;
  font-size: 12px;
  max-width: 420px;
}
.toast.error {
  background: #462c29;
  border-color: #825149;
  color: #f6b1a6;
}
#toasts {
  position: fixed;
  bottom: 78px;
  right: 27px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 90;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-art {
  display: flex;
  flex-direction: column;
  padding: 50px 8%;
  background: radial-gradient(
    ellipse at 50% 60%,
    #29432d 0,
    #18271e 35%,
    #111915 78%
  );
  border-right: 1px solid #344839;
  position: relative;
  overflow: hidden;
}
.login-art .brand {
  padding: 0;
}
.login-art .big-title {
  margin-top: auto;
  margin-bottom: 65px;
  z-index: 1;
}
.login-art h1 {
  font-size: 52px;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -2px;
  margin: 17px 0;
}
.login-art h1 span {
  color: var(--accent);
}
.login-art p {
  color: #829f89;
  font-size: 13px;
  max-width: 360px;
}
.login-art .route-visual {
  margin: 10px auto auto;
}
.login-art .foot {
  color: #55715c;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 70px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form {
  max-width: 355px;
  width: 100%;
}
.login-form h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 12px 0 5px;
}
.login-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}
.login-form .field {
  margin-bottom: 19px;
}
.login-form button.primary {
  width: 100%;
  margin-top: 8px;
}
.login-form .login-note {
  font-size: 10px;
  text-align: center;
  margin-top: 24px;
  color: #6b7f70;
}
.login-error {
  font-size: 12px;
  color: var(--red);
  margin: 10px 0;
}
.initial {
  height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .main {
    padding-left: 48px;
    padding-right: 48px;
  }
  .hero {
    min-height: 245px;
  }
  .hero h2 {
    font-size: 35px;
  }
  .metric {
    padding: 24px;
  }
  .hero-visual {
    padding: 32px 55px;
  }
}
@media (max-width: 1100px) {
  :root {
    --side: 188px;
  }
  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
  .main {
    padding: 22px 24px 80px;
  }
  .hero-copy {
    padding: 25px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
  }
  .route-node {
    width: 65px;
  }
  .route-node span {
    font-size: 9px;
  }
  .node-box {
    width: 44px;
    height: 44px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric .value {
    font-size: 27px;
  }
  .metric-icon {
    display: none;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.4fr) minmax(235px, 1fr);
  }
  .rule-fields {
    grid-template-columns: 1fr 1fr;
  }
  .settings-layout {
    grid-template-columns: 155px 1fr;
    gap: 15px;
  }
  .field-grid {
    gap: 19px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .heading .actions button {
    font-size: 11px;
  }
}
@media (max-width: 800px) {
  :root {
    --side: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 222px;
    transition: transform 0.2s;
    box-shadow: 20px 0 50px #0008;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    padding: 19px 18px 90px;
  }
  .mobile-menu {
    display: flex;
  }
  .topbar {
    padding-bottom: 15px;
    margin-bottom: 22px;
  }
  .topbar .right .mono {
    display: none;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 23px;
  }
  .heading .actions {
    justify-content: flex-end;
  }
  .heading .actions button {
    padding: 8px 10px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 25px;
  }
  .hero-visual {
    padding: 5px 30px 30px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .route-label {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .subnav {
    flex-direction: row;
    overflow: auto;
    margin-bottom: 8px;
  }
  .subnav button {
    flex-shrink: 0;
    font-size: 11px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .policy-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    max-width: none;
    min-width: 180px;
  }
  .log-line {
    grid-template-columns: 65px 44px 1fr;
    font-size: 10px;
  }
  .log-kind {
    display: none;
  }
  .savebar {
    padding: 13px 18px;
  }
  .savebar .actions {
    gap: 5px;
  }
  .savebar button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 30px;
  }
  .login-art .big-title {
    margin: 35px 0 15px;
  }
  .login-art h1 {
    font-size: 32px;
  }
  .login-art .route-visual,
  .login-art .foot {
    display: none;
  }
  .login-form-wrap {
    padding: 32px;
  }
  .login-art .big-title p {
    margin: 0;
  }
  .overlay-backdrop {
    padding: 12px;
  }
  .modal-body {
    padding: 20px;
  }
  .rule {
    margin: 0 15px 12px;
  }
  .card-head {
    padding: 18px;
  }
  .card-body {
    padding: 0 18px 18px;
  }
}
