:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #192c3f;
  background: #f3f6f9;
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.6;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
}
button,
input,
textarea {
  border-radius: 8px;
}
button {
  border: 1px solid #cbd7df;
  background: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover:not(:disabled) {
  background: #eef5f6;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #54b4b7;
  outline-offset: 3px;
}
input,
textarea {
  width: 100%;
  border: 1px solid #c8d5df;
  padding: 10px 12px;
  background: #fff;
  color: #192c3f;
  outline: none;
  font-size: 14px;
}
input:focus,
textarea:focus {
  border-color: #1c8387;
  box-shadow: 0 0 0 3px #1c83871a;
}
input:disabled,
textarea:disabled {
  background: #f5f7f9;
  color: #788590;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #344c61;
}
label input,
label textarea {
  display: block;
  margin-top: 6px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 10px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
p {
  margin-bottom: 14px;
}
.admin-shell {
  max-width: 1280px;
  margin: auto;
  padding: 0 36px;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe6ec;
  margin-bottom: 34px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #173e4d;
  color: #fff;
  width: 39px;
  height: 42px;
  border-radius: 11px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-subtitle {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #697f91;
  font-weight: 500;
  margin-top: 3px;
}
.environment-badge {
  border: 1px solid #cedee3;
  color: #456675;
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #197d82;
  margin-bottom: 9px;
}
.subtitle {
  color: #64788a;
  font-size: 13px;
  margin: 0;
}
.identity {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  max-width: 340px;
}
.identity strong {
  display: block;
  overflow-wrap: anywhere;
}
.identity small {
  display: block;
  color: #7b8c99;
  font-size: 10px;
  margin-top: 3px;
}
.identity-dot {
  flex: none;
  width: 7px;
  height: 7px;
  background: #3d9b88;
  border-radius: 100%;
  margin-top: 7px;
}
.preview-banner {
  display: flex;
  gap: 12px;
  border: 1px solid #d4e5e8;
  background: #edf6f7;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  color: #32646c;
  font-size: 12px;
}
.preview-banner > span {
  font-size: 24px;
  line-height: 1.3;
}
.preview-banner strong {
  font-size: 13px;
}
.preview-banner p {
  margin: 3px 0 0;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid #e0e7ed;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 10px #17354e04;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-number {
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #628494;
  border: 1px solid #dce7eb;
  border-radius: 5px;
  padding: 2px 5px;
  line-height: 1.6;
}
.muted {
  font-size: 12px;
  color: #748595;
}
.quiet-button {
  padding: 5px 9px;
  border-color: #e0e7ed;
  font-size: 11px;
  color: #647b8c;
  white-space: nowrap;
}
.search-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 19px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.primary-button {
  background: #1d7278;
  border-color: #1d7278;
  color: #fff;
  white-space: nowrap;
}
.primary-button:hover:not(:disabled) {
  background: #165f64;
}
.secondary-button {
  color: #225f69;
  border-color: #bed4da;
  background: #f9fcfc;
}
.demo-hint {
  font-size: 11px;
  margin-top: 9px;
  margin-bottom: 0;
  color: #80929e;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: #307980;
  font-size: 11px;
}
.user-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid #edf1f4;
}
.avatar {
  display: grid;
  place-items: center;
  background: #edf3f7;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  font-weight: 600;
  color: #668092;
  font-size: 21px;
}
.badge-row {
  display: flex;
  gap: 6px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 7px;
  background: #eef3f6;
  color: #5f778b;
  font-size: 10px;
  line-height: 1.6;
}
.badge.positive {
  background: #e9f5f0;
  color: #2a7d64;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin: 22px 0 0;
}
.facts dt,
.audit-result dt {
  font-size: 11px;
  color: #8191a0;
  margin-bottom: 3px;
}
.facts dd,
.audit-result dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.section-divider {
  height: 1px;
  background: #edf1f4;
  margin: 25px 0;
}
.impact-note {
  font-size: 12px;
  color: #6b8090;
  line-height: 1.8;
  margin-bottom: 20px;
  border-left: 2px solid #d6e5e9;
  padding-left: 12px;
}
.reset-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-help {
  font-size: 11px;
  font-weight: 400;
  color: #7c8c99;
  margin: 7px 0 16px;
}
.reset-fields > label {
  margin-top: 15px;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
}
.form-footer > span {
  font-size: 10px;
  color: #80929f;
}
.side-column {
  display: grid;
  gap: 18px;
}
.audit-card {
  padding: 23px;
}
.audit-card form {
  margin-top: 18px;
}
.full-width {
  width: 100%;
  margin-top: 12px;
}
.operation {
  border: 1px solid #dce6eb;
  border-radius: 8px;
  padding: 14px;
  margin: 18px 0;
  background: #f7fafb;
  font-size: 12px;
}
.operation.attention {
  border-color: #e8d7b2;
  background: #fffaf0;
  color: #8a6425;
}
.operation p {
  font-size: 10px;
  margin: 8px 0 4px;
  color: #7e8e9b;
}
.operation small {
  display: block;
  font-size: 11px;
  margin-top: 9px;
}
.request-id {
  font-size: 11px;
  overflow-wrap: anywhere;
  user-select: all;
}
.audit-result {
  border-top: 1px solid #e8eef2;
  margin-top: 20px;
  padding-top: 20px;
}
.audit-result dl {
  margin-bottom: 12px;
}
.audit-result dt {
  margin-top: 10px;
}
.audit-result dd {
  font-size: 12px;
}
.audit-result .technical-id {
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.safety-card {
  border: 1px solid #dce6eb;
  border-radius: 12px;
  background: #edf2f6;
  padding: 23px;
  color: #5b7285;
}
.safety-card h2 {
  font-size: 14px;
  color: #39586d;
}
.safety-card ul {
  padding-left: 18px;
  font-size: 12px;
  line-height: 2.2;
  margin: 13px 0;
}
.safety-card p {
  font-size: 11px;
  color: #7a8e9d;
  margin-bottom: 0;
}
.empty-state {
  text-align: center;
  padding: 72px 10px 64px;
  color: #8699a8;
}
.empty-state h3 {
  font-size: 14px;
  color: #6c8293;
  margin-top: 13px;
}
.empty-state p {
  font-size: 12px;
  margin-bottom: 0;
}
.empty-symbol {
  font-size: 39px;
  line-height: 1;
  color: #a6bec9;
}
.notice {
  padding: 12px 16px;
  border: 1px solid #d8e4eb;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notice.info {
  background: #f0f6fb;
  color: #456a88;
}
.notice.success {
  background: #edf8f2;
  color: #28744f;
  border-color: #cfe7d8;
}
.notice.warning {
  background: #fff8eb;
  color: #8d6725;
  border-color: #ecdab8;
}
.notice.error {
  background: #fff1f0;
  color: #ac4b49;
  border-color: #efd3d1;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  color: #94a3af;
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 28px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.auth-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.activation-card {
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid #bcd9dc;
  border-radius: 12px;
  background: #fff;
}
.activation-card.activation-focused {
  border-color: #1d7278;
  box-shadow: 0 0 0 3px #1c83871a;
}
.activation-card summary {
  cursor: pointer;
  color: #64788a;
  font-size: 14px;
  font-weight: 600;
}
.activation-card ol {
  padding-left: 22px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.9;
}
.auth-actions span {
  color: #64788a;
  font-size: 12px;
}
@media (max-width: 1000px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .admin-shell {
    padding: 0 24px;
  }
  .card {
    padding: 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 760px) {
  .admin-shell {
    padding: 0 16px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: 72px;
    margin-bottom: 24px;
  }
  .environment-badge {
    font-size: 9px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 27px;
  }
  .card {
    padding: 19px;
  }
  .preview-banner {
    padding: 13px;
  }
  .field-pair {
    grid-template-columns: 1fr;
  }
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .form-footer > span {
    text-align: right;
  }
  .empty-state {
    padding: 45px 4px;
  }
  .page-footer {
    gap: 12px;
    font-size: 9px;
  }
  .search-form button {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.feedback-console { margin-top: 28px; }
.feedback-filters { display: flex; align-items: end; gap: 12px; margin: 22px 0; }
.feedback-filters label { margin: 0; }
.feedback-console select { width: 100%; padding: 10px 12px; border: 1px solid #c8d5df; border-radius: 8px; color: #192c3f; background: white; font: inherit; font-size: 14px; }
.feedback-console select:focus-visible { outline: 3px solid #54b4b7; outline-offset: 2px; }
.feedback-workspace { display: grid; grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.7fr); gap: 26px; }
.feedback-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feedback-row { display: flex; flex-direction: column; text-align: left; gap: 9px; padding: 15px; font-weight: 400; }
.feedback-row.selected { border-color: #26888b; background: #f0f8f7; }
.feedback-row-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.feedback-row-heading strong { font-size: 12px; }
.feedback-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #506778; }
.feedback-row small { color: #80929e; font-size: 11px; }
.feedback-detail { border-left: 1px solid #e6edf1; padding-left: 26px; min-width: 0; overflow-wrap: anywhere; }
.feedback-detail h3 { font-size: 15px; margin: 0; }
.feedback-content { white-space: pre-wrap; overflow-wrap: anywhere; background: #f6f8fa; border: 1px solid #e7edf1; padding: 16px; border-radius: 10px; font-size: 13px; margin: 14px 0 20px; max-height: 420px; overflow-y: auto; }
.feedback-fields { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
.feedback-fields legend { font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.feedback-fields textarea { font-size: 14px; color: #192c3f; }
.feedback-confirm { display: flex; align-items: start; gap: 10px; background: #fff7e9; border-radius: 8px; padding: 12px; }
.feedback-confirm input { width: auto; margin-top: 5px; flex: none; }
.feedback-delivery > button { margin-top: 10px; }
@media (max-width: 800px) {
  .feedback-workspace { grid-template-columns: 1fr; }
  .feedback-detail { border-left: 0; border-top: 1px solid #e6edf1; padding-left: 0; padding-top: 24px; }
  .feedback-filters { flex-wrap: wrap; align-items: stretch; }
  .feedback-filters .grow { min-width: 180px; }
}
.management-console {
  --mg-blue: #3867e8;
  min-height: 100vh;
  background: #f3f5fa;
  color: #23314c;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
}
.management-console * { box-sizing: border-box; }
.management-console button, .management-console input, .management-console select { font: inherit; }
.management-console button { min-height: 35px; padding: 8px 13px; border: 1px solid #dfe5f0; border-radius: 8px; background: #fff; color: #41516d; cursor: pointer; font-size: 12px; }
.management-console button:hover { border-color: #9aafe8; background: #f7f9ff; }
.management-console button:disabled { opacity: .5; cursor: wait; }
.management-console button:focus-visible, .management-console input:focus-visible, .management-console select:focus-visible { outline: 3px solid #9cb6ff; outline-offset: 2px; }
.management-console h1, .management-console h2, .management-console h3, .management-console p { margin-top: 0; }
.management-console h1 { margin-bottom: 9px; font-size: 27px; letter-spacing: -.8px; }
.management-console h2 { font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
.management-console h3 { font-size: 14px; margin: 24px 0 12px; }
.management-console input, .management-console select { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid #dce3ef; border-radius: 7px; background: white; color: #293b58; font-size: 12px; }
.management-console label { display: grid; gap: 7px; color: #66758c; font-size: 11px; font-weight: 500; }
.management-console .mg-primary { background: var(--mg-blue); color: white; border-color: var(--mg-blue); }
.management-console .mg-primary:hover { background: #2855d2; color: white; }
.mg-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 235px; padding: 29px 16px 20px; background: linear-gradient(165deg, #131e34, #0d172b 70%); color: #cad5e9; display: flex; flex-direction: column; }
.mg-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 32px; color: white; text-decoration: none; }
.mg-brand-mark { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; font-weight: 800; background: linear-gradient(135deg, #5d87ff, #375cda); box-shadow: 0 5px 18px #010b2655; }
.mg-brand strong { display: block; font-size: 16px; letter-spacing: .4px; }
.mg-brand small { display: block; margin-top: 5px; color: #8293b0; font-size: 9px; letter-spacing: .9px; }
.mg-sidebar nav { display: grid; gap: 6px; }
.management-console .mg-sidebar nav button { display: flex; align-items: center; gap: 13px; min-height: 45px; border: 0; text-align: left; padding: 10px 14px; color: #9bacc7; background: transparent; border-radius: 9px; font-size: 13px; }
.mg-sidebar nav button > span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #52607944; border-radius: 6px; font-size: 10px; }
.management-console .mg-sidebar nav button:hover { background: #ffffff08; color: white; }
.management-console .mg-sidebar nav .mg-active { background: #355fdd; color: white; box-shadow: 0 7px 18px #0003; }
.mg-sidebar-user { margin-top: auto; border-top: 1px solid #ffffff0f; padding: 20px 8px 0; display: flex; gap: 10px; align-items: center; }
.mg-avatar { width: 33px; height: 33px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: #bdceff; background: #293e6b; font-weight: 700; }
.mg-sidebar-user strong { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; color: #d5dff0; }
.mg-sidebar-user small { display: block; margin-top: 4px; font-size: 10px; color: #7e90ae; }
.mg-main { margin-left: 235px; min-width: 0; }
.mg-topbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; min-height: 76px; padding: 16px 36px; background: #ffffffdd; border-bottom: 1px solid #e7ebf3; }
.mg-topbar strong { display: block; font-size: 13px; }
.mg-topbar small { display: block; margin-top: 4px; color: #8b97aa; font-size: 10px; }
.mg-topbar-actions { display: flex; gap: 9px; align-items: center; }
.mg-secure { display: flex; gap: 6px; align-items: center; padding-right: 10px; color: #6c7b94; font-size: 10px; }
.mg-secure i { width: 6px; height: 6px; border-radius: 50%; background: #31ae82; }
.mg-content { max-width: 1750px; margin: auto; padding: 33px 36px 24px; }
.mg-page-heading, .mg-panel-title { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.mg-page-heading { margin-bottom: 24px; }
.mg-page-heading p { color: #8692a6; font-size: 12px; margin-bottom: 0; }
.mg-eyebrow { color: #8a9cba !important; letter-spacing: 1.7px; font-size: 9px !important; font-weight: 700; margin-bottom: 10px !important; }
.mg-badge { background: #e7edfb; color: #5973ac; border: 1px solid #d8e2f7; padding: 6px 10px; border-radius: 20px; white-space: nowrap; font-size: 10px; }
.mg-page-stack { display: grid; gap: 20px; }
.mg-panel { background: white; border: 1px solid #e8ecf4; border-radius: 12px; box-shadow: 0 3px 13px #142c5304; padding: 23px; min-width: 0; }
.mg-data-panel { padding: 0; overflow: hidden; }
.mg-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 18px 20px; }
.mg-filters label { flex: 0 1 150px; }
.mg-filters .mg-grow { flex: 1 1 220px; }
.mg-filters button { min-height: 38px; }
.mg-heading-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: end; }
.mg-heading-actions label { width: 160px; }
.mg-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mg-metric { position: relative; min-height: 132px; display: flex; flex-direction: column; padding: 22px; background: white; border: 1px solid #e8ecf4; border-radius: 12px; overflow: hidden; }
.mg-metric:after { content: ''; position: absolute; top: 23px; right: 20px; width: 8px; height: 8px; border-radius: 3px; background: #6386ec; opacity: .55; }
.mg-metric:nth-child(3n + 2):after { background: #42ba99; }
.mg-metric:nth-child(3n):after { background: #a487dd; }
.mg-metric > span { color: #7b88a0; font-size: 11px; }
.mg-metric > strong { color: #243654; font-size: 29px; letter-spacing: -.8px; font-weight: 650; margin: 12px 0 8px; }
.mg-metric small { font-size: 10px; color: #9aa4b5; }
.mg-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mg-trend { display: flex; align-items: end; gap: 8px; height: 190px; padding-top: 14px; }
.mg-trend-column { flex: 1; min-width: 0; height: 100%; text-align: center; }
.mg-trend-track { height: 155px; background: #f2f5fc; border-radius: 4px; display: flex; align-items: end; overflow: hidden; }
.mg-trend-track span { display: block; width: 100%; background: linear-gradient(#8ea8fa, #4873ec); border-radius: 4px; }
.mg-trend-column small { display: inline-block; margin-top: 8px; color: #96a2b6; font-size: 8px; }
.mg-table-scroll { width: 100%; overflow: auto; }
.management-console table { border-collapse: collapse; width: 100%; text-align: left; font-size: 11px; }
.management-console th { background: #f9faff; color: #8a96ac; font-weight: 500; font-size: 10px; padding: 15px 18px; border-bottom: 1px solid #edf0f7; white-space: nowrap; }
.management-console td { padding: 16px 18px; color: #62728e; border-bottom: 1px solid #f0f2f7; max-width: 260px; overflow-wrap: anywhere; }
.management-console tr:last-child td { border-bottom: 0; }
.management-console tbody tr:hover { background: #fbfcff; }
.management-console td strong { color: #344663; font-weight: 600; }
.management-console .mg-link { padding: 3px 0; min-height: 25px; border: 0; color: #456fe0; background: transparent; white-space: nowrap; }
.mg-notice { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 18px; margin: 0 0 20px; border: 1px solid #e1e8f6; border-radius: 9px; background: #edf3ff; color: #627aab; font-size: 11px; line-height: 1.8; }
.mg-notice strong { color: #496491; font-weight: 600; }
.mg-error { border-color: #f2d9df; color: #ad5d6d; background: #fff3f5; }
.mg-empty, .mg-loading { padding: 50px 25px; color: #96a3b8; text-align: center; font-size: 12px; line-height: 1.8; }
.mg-muted { color: #8c99af; font-size: 11px; line-height: 1.9; margin-bottom: 0; }
.mg-pagination, .mg-pagination > div { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.mg-pagination > span { color: #8d9bb2; font-size: 10px; }
.mg-modal-backdrop { position: fixed; inset: 0; background: #111f3988; z-index: 40; padding: 32px 20px; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(3px); }
.mg-modal { width: min(980px, 100%); max-height: 90vh; overflow: auto; padding: 27px; border: 1px solid #e0e7f1; border-radius: 15px; background: #fff; box-shadow: 0 30px 90px #00163340; }
.mg-modal h2 { overflow-wrap: anywhere; margin-bottom: 8px; }
.mg-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 15px 0; }
.mg-facts > div { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eef1f7; font-size: 11px; }
.mg-facts dt { color: #95a0b2; }
.mg-facts dd { margin: 0; color: #3c4d68; white-space: pre-wrap; overflow-wrap: anywhere; }
.mg-config { background: #f4f6fb; color: #52627d; padding: 18px; border-radius: 8px; max-height: 370px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.mg-account-tools { margin-top: 24px; }
.management-console .mg-security-toggle { width: 100%; display: flex; justify-content: space-between; padding: 18px 22px; color: #536d9c; background: #eaf0fd; border-color: #dce5f8; }
.mg-account-tools .workspace-grid { margin-top: 20px; }
.mg-account-tools .card { background: #fff; }
.mg-footer { display: flex; justify-content: space-between; margin-top: 40px; padding: 22px 0 0; border-top: 1px solid #e6eaf2; color: #a3aec0; font-size: 9px; letter-spacing: .5px; }
.management-console .mg-menu-button, .mg-scrim { display: none; }
.mg-host-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; margin-top: 19px; }
.mg-host-card { border: 1px solid #e5eaf3; border-radius: 10px; padding: 18px; background: #fbfcff; min-width: 0; }
.mg-host-card.mg-host-selected { border-color: #8da9ef; box-shadow: 0 0 0 2px #eef3ff; }
.mg-host-card strong { color: #354b6e; font-size: 13px; }
.mg-host-card code, .mg-inspection-job code { color: #8190a9; font-size: 10px; overflow-wrap: anywhere; }
.mg-host-card dl { margin: 17px 0; font-size: 11px; }
.mg-host-card dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 6px 0; }
.mg-host-card dt { color: #8c9ab1; }
.mg-host-card dd { margin: 0; color: #546782; text-align: right; overflow-wrap: anywhere; }
.mg-state { display: inline-block; border-radius: 20px; padding: 3px 9px; background: #eef1f6; color: #8793a7; font-size: 10px; white-space: nowrap; }
.mg-state-good { color: #23836c; background: #e7f6ef; }
.mg-inspection-form { display: flex; align-items: end; gap: 12px; padding: 20px 0; }
.mg-inspection-form label { flex: 1; }
.mg-inspection-form button { min-height: 38px; }
.mg-inspection-decision { background: #f5f8ff; border: 1px solid #dce6fa; border-radius: 10px; padding: 19px; margin-bottom: 20px; }
.management-console .mg-inspection-decision h3 { margin-top: 0; }
.mg-inspection-decision .mg-two-column { margin-top: 16px; }
.mg-inspection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }
.mg-inspection-jobs { display: grid; gap: 15px; margin-top: 8px; }
.mg-inspection-job { border: 1px solid #e6ebf5; border-radius: 10px; padding: 19px; }
.mg-inspection-job > p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 9px 0 0; color: #8d9ab0; font-size: 10px; }
.mg-inspection-result { display: grid; gap: 6px; background: #f0f8f5; border-radius: 8px; padding: 14px 16px; font-size: 11px; color: #57796d; }
.mg-inspection-result small { font-size: 10px; color: #829c91; }
.mg-inspection-events { list-style: none; margin: 20px 0 0; padding: 0 0 0 14px; border-left: 2px solid #e3eaf8; }
.mg-inspection-events li { display: grid; gap: 4px; margin: 0 0 14px; color: #75869f; font-size: 10px; }
.mg-inspection-events strong { font-weight: 500; color: #526b91; }
@media (min-width: 1550px) { .mg-metric-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1150px) { .mg-sidebar { width: 205px; } .mg-main { margin-left: 205px; } .mg-content { padding: 25px 22px; } .mg-topbar { padding: 16px 22px; } .mg-secure { display: none; } }
@media (max-width: 820px) {
  .mg-sidebar { transform: translateX(-105%); transition: transform .2s; width: 235px; } .mg-sidebar.mg-open { transform: translateX(0); }
  .management-console .mg-scrim { display: block; position: fixed; inset: 0; z-index: 15; background: #101c3580; border: 0; border-radius: 0; }
  .mg-main { margin-left: 0; } .management-console .mg-menu-button { display: block; margin-right: 2px; }
  .mg-topbar { justify-content: flex-start; min-height: 66px; padding: 12px 16px; } .mg-topbar-actions { margin-left: auto; }
  .mg-content { padding: 23px 16px; } .mg-page-heading { gap: 10px; } .mg-page-heading h1 { font-size: 24px; }
  .mg-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mg-two-column, .mg-facts { grid-template-columns: 1fr; }
  .mg-modal-backdrop { padding: 15px 10px; } .mg-modal { padding: 20px; } .mg-account-tools .workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .mg-badge { display: none; } .mg-filters label { flex: 1 1 100%; } .mg-filters button { width: 100%; } .mg-metric { padding: 17px; min-height: 125px; } .mg-metric > strong { font-size: 24px; } .mg-pagination { align-items: start; flex-direction: column; } }
@media (max-width: 620px) { .mg-inspection-form { align-items: stretch; flex-direction: column; } .mg-host-grid { grid-template-columns: 1fr; } }

.ni-layout { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.4fr); gap: 24px; align-items: start; }
.ni-layout .mg-panel { padding: 24px; min-width: 0; }
.ni-layout h2 { margin-top: 0; }
.ni-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.ni-server-list { display: grid; gap: 12px; margin-top: 20px; }
.ni-server-list button { display: grid; grid-template-columns: 1fr auto; gap: 8px; text-align: left; padding: 16px; border: 1px solid #dfe6f1; border-radius: 12px; background: #fff; color: #27364b; }
.ni-server-list .ni-selected { border-color: #4b70d8; background: #f2f6ff; box-shadow: 0 0 0 1px #4b70d8; }
.ni-server-list small { grid-column: 1 / -1; color: #66758a; overflow-wrap: anywhere; }
.ni-details { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; padding: 16px; background: #f7f9fc; border-radius: 12px; }
.ni-details dt { color: #66758a; } .ni-details dd { margin: 0; }
.ni-ingresses { display: grid; gap: 12px; margin-top: 20px; }
.ni-ingresses article { border: 1px solid #e3e8ef; padding: 16px; border-radius: 12px; overflow-wrap: anywhere; }
.ni-ingresses p { margin: 8px 0; } .ni-ingresses small { color: #66758a; }
.ni-operation { grid-column: 1 / -1; }
.ni-operation form { display: grid; gap: 16px; max-width: 780px; }
.ni-operation label { display: grid; gap: 8px; }
.ni-operation input, .ni-operation textarea, .ni-operation select { width: 100%; padding: 12px; border: 1px solid #ccd6e4; border-radius: 8px; color: #27364b; background: white; font: inherit; }
.ni-operation textarea { font-family: ui-monospace, monospace; font-size: 13px; }
.ni-operation code { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .ni-layout { grid-template-columns: 1fr; } }
