@charset "UTF-8";
:root {
  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #24313d;
  background: #f4f6f8;
  font-synthesis: none;
  font-size: 14px;
  --ink: #1c2a35;
  --muted: #6b7785;
  --line: #e4e9ed;
  --lime: #ccf46b;
  --midnight: #141e28;
  --green: #287653;
  --danger: #b13b44;
  --shadow: 0 12px 38px #17283812;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1.05px;
  line-height: 1.25;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  line-height: 1.65;
}
small {
  line-height: 1.55;
  color: var(--muted);
}
code,
.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
code {
  color: #526170;
}
ul,
ol {
  padding-left: 22px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #7a9c2f;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #85a64b;
  box-shadow: 0 0 0 3px #c6e99342;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--lime);
  padding: 12px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.boot {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #7b8891;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: #3d4a55;
  min-height: 38px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  background: #f4f7f3;
  border-color: #b9c4bc;
}
.button.primary {
  background: var(--midnight);
  color: white;
  border-color: var(--midnight);
}
.button.primary:hover:not(:disabled) {
  background: #2d414f;
}
.button.lime {
  background: var(--lime);
  color: #273816;
  border-color: var(--lime);
}
.button.lime:hover {
  background: #dcffa1;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: #4a6470;
}
.button.ghost:hover:not(:disabled) {
  background: #edf2f4;
}
.button.danger {
  background: #ac3440;
  border-color: #ac3440;
  color: white;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 7px;
}
.icon-button:hover {
  background: #8193a020;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #3f6535;
  font-weight: 600;
}
.text-link:hover,
.table-link:hover {
  color: #56862b;
  text-decoration: underline;
}
.table-link {
  font-weight: 600;
  color: #35566b;
}
.truncate {
  display: block;
  max-width: 245px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.shell {
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--midnight);
  color: #e9eef0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 32px 18px 18px;
}
.brand-link {
  display: block;
  padding: 0 12px 37px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.8px;
  line-height: 1.15;
  font-weight: 650;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3.6px;
  margin-top: 5px;
  font-weight: 600;
  color: #8b9ca7;
}
.brand-mark {
  display: block;
  width: 34px;
  height: 37px;
  position: relative;
  color: var(--lime);
}
.brand-mark span {
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.mark-top {
  width: 18px;
  height: 3px;
  top: 3px;
  left: 8px;
}
.mark-bar {
  width: 32px;
  height: 4px;
  top: 12px;
  left: 1px;
}
.mark-stem {
  width: 5px;
  height: 23px;
  top: 12px;
  left: 15px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.45px;
  font-weight: 600;
  color: #6e8592;
  padding: 4px 14px 16px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #aabac6;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: #ffffff08;
  color: white;
}
.nav-item.active {
  color: var(--lime);
  background: #ccf46b13;
}
.nav-item.active svg {
  stroke-width: 2;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 45px;
}
.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #8296a3;
  font-size: 10px;
  padding: 16px 10px 23px;
  line-height: 1.6;
}
.sidebar-note small {
  display: block;
  font-size: 10px;
  color: #617581;
}
.operator-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff0d;
  padding-top: 20px;
}
.operator-card strong {
  font-size: 11px;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 114px;
}
.operator-card small {
  display: block;
  font-size: 10px;
  color: #8294a1;
}
.avatar {
  display: inline-flex;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf1ec;
  color: #576c48;
  font-size: 12px;
  font-weight: 650;
}
.operator-avatar {
  background: #293942;
  color: #c6dbbb;
}
.logout-button {
  color: #869ba8;
  width: 28px;
}
.workspace {
  margin-left: 238px;
  min-width: 0;
}
.topbar {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid #e4e9ed;
  background: #fff;
  gap: 20px;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 330px;
  color: #8c979f;
  background: transparent;
  border: 0;
  padding: 10px 0;
  font-size: 12px;
  text-align: left;
}
.header-search svg {
  color: #778793;
}
.header-search kbd {
  margin-left: 22px;
  font:
    10px "Segoe UI",
    sans-serif;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8f9fa;
  padding: 3px 5px;
  color: #93a0a8;
}
.header-context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6e7d89;
  font-size: 10px;
  white-space: nowrap;
}
.context-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8c9ca7;
}
.main {
  padding: 36px 38px 50px;
  max-width: 1660px;
  margin: auto;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  margin-bottom: 11px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.page {
  animation: page-in 0.2s ease;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 22px;
  border-bottom: 1px solid #eff2f4;
}
.panel-head h2 {
  font-size: 13px;
}
.panel-content {
  padding: 20px 22px;
}
.panel-content > .notice {
  margin-bottom: 20px;
}
.overview-banner {
  background: var(--midnight);
  color: white;
  padding: 27px 29px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.overview-banner .eyebrow {
  color: #93b274;
  font-size: 9px;
  letter-spacing: 1.6px;
  margin-bottom: 12px;
}
.overview-banner h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
.overview-banner p {
  color: #a6b6c1;
  font-size: 12px;
  margin-top: 8px;
  max-width: 590px;
}
.overview-banner .button {
  flex-shrink: 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.metric-card {
  display: flex;
  flex-direction: column;
  min-height: 158px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.metric-card:hover {
  border-color: #adc39a;
  box-shadow: var(--shadow);
}
.metric-card svg {
  color: #a6b5bb;
}
.metric-label {
  font-size: 11px;
  color: #677683;
  font-weight: 500;
}
.metric-value {
  font-size: 33px;
  letter-spacing: -1.1px;
  font-weight: 600;
  line-height: 1.3;
  margin: 16px 0 11px;
}
.metric-card.attention .metric-value {
  color: #aa6332;
}
.metric-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #8a969e;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.incident-list-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 21px;
  border-bottom: 1px solid #eef1f3;
}
.incident-list-item:last-child {
  border-bottom: 0;
}
.incident-list-item:hover {
  background: #fbfcfa;
}
.incident-symbol {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff4e9;
  border-radius: 9px;
  color: #b67e43;
  flex-shrink: 0;
}
.incident-list-item strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.incident-list-item small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.telemetry {
  padding: 3px 20px;
}
.telemetry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border-bottom: 1px solid #edf1f3;
}
.telemetry-row:last-child {
  border: 0;
}
.telemetry-icon {
  color: #93a1a9;
}
.telemetry-row strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.telemetry-row small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.no-data {
  background: #f3f5f6;
  color: #8e9aa2;
  border: 1px dashed #dce3e7;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.telemetry-value {
  font-size: 13px;
  font-weight: 600;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 19px;
}
.status-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #f8fafb;
  border-radius: 7px;
}
.status-tile strong {
  font-size: 18px;
  font-weight: 600;
}
.status-tile:hover {
  background: #f0f5ec;
}
.updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #96a1a8;
  font-size: 10px;
  margin-top: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.status-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge.positive {
  color: #387653;
  background: #eef7ef;
}
.badge.negative {
  color: #b14c54;
  background: #fdf0f0;
}
.badge.warning {
  color: #967132;
  background: #fdf6e8;
}
.badge.neutral {
  color: #7c8792;
  background: #f0f3f5;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eef3f6;
  border: 1px solid #e2e9ed;
  color: #627582;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.notice svg {
  margin-top: 1px;
}
.notice.warning {
  background: #fff8ea;
  border-color: #efe0bc;
  color: #8f702d;
}
.notice.error {
  background: #fff2f2;
  border-color: #f1d6d7;
  color: #9f4950;
}
.notice.success {
  background: #eff8ed;
  border-color: #d4e6cd;
  color: #507643;
}
.page > .notice {
  margin-bottom: 20px;
}
.loading {
  padding: 55px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #82929d;
  font-size: 12px;
  min-height: 140px;
}
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #dde5e8;
  border-top-color: #71914c;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
.empty {
  text-align: center;
  padding: 44px 25px;
  color: #91a0aa;
}
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f7f7;
  border: 1px solid #edf1f1;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  margin-bottom: 15px;
  color: #9faeb4;
}
.empty h3 {
  font-size: 13px;
  color: #687a85;
  margin-bottom: 8px;
}
.empty p {
  font-size: 11px;
  max-width: 360px;
  margin: auto;
  line-height: 1.8;
}
.error-state {
  padding: 46px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  background: white;
  border: 1px solid #eedee0;
  border-radius: 12px;
  color: #95515a;
}
.error-state p {
  font-size: 12px;
  max-width: 600px;
}
.error-state code {
  font-size: 10px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: white;
  flex: 1;
  min-width: 210px;
  color: #97a4ad;
}
.search-field:focus-within {
  border-color: #85a64b;
  box-shadow: 0 0 0 3px #c6e99342;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 10px 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  font-size: 12px;
}
.search-field input:focus {
  box-shadow: none;
}
input,
select,
textarea {
  border: 1px solid #dce3e8;
  background: white;
  color: #354754;
  padding: 10px 11px;
  border-radius: 7px;
  width: 100%;
  font-size: 12px;
  line-height: 1.4;
}
input::placeholder,
textarea::placeholder {
  color: #a0a9af;
}
textarea {
  resize: vertical;
  min-height: 64px;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f6f8fa;
  color: #87949f;
}
.filters select {
  width: auto;
  min-width: 140px;
}
.filters .button {
  min-height: 36px;
}
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
th {
  font-size: 9px;
  font-weight: 600;
  color: #87959e;
  background: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  padding: 13px 20px;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-top: 1px solid #edf1f3;
  color: #627380;
  vertical-align: middle;
  line-height: 1.5;
}
tbody tr:hover {
  background: #fbfcfd;
}
.entity-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}
.entity-link strong {
  display: block;
  color: #344a59;
  font-size: 11px;
  font-weight: 600;
}
.entity-link small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.entity-link:hover strong {
  text-decoration: underline;
  color: #578434;
}
.cell-sub {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  max-width: 230px;
  overflow-wrap: anywhere;
}
.pagination {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #8795a0;
}
.pagination .button {
  font-size: 10px;
  min-height: 31px;
  padding: 6px 10px;
}
.role-pill {
  background: #eff2ec;
  border: 1px solid #e3e8dd;
  padding: 5px 8px;
  border-radius: 5px;
  color: #607348;
  font-size: 10px;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.dialog-head h2 {
  font-size: 18px;
  line-height: 1.4;
}
.dialog-head p {
  font-size: 11px;
  color: #8d9aa3;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.dialog-head .icon-button {
  margin: -3px -7px 0 0;
  color: #8795a0;
  flex-shrink: 0;
}
.dialog-body {
  padding: 25px 26px;
}
.modal {
  padding: 0;
  border: 1px solid #e3e9ed;
  border-radius: 14px;
  max-width: calc(100vw - 32px);
  width: 580px;
  max-height: 90dvh;
  box-shadow: 0 35px 100px #0e1b2b3d;
  color: var(--ink);
  overflow: auto;
}
.modal.wide {
  width: 760px;
}
dialog::backdrop {
  background: #101b2b70;
  backdrop-filter: blur(3px);
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 660px;
  max-width: min(94vw, 800px);
  border: 0;
  border-left: 1px solid #dfe6ec;
  padding: 0;
  box-shadow: -20px 0 80px #10203024;
  color: var(--ink);
  overflow: auto;
}
.drawer[open] {
  animation: drawer-in 0.2s ease;
}
.drawer::backdrop {
  background: #10213345;
  backdrop-filter: none;
}
.detail-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.detail-title {
  font-size: 20px;
  line-height: 1.4;
}
.detail-id {
  display: block;
  word-break: break-all;
  border-radius: 6px;
  padding: 11px 12px;
  background: #f5f7f8;
}
.detail-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}
.detail-identity > .badge {
  margin-left: auto;
}
.detail-identity h3 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.detail-identity p {
  font-size: 11px;
  color: #85939e;
  margin-top: 4px;
}
.avatar.large {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 19px;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 20px 22px;
}
.info-grid > div {
  min-width: 0;
}
.info-grid dt {
  font-size: 10px;
  color: #8d99a2;
  margin-bottom: 7px;
}
.info-grid dd {
  margin: 0;
  font-size: 12px;
  color: #435865;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.info-grid dd code {
  font-size: 11px;
}
.detail-stack > .badge {
  align-self: flex-start;
}
.notes {
  padding: 4px 20px;
}
.note {
  padding: 16px 0;
  border-bottom: 1px solid #eaf0f3;
}
.note:last-child {
  border-bottom: 0;
}
.note p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note small {
  display: block;
  margin-top: 9px;
  font-size: 10px;
}
.linked-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
  max-height: 300px;
  overflow: auto;
}
.technical {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.technical summary {
  font-size: 11px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
  background: #f8fafb;
}
.json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 17px;
  background: #f5f7f9;
  color: #677c8c;
  font:
    11px/1.8 Consolas,
    monospace;
  max-height: 440px;
  overflow: auto;
}
.timeline {
  list-style: none;
  padding: 22px;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 25px 22px;
  border-left: 1px solid #dce5e8;
  margin-left: 5px;
}
.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -4px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ba76b;
  box-shadow: 0 0 0 4px white;
}
.timeline time {
  font-size: 9px;
  color: #8c9ba5;
}
.timeline p {
  font-size: 11px;
  color: #627785;
  margin-top: 8px;
}
.timeline small {
  font-size: 9px;
  color: #95a1a9;
  display: block;
  margin-top: 7px;
}
.action-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field-label {
  font-size: 11px;
  font-weight: 600;
  color: #4f6472;
}
.field small {
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 17px;
}
.form-actions {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 3px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.checkbox-label input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #5e8138;
  flex-shrink: 0;
}
.change-preview {
  border: 1px solid #dce6d8;
  background: #f8fbf5;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 11px;
  color: #68815a;
  line-height: 1.75;
}
.change-preview strong {
  color: #516c42;
}
.change-preview p {
  margin-top: 7px;
}
.change-preview ul {
  padding-left: 17px;
  margin-bottom: 0;
}
.policies-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}
.function-list {
  padding: 0 21px;
}
.function-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid #ebeff2;
  cursor: pointer;
}
.function-toggle:last-child {
  border: 0;
}
.function-toggle strong {
  font-size: 12px;
  display: block;
}
.function-toggle small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.switch {
  display: inline-flex;
  position: relative;
  width: 36px;
  height: 21px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 36px;
  height: 21px;
  margin: 0;
  cursor: pointer;
}
.switch-track {
  height: 21px;
  width: 36px;
  background: #dfe5e9;
  border-radius: 15px;
  pointer-events: none;
  transition: background 0.15s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.15s;
}
.switch input:checked + .switch-track {
  background: #c39248;
}
.switch input:checked + .switch-track::after {
  transform: translateX(15px);
}
.switch input:focus-visible + .switch-track {
  outline: 3px solid #7a9c2f;
  outline-offset: 4px;
}
.switch input:disabled + .switch-track {
  opacity: 0.5;
}
.policy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}
.policy-footer > .notice {
  flex: 1;
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.diff-grid section {
  min-width: 0;
}
.diff-grid h3 {
  font-size: 12px;
  margin-bottom: 12px;
}
.diff-grid .json {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 100%;
  min-height: 100px;
}
.toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(480px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  background: #233a31;
  color: #edf9ee;
  border: 1px solid #426747;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 12px;
  animation: page-in 0.2s ease;
  line-height: 1.5;
}
.toast.warning {
  background: #60492c;
  border-color: #886741;
  color: #fff5de;
}
.toast > .icon-button {
  margin-left: auto;
  flex-shrink: 0;
}
.search-modal .dialog-head {
  padding-bottom: 18px;
}
.search-modal .dialog-body {
  padding: 20px;
}
.global-search-input {
  padding: 0 14px;
  border-color: #9db985;
}
.global-search-input input {
  font-size: 14px;
  padding: 14px 0;
}
.search-results {
  margin-top: 18px;
  max-height: 56dvh;
  overflow: auto;
}
.search-group-title {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #93a0a9;
  padding: 10px 8px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 10px;
  border-radius: 8px;
}
.search-result:hover,
.search-result:focus {
  background: #f2f6ee;
}
.search-result > svg {
  color: #91a382;
}
.search-result strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.search-result small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.search-empty {
  font-size: 11px;
  color: #92a0a8;
  padding: 10px;
}
.search-all {
  padding: 13px 9px;
  font-size: 11px;
}
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(ellipse at 15% 15%, #253e32 0, transparent 45%), #141e28;
}
.auth-card {
  width: 470px;
  border-radius: 17px;
  background: white;
  padding: 40px;
  box-shadow: 0 30px 120px #0004;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.auth-card .brand {
  margin-bottom: 17px;
}
.auth-card .brand-mark {
  color: #72983b;
}
.auth-card .brand small {
  color: #82929d;
}
.auth-card h1 {
  font-size: 27px;
  margin-top: -8px;
}
.auth-description {
  font-size: 13px;
  color: #82909b;
  margin-top: -10px;
}
.auth-login {
  width: 100%;
  min-height: 45px;
}
.auth-footnote,
.dev-note {
  font-size: 10px;
  color: #94a0a8;
  text-align: center;
}
.auth-footnote {
  border-top: 1px solid var(--line);
  padding-top: 21px;
}
.dev-note {
  color: #977245;
  background: #fcf7e8;
  padding: 9px;
  border-radius: 6px;
}
.mobile-menu,
.nav-backdrop {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes page-in {
  from {
    opacity: 0.4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes drawer-in {
  from {
    transform: translateX(18px);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .main {
    padding-top: 44px;
  }
  .metrics-grid {
    gap: 22px;
  }
  .metric-card {
    padding: 24px;
    min-height: 170px;
  }
  .overview-banner {
    padding: 32px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .workspace {
    margin-left: 210px;
  }
  .main {
    padding: 28px 26px 40px;
  }
  .topbar {
    padding: 0 26px;
  }
  .overview-grid,
  .policies-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    gap: 11px;
  }
  .metric-card {
    padding: 16px;
    min-height: 150px;
  }
  .metric-label {
    font-size: 10px;
  }
  .overview-banner h2 {
    font-size: 20px;
  }
  .overview-banner p {
    max-width: 390px;
  }
  .header-context {
    display: none;
  }
  .operator-card {
    gap: 7px;
  }
  .operator-card strong {
    max-width: 98px;
  }
  th,
  td {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-card {
    min-height: 140px;
  }
  .overview-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .overview-banner p {
    max-width: none;
  }
  .overview-banner .button {
    align-self: flex-start;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    font-size: 0;
    min-width: 36px;
    padding: 9px;
  }
  .page-heading > .button svg {
    width: 17px;
  }
  .page-heading > .button.primary {
    font-size: 11px;
    white-space: normal;
  }
  h1 {
    font-size: 27px;
  }
  .header-search {
    min-width: 0;
    width: 100%;
  }
  .header-search kbd {
    margin-left: auto;
  }
  .policies-grid .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 245px;
    padding: 27px 18px 18px;
    z-index: 60;
  }
  .workspace {
    margin-left: 0;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: #0c182a77;
    z-index: 50;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
    gap: 13px;
  }
  .header-search {
    font-size: 11px;
    gap: 9px;
  }
  .header-search kbd {
    display: none;
  }
  .header-search svg {
    width: 17px;
  }
  .main {
    padding: 25px 17px 35px;
  }
  .page-heading {
    margin-bottom: 23px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 290px;
    line-height: 1.7;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .overview-banner {
    padding: 23px;
  }
  .overview-banner h2 {
    font-size: 20px;
  }
  .overview-banner p {
    font-size: 11px;
  }
  .metric-card {
    min-height: 140px;
    padding: 15px;
  }
  .metric-value {
    font-size: 29px;
    margin-top: 14px;
  }
  .metric-hint {
    font-size: 9px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metrics-grid {
    gap: 11px;
    margin-bottom: 17px;
  }
  .overview-grid {
    gap: 17px;
    margin-top: 17px;
  }
  .panel-head {
    padding: 18px;
  }
  .filters {
    padding: 15px;
    gap: 8px;
  }
  .filters .search-field {
    min-width: 180px;
    flex-basis: calc(100% - 76px);
  }
  .filters select {
    flex: 1;
    min-width: 120px;
    font-size: 11px;
  }
  .filters .button {
    font-size: 11px;
  }
  .panel {
    border-radius: 10px;
  }
  th {
    font-size: 8px;
  }
  td {
    font-size: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .table-scroll table {
    min-width: 590px;
  }
  .drawer .table-scroll table {
    min-width: 420px;
  }
  .pagination {
    padding: 13px 15px;
  }
  .drawer {
    max-width: 100vw;
    width: 100vw;
    border: 0;
  }
  .dialog-head {
    padding: 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .drawer .dialog-head {
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .dialog-head h2 {
    font-size: 16px;
  }
  .detail-identity h3 {
    font-size: 16px;
  }
  .detail-stack {
    gap: 20px;
  }
  .info-grid {
    gap: 19px 15px;
  }
  .info-grid dd {
    font-size: 11px;
  }
  .action-row .button {
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
  }
  .policy-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .policy-footer .button {
    align-self: flex-end;
  }
  .diff-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .diff-grid .json {
    height: auto;
  }
  .modal {
    max-width: calc(100vw - 24px);
    max-height: 94dvh;
  }
  .incident-list-item {
    padding: 17px;
  }
  .incident-list-item > .badge {
    font-size: 9px;
  }
  .telemetry {
    padding: 2px 17px;
  }
  .toast-root {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 16px;
  }
  .auth-screen {
    padding: 20px;
  }
  .auth-card {
    padding: 29px 25px;
  }
  .auth-card h1 {
    font-size: 25px;
  }
  .auth-card .brand {
    margin-bottom: 13px;
  }
  .sidebar-note {
    padding-top: 20px;
  }
  .operator-card strong {
    max-width: 118px;
  }
  .status-grid {
    padding: 16px;
  }
  .status-tile {
    padding: 11px;
  }
  .status-tile strong {
    font-size: 17px;
  }
}
@media (max-width: 400px) {
  .header-search {
    font-size: 10px;
  }
  .header-search svg {
    display: none;
  }
  .metrics-grid {
    gap: 9px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-card {
    padding: 13px;
  }
  .metric-hint {
    font-size: 8px;
  }
  .metric-card .row svg {
    width: 16px;
  }
  .form-grid,
  .policies-grid .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-identity {
    flex-wrap: wrap;
  }
  .detail-identity > .badge {
    margin-left: 0;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
  .overview-banner {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.enforcement-warning {
  margin-bottom: 24px;
}
.quota-footnote {
  font-size: 10px;
  margin-top: 12px;
}
