:root {
  --bg: #f4f6f3;
  --bg-deep: #eef2ee;
  --surface: #ffffff;
  --surface-soft: #f8faf8;
  --surface-strong: #edf2ee;
  --ink: #14221f;
  --ink-soft: #354542;
  --muted: #6f7c78;
  --muted-light: #98a39f;
  --line: #e2e8e4;
  --line-strong: #d4ddd7;
  --brand: #176d5d;
  --brand-deep: #122b27;
  --brand-dark: #0d211e;
  --brand-soft: #e7f3ed;
  --lime: #c9ef74;
  --lime-bright: #d9fb8c;
  --lime-soft: #f1f9db;
  --blue: #3e72ce;
  --blue-soft: #eaf0fc;
  --violet: #7763bb;
  --violet-soft: #f1eefb;
  --amber: #b9760d;
  --amber-soft: #fff5de;
  --red: #c44844;
  --red-soft: #fceceb;
  --pink: #b45375;
  --pink-soft: #faeef2;
  --teal: #16827b;
  --teal-soft: #e8f7f4;
  --shadow-xs: 0 1px 2px rgba(20, 34, 31, 0.04);
  --shadow-sm: 0 5px 18px rgba(20, 34, 31, 0.055);
  --shadow-md: 0 18px 48px rgba(20, 34, 31, 0.09);
  --shadow-lg: 0 28px 80px rgba(8, 23, 20, 0.22);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --sidebar-width: 252px;
  --topbar-height: 74px;
  color-scheme: light;
  font-family:
    "Avenir Next", "SF Pro Display", "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 94% 2%, rgba(201, 239, 116, 0.13), transparent 18rem),
    var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

::selection {
  color: #10221f;
  background: var(--lime);
}

:focus-visible {
  outline: 3px solid #2e7ecc !important;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -100px;
  left: 20px;
  padding: 11px 18px;
  color: #fff;
  background: var(--brand-deep);
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.app-loading {
  display: grid;
  min-height: 100vh;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.app-loading__mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 44px;
  gap: 5px;
  margin-bottom: 18px;
}

.app-loading__mark span {
  width: 10px;
  background: var(--brand);
  border-radius: 20px;
  animation: loadingBars 1s ease-in-out infinite alternate;
}

.app-loading__mark span:nth-child(1) {
  height: 20px;
}

.app-loading__mark span:nth-child(2) {
  height: 38px;
  animation-delay: 0.18s;
}

.app-loading__mark span:nth-child(3) {
  height: 28px;
  animation-delay: 0.36s;
}

@keyframes loadingBars {
  to {
    height: 12px;
    background: var(--lime);
  }
}

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
  background: #f5f7f4;
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: clamp(30px, 5vw, 66px);
  overflow: hidden;
  color: #eff8f3;
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 239, 116, 0.14), transparent 20rem),
    linear-gradient(145deg, #0d231f 0%, #153b32 58%, #1a493c 100%);
}

.login-story::before {
  position: absolute;
  right: -190px;
  bottom: -240px;
  width: 620px;
  height: 620px;
  content: "";
  border: 1px solid rgba(201, 239, 116, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(201, 239, 116, 0.025),
    0 0 0 128px rgba(201, 239, 116, 0.015);
}

.login-story::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(166, 206, 191, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 206, 191, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent 4%, #000 35%, transparent 88%);
  pointer-events: none;
}

.login-story > * {
  position: relative;
  z-index: 1;
}

.login-story__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-story__mark {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: #10251f;
  background: var(--lime);
  border-radius: 12px;
}

.login-story__brand strong,
.login-story__brand small {
  display: block;
}

.login-story__brand strong {
  color: #f6fbf8;
  font-size: 16px;
}

.login-story__brand small {
  margin-top: 2px;
  color: #9bb3aa;
  font-size: 14px;
}

.login-story__copy {
  max-width: 680px;
  margin: auto 0;
  padding: 52px 0 42px;
}

.login-story__kicker {
  color: var(--lime);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.login-story__copy h1 {
  max-width: 620px;
  margin: 17px 0 21px;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1.17;
}

.login-story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-story__tags span {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 12px;
  color: #c8dad3;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  font-size: 14px;
}

.login-story__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-story__features > div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.login-story__features span {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
}

.login-story__features strong {
  display: block;
  color: #edf7f2;
  font-size: 15px;
}

.login-story__features p {
  margin: 7px 0 0;
  color: #91aaa1;
  font-size: 14px;
  line-height: 1.7;
}

.login-story__foot {
  margin-top: 30px;
  color: #748f86;
  font-size: 14px;
}

.login-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 36px;
}

.login-card {
  width: min(470px, 100%);
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(20, 34, 31, 0.11);
}

.login-card__head {
  margin-bottom: 26px;
}

.login-card__eyebrow {
  display: block;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.login-card__company {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.login-card__head h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field label,
.login-captcha__label label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.login-input-wrap {
  position: relative;
  display: flex;
  height: 48px;
  align-items: center;
  padding: 0 13px;
  background: #fbfcfb;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  gap: 9px;
}

.login-input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 109, 93, 0.1);
}

.login-input-wrap > svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.login-input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.login-input-wrap input::placeholder {
  color: var(--muted-light);
}

.login-password-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.login-password-toggle:hover {
  background: var(--surface-strong);
}

.login-field-error {
  min-height: 20px;
  margin: 5px 0 0;
  color: var(--red);
  font-size: 14px;
  line-height: 1.4;
}

.login-captcha__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-captcha__label label {
  margin-bottom: 0;
}

.login-captcha__refresh {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  color: var(--brand);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  gap: 5px;
  font-size: 14px;
}

.login-captcha__refresh:hover {
  background: var(--brand-soft);
}

.login-captcha {
  margin-top: 8px;
}

.login-captcha__image {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: #17352f;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.login-captcha__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-captcha__piece {
  position: absolute;
  top: 33.75%;
  left: 0;
  width: 15%;
  aspect-ratio: 1;
  background-size: cover;
  border-radius: 7px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 8px 20px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  will-change: left;
}

.login-slider {
  position: relative;
  height: 46px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-slider__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--brand-soft);
}

.login-slider__handle {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  width: 46px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: var(--brand-deep);
  border: 0;
  border-radius: 7px;
  cursor: grab;
  touch-action: none;
}

.login-slider__handle:active {
  cursor: grabbing;
}

.login-slider.is-verified {
  background: var(--brand-soft);
  border-color: #b9dacb;
}

.login-slider.is-verified .login-slider__fill {
  background: #dff2e7;
}

.login-slider.is-verified .login-slider__handle {
  color: var(--brand-deep);
  background: var(--lime);
}

.login-slider.is-error {
  border-color: #e5aaa5;
}

.login-captcha__help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.login-error-summary {
  min-height: 20px;
  margin: -3px 0 0;
  color: var(--red);
  font-size: 14px;
  line-height: 1.5;
}

.login-submit {
  width: 100%;
  min-height: 48px;
  color: #fff;
  background: var(--brand-deep);
  border: 1px solid var(--brand-deep);
  border-radius: 9px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}

.login-submit:hover {
  background: #1b3c35;
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-card__foot {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 24px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
  font-size: 14px;
  gap: 14px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow: hidden;
  color: #dfe9e5;
  background:
    radial-gradient(circle at 20% 4%, rgba(201, 239, 116, 0.13), transparent 13rem),
    linear-gradient(172deg, #17322d 0%, #112723 56%, #0e211e 100%);
  transition: transform 0.25s ease;
}

.sidebar::after {
  position: absolute;
  top: 430px;
  right: -90px;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(218, 248, 143, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(218, 248, 143, 0.025),
    0 0 0 62px rgba(218, 248, 143, 0.02);
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 82px;
  padding: 0 22px;
  gap: 12px;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  overflow: hidden;
  color: var(--brand-deep);
  background: var(--lime);
  border-radius: 11px;
  box-shadow: 0 0 0 5px rgba(201, 239, 116, 0.07);
}

.brand__mark::before,
.brand__mark::after {
  position: absolute;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand__mark::before {
  width: 13px;
  height: 13px;
  left: 8px;
  bottom: 8px;
}

.brand__mark::after {
  width: 8px;
  height: 8px;
  top: 7px;
  right: 7px;
  border-width: 1.5px;
  opacity: 0.68;
}

.brand__dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.brand__text {
  min-width: 0;
}

.brand__name {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand__sub {
  display: block;
  margin-top: 1px;
  color: #93a8a1;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar__nav {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 3px 12px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.sidebar__nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 6px;
}

.nav-section {
  margin-top: 18px;
}

.nav-section:first-child {
  margin-top: 7px;
}

.nav-section__label {
  padding: 0 12px 8px;
  color: #789089;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 11px;
  margin: 2px 0;
  color: #aebeb8;
  border-radius: 9px;
  gap: 11px;
  font-size: 14px;
  font-weight: 500;
  transition:
    color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.8;
  stroke: currentColor;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
}

.nav-link.active {
  color: #eafbd0;
  background: rgba(201, 239, 116, 0.12);
}

.nav-link.active::before {
  position: absolute;
  left: -12px;
  width: 3px;
  height: 21px;
  content: "";
  background: var(--lime);
  border-radius: 0 4px 4px 0;
}

.nav-link.active svg {
  color: var(--lime);
  opacity: 1;
}

.nav-link__badge {
  display: inline-flex;
  min-width: 22px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  margin-left: auto;
  color: #cbeaaa;
  background: rgba(201, 239, 116, 0.11);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.nav-link__badge.is-alert {
  color: #ffdbd5;
  background: rgba(229, 105, 84, 0.18);
}

.nav-link__badge.is-live {
  position: relative;
  min-width: 34px;
  padding-left: 13px;
  color: #10221f;
  background: var(--lime);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.nav-link__badge.is-live::before {
  position: absolute;
  top: 7px;
  left: 6px;
  width: 4px;
  height: 4px;
  content: "";
  background: #17322d;
  border-radius: 50%;
  animation: monitorLivePulse 1.8s ease-in-out infinite;
}

.sidebar__foot {
  position: relative;
  z-index: 1;
  padding: 13px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.workspace-switch {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 9px 10px;
  color: #d6e2de;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  gap: 9px;
  text-align: left;
}

.workspace-switch:hover {
  background: rgba(255, 255, 255, 0.06);
}

.workspace-switch__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--lime);
  background: rgba(201, 239, 116, 0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.workspace-switch__copy {
  min-width: 0;
  flex: 1;
}

.workspace-switch__name {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-switch__meta {
  display: block;
  color: #799189;
  font-size: 14px;
}

.workspace-switch svg {
  width: 14px;
  height: 14px;
  color: #7c928b;
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  padding: 0 30px;
  background: rgba(248, 250, 247, 0.86);
  border-bottom: 1px solid rgba(220, 228, 222, 0.8);
  backdrop-filter: blur(18px);
}

.topbar__left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.icon-button.mobile-menu {
  display: none;
}

.breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  color: var(--muted);
  gap: 8px;
  font-size: 14px;
}

.breadcrumb__root {
  color: var(--muted-light);
}

.breadcrumb__sep {
  color: #bcc6c1;
}

.breadcrumb__current {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__center {
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 0 30px;
}

.global-search {
  display: flex;
  width: min(390px, 100%);
  height: 39px;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  gap: 9px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.global-search:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.global-search svg {
  width: 16px;
  height: 16px;
}

.global-search__text {
  flex: 1;
  font-size: 14px;
  text-align: left;
}

.key-hint {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 6px;
  color: var(--muted-light);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 20px;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}

.live-indicator__dot {
  width: 6px;
  height: 6px;
  background: #27a279;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(39, 162, 121, 0.14);
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.icon-button:hover {
  background: #fff;
  border-color: var(--line);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -6px;
  display: inline-flex;
  min-width: 24px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--bg);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(125, 38, 32, 0.28);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1;
}

.profile-button {
  display: flex;
  align-items: center;
  padding: 4px 7px 4px 4px;
  margin-left: 3px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  gap: 8px;
}

.profile-button:hover {
  background: #fff;
  border-color: var(--line);
}

.avatar {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 700;
}

.avatar.sm {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-width: 1px;
  font-size: 14px;
}

.avatar.lg {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  font-size: 14px;
}

.avatar.xl {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  font-size: 20px;
}

.profile-button__copy {
  text-align: left;
}

.profile-button__name {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.profile-button__role {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.profile-button > svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.page-content {
  width: 100%;
  max-width: 1580px;
  min-height: calc(100vh - var(--topbar-height));
  padding: 27px 30px 48px;
  margin: 0 auto;
  animation: pageIn 0.34s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.page-head__copy {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  color: var(--brand);
  gap: 7px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 14px;
  height: 2px;
  content: "";
  background: var(--brand);
  border-radius: 2px;
}

.page-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 710;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.page-subtitle {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.btn:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  color: #fff;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn-primary:hover {
  background: #1a3933;
  border-color: #1a3933;
}

.btn-lime {
  color: var(--brand-deep);
  background: var(--lime);
  border-color: var(--lime);
}

.btn-lime:hover {
  background: var(--lime-bright);
  border-color: var(--lime-bright);
}

.btn-soft {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: transparent;
}

.btn-soft:hover {
  border-color: #cfe4da;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--line);
  box-shadow: none;
}

.btn-danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: transparent;
}

.btn-sm {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-lg {
  min-height: 44px;
  padding: 0 19px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.panel {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.panel--flush {
  padding: 0;
  overflow: hidden;
}

.panel--soft {
  background: var(--surface-soft);
  box-shadow: none;
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 14px;
}

.panel__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel__sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel__action {
  display: flex;
  align-items: center;
  gap: 7px;
}

.text-link {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0;
  color: var(--brand);
  background: none;
  border: 0;
  cursor: pointer;
  gap: 4px;
  font-size: 14px;
  font-weight: 650;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link svg {
  width: 12px;
  height: 12px;
}

.monitor-page {
  --monitor-bg: #091b19;
  --monitor-panel: rgba(14, 42, 38, 0.88);
  --monitor-panel-strong: rgba(18, 50, 45, 0.96);
  --monitor-line: rgba(155, 199, 185, 0.14);
  --monitor-text: #e8f3ee;
  --monitor-muted: #839f96;
  --monitor-dim: #56756c;
  --monitor-lime: #c9ef74;
  --monitor-red: #ff836d;
  --monitor-amber: #f0bd5f;
  --monitor-blue: #73a9ef;
}

.monitor-stage {
  position: relative;
  padding: 16px;
  overflow: hidden;
  color: var(--monitor-text);
  background:
    radial-gradient(circle at 51% 38%, rgba(38, 112, 91, 0.16), transparent 22rem),
    radial-gradient(circle at 92% 5%, rgba(201, 239, 116, 0.08), transparent 18rem),
    linear-gradient(145deg, #091c1a 0%, #0b211e 54%, #081816 100%);
  border: 1px solid rgba(137, 183, 168, 0.15);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(8, 27, 23, 0.18);
}

.monitor-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(144, 193, 177, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 193, 177, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.monitor-stage > * {
  position: relative;
  z-index: 1;
}

.monitor-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  padding: 22px;
  overflow: auto;
  border: 0;
  border-radius: 0;
}

.monitor-stage:fullscreen .monitor-main-grid {
  grid-template-columns: minmax(330px, 0.9fr) minmax(570px, 1.55fr) minmax(320px, 0.85fr);
}

.monitor-stage:fullscreen .monitor-map {
  height: 520px;
  min-height: 520px;
  flex-basis: 520px;
}

.monitor-stage__head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(210px, 0.72fr);
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--monitor-line);
  gap: 18px;
}

.monitor-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.monitor-brand__mark {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  color: var(--monitor-lime);
  background: rgba(201, 239, 116, 0.08);
  border: 1px solid rgba(201, 239, 116, 0.2);
  border-radius: 10px;
  box-shadow: inset 0 0 18px rgba(201, 239, 116, 0.05);
}

.monitor-brand__kicker {
  display: block;
  margin-bottom: 2px;
  color: #6e9186;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.monitor-brand strong {
  display: block;
  overflow: hidden;
  color: #eef8f2;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-modes {
  display: grid;
  width: 282px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  gap: 2px;
}

.monitor-modes button {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 31px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: #7d9c91;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.monitor-modes button:hover {
  color: #dfeee8;
  background: rgba(255, 255, 255, 0.04);
}

.monitor-modes button.active {
  color: #10231f;
  background: var(--monitor-lime);
}

.monitor-mode__dot {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.monitor-clock {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  text-align: right;
}

.monitor-clock strong {
  display: block;
  color: #edf8f2;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.monitor-clock small {
  display: block;
  margin-top: 2px;
  color: #66877d;
  font-size: 14px;
  white-space: nowrap;
}

.monitor-live {
  display: inline-flex;
  height: 23px;
  align-items: center;
  padding: 0 8px;
  color: var(--monitor-lime);
  background: rgba(201, 239, 116, 0.07);
  border: 1px solid rgba(201, 239, 116, 0.14);
  border-radius: 20px;
  gap: 5px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
}

.monitor-live i,
.monitor-online i,
.monitor-sync-state i {
  width: 5px;
  height: 5px;
  background: var(--monitor-lime);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(201, 239, 116, 0.08);
  animation: monitorLivePulse 1.8s ease-in-out infinite;
}

@keyframes monitorLivePulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.monitor-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 3px;
  margin: 8px 0;
  color: #7c9c91;
  gap: 14px;
  font-size: 14px;
}

.monitor-mode-bar > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.monitor-mode-bar .inline {
  flex: 0 0 auto;
  gap: 12px;
}

.monitor-sync-state {
  display: inline-flex;
  align-items: center;
  color: #78978c;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.monitor-sync-state i {
  width: 4px;
  height: 4px;
}

.monitor-text-button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #b8d1c7;
  background: transparent;
  border: 0;
  cursor: pointer;
  gap: 4px;
  font-size: 14px;
}

.monitor-text-button:hover {
  color: var(--monitor-lime);
}

.monitor-critical-banner {
  display: grid;
  grid-template-columns: 27px auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 43px;
  padding: 7px 11px;
  margin-bottom: 10px;
  color: #cfded8;
  background: linear-gradient(90deg, rgba(196, 72, 68, 0.15), rgba(196, 72, 68, 0.045));
  border: 1px solid rgba(255, 131, 109, 0.17);
  border-radius: 8px;
  gap: 9px;
}

.monitor-critical-banner__icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--monitor-red);
  background: rgba(255, 131, 109, 0.1);
  border-radius: 7px;
}

.monitor-critical-banner strong {
  color: #ffd1c7;
  font-size: 14px;
  white-space: nowrap;
}

.monitor-critical-banner > span:not(.monitor-critical-banner__icon) {
  overflow: hidden;
  color: #8fa9a0;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-critical-banner button {
  display: flex;
  align-items: center;
  padding: 0;
  color: #ffc6b8;
  background: transparent;
  border: 0;
  cursor: pointer;
  gap: 4px;
  font-size: 14px;
  white-space: nowrap;
}

.monitor-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.monitor-kpi {
  position: relative;
  min-height: 96px;
  padding: 12px 13px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)),
    var(--monitor-panel);
  border: 1px solid var(--monitor-line);
  border-radius: 9px;
}

.monitor-kpi::after {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 70px;
  height: 70px;
  content: "";
  border: 1px solid rgba(201, 239, 116, 0.045);
  border-radius: 50%;
}

.monitor-kpi__label {
  display: flex;
  align-items: center;
  color: #8ba79e;
  gap: 6px;
  font-size: 14px;
}

.monitor-kpi__signal {
  width: 4px;
  height: 4px;
  background: var(--monitor-lime);
  border-radius: 50%;
}

.monitor-kpi__value {
  margin-top: 7px;
  color: #f2faf5;
  font-size: 24px;
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1;
}

.monitor-kpi__value small {
  margin-left: 4px;
  color: #65867b;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.monitor-kpi__foot {
  margin-top: 6px;
  overflow: hidden;
  color: #5d7b71;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-kpi__spark {
  position: absolute;
  right: 9px;
  bottom: 10px;
  display: flex;
  height: 22px;
  align-items: flex-end;
  gap: 2px;
  opacity: 0.72;
}

.monitor-kpi__spark i {
  width: 3px;
  background: var(--monitor-blue);
  border-radius: 2px 2px 0 0;
}

.monitor-kpi__spark i:nth-child(1) {
  height: 30%;
}

.monitor-kpi__spark i:nth-child(2) {
  height: 54%;
}

.monitor-kpi__spark i:nth-child(3) {
  height: 44%;
}

.monitor-kpi__spark i:nth-child(4) {
  height: 73%;
}

.monitor-kpi__spark i:nth-child(5) {
  height: 61%;
}

.monitor-kpi__spark i:nth-child(6) {
  height: 86%;
}

.monitor-kpi__spark i:nth-child(7) {
  height: 68%;
}

.monitor-kpi__spark i:nth-child(8) {
  height: 100%;
}

.monitor-kpi__spark--teal i {
  background: #55bca2;
}

.monitor-kpi__spark--red i {
  background: var(--monitor-red);
}

.monitor-kpi__spark--amber i {
  background: var(--monitor-amber);
}

.monitor-kpi__spark--lime i {
  background: var(--monitor-lime);
}

.monitor-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(430px, 1.4fr) minmax(270px, 0.82fr);
  align-items: start;
  gap: 9px;
}

.monitor-panel {
  position: relative;
  overflow: hidden;
  padding: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent 35%),
    var(--monitor-panel);
  border: 1px solid var(--monitor-line);
  border-radius: 10px;
}

.monitor-panel::before {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(201, 239, 116, 0.08), transparent);
}

.monitor-panel__head {
  display: flex;
  min-height: 35px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 9px;
  gap: 10px;
}

.monitor-panel__kicker {
  display: block;
  margin-bottom: 2px;
  color: #587b70;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.monitor-panel__head h2 {
  margin: 0;
  color: #dfece7;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.monitor-panel__count {
  padding: 3px 6px;
  color: #89a79c;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
}

.monitor-event-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.monitor-event {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 42px minmax(0, 1fr) 62px;
  align-items: center;
  padding: 7px 7px 7px 10px;
  overflow: hidden;
  color: #c7dbd3;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 7px;
  cursor: pointer;
  gap: 7px;
  text-align: left;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.monitor-event:hover {
  background: rgba(201, 239, 116, 0.035);
  border-color: rgba(201, 239, 116, 0.13);
  transform: translateX(1px);
}

.monitor-event__rail {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: var(--monitor-amber);
  border-radius: 0 2px 2px 0;
}

.monitor-severity-致命,
.monitor-severity-严重 {
  background: var(--monitor-red);
}

.monitor-severity-一般 {
  background: var(--monitor-amber);
}

.monitor-severity-轻微 {
  background: var(--monitor-blue);
}

.monitor-event__time {
  color: #537369;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
}

.monitor-event__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.monitor-event__top {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.monitor-event__top strong {
  display: inline-flex;
  align-items: center;
  color: #ffac9b;
  gap: 3px;
  font-size: 14px;
  font-weight: 650;
}

.monitor-event__top small {
  min-width: 0;
  flex: 1;
  color: #66877d;
  font-size: 14px;
  line-height: 1.35;
}

.monitor-event__title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: #cfe0da;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.monitor-event__meta {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: #5b7a70;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.monitor-event__sla {
  padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, 0.055);
  text-align: right;
}

.monitor-event__sla small {
  display: block;
  color: #5e7f74;
  font-size: 14px;
  white-space: nowrap;
}

.monitor-event__sla strong {
  display: block;
  margin-top: 3px;
  color: #f1c66e;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.monitor-event__sla.is-overdue strong {
  color: var(--monitor-red);
}

.monitor-panel-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 8px;
  color: #76998d;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  gap: 4px;
  font-size: 14px;
}

.monitor-panel-link:hover {
  color: var(--monitor-lime);
  background: rgba(201, 239, 116, 0.035);
  border-color: rgba(201, 239, 116, 0.08);
}

.monitor-map-panel {
  display: flex;
  flex-direction: column;
}

.monitor-map-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.monitor-map-controls span {
  padding: 3px 7px;
  color: #6e8e83;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 14px;
}

.monitor-map-controls span:last-child {
  color: #a7c4ba;
  background: rgba(201, 239, 116, 0.045);
  border-color: rgba(201, 239, 116, 0.1);
}

.monitor-map {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 420px;
  flex: 0 0 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(40, 122, 101, 0.13), transparent 44%),
    linear-gradient(rgba(115, 164, 148, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 164, 148, 0.055) 1px, transparent 1px),
    rgba(5, 24, 21, 0.46);
  background-size: auto, 24px 24px, 24px 24px, auto;
  border: 1px solid rgba(94, 140, 126, 0.1);
  border-radius: 8px;
}

.monitor-map::before {
  position: absolute;
  top: 8%;
  right: 8%;
  bottom: 8%;
  left: 8%;
  content: "";
  border: 1px solid rgba(201, 239, 116, 0.045);
  clip-path: polygon(13% 0, 87% 0, 100% 15%, 100% 85%, 87% 100%, 13% 100%, 0 85%, 0 15%);
  pointer-events: none;
}

.monitor-map__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(201, 239, 116, 0.07);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.monitor-map__ring--one {
  width: 100px;
  height: 100px;
}

.monitor-map__ring--two {
  width: 210px;
  height: 210px;
}

.monitor-map__ring--three {
  width: 320px;
  height: 320px;
  border-style: dashed;
  opacity: 0.55;
}

.monitor-map__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.monitor-map__links line {
  stroke: rgba(111, 171, 151, 0.25);
  stroke-width: 0.35;
  stroke-dasharray: 1.2 1.2;
}

.monitor-hub {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  width: 112px;
  height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  place-items: center;
  color: #f4fbf7;
  background:
    radial-gradient(circle, rgba(36, 104, 87, 0.85) 0, rgba(15, 50, 43, 0.97) 63%, rgba(9, 31, 27, 0.98) 64%);
  border: 1px solid rgba(201, 239, 116, 0.34);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(201, 239, 116, 0.025),
    0 0 32px rgba(201, 239, 116, 0.1);
  gap: 4px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.monitor-hub__pulse {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(201, 239, 116, 0.22);
  border-radius: 50%;
  animation: monitorRadar 3s ease-out infinite;
}

@keyframes monitorRadar {
  0% {
    opacity: 0.65;
    transform: scale(0.92);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.monitor-hub__value {
  position: relative;
  z-index: 1;
  color: var(--monitor-lime);
  font-size: 30px;
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1;
}

.monitor-hub__value small {
  color: #7c9d91;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.monitor-hub__label {
  color: #839f95;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.monitor-node {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 162px;
  min-height: 70px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  padding: 6px 7px;
  color: #d9e8e2;
  background: rgba(12, 40, 35, 0.93);
  border: 1px solid rgba(121, 176, 158, 0.18);
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  gap: 0 6px;
  text-align: left;
  transform: translate(-50%, -50%);
  transition:
    border-color 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
}

.monitor-node:hover {
  z-index: 6;
  background: rgba(18, 52, 45, 0.98);
  border-color: rgba(201, 239, 116, 0.34);
  transform: translate(-50%, -50%) scale(1.03);
}

.monitor-node__score {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  place-items: center;
  color: #84d6be;
  background: rgba(83, 177, 148, 0.09);
  border: 1px solid rgba(83, 177, 148, 0.16);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}

.monitor-node--warn .monitor-node__score {
  color: var(--monitor-amber);
  background: rgba(240, 189, 95, 0.08);
  border-color: rgba(240, 189, 95, 0.16);
}

.monitor-node--risk .monitor-node__score {
  color: var(--monitor-red);
  background: rgba(255, 131, 109, 0.08);
  border-color: rgba(255, 131, 109, 0.16);
}

.monitor-node__name {
  align-self: end;
  display: -webkit-box;
  overflow: hidden;
  color: #d7e7e1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.monitor-node__meta {
  align-self: start;
  display: -webkit-box;
  overflow: hidden;
  color: #58786d;
  font-size: 14px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.monitor-map__footer {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  gap: 6px;
}

.monitor-map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.monitor-map__legend span {
  display: flex;
  align-items: center;
  color: #638177;
  gap: 4px;
  font-size: 14px;
}

.monitor-map__legend i {
  width: 5px;
  height: 5px;
  background: #5db599;
  border-radius: 50%;
}

.monitor-map__legend i.warn {
  background: var(--monitor-amber);
}

.monitor-map__legend i.risk {
  background: var(--monitor-red);
}

.monitor-map__caption {
  display: flex;
  align-items: center;
  color: #56766b;
  gap: 5px;
  font-size: 14px;
  line-height: 1.35;
}

.monitor-online {
  display: inline-flex;
  align-items: center;
  color: #8eb1a4;
  gap: 5px;
  font-size: 14px;
}

.monitor-online i {
  width: 5px;
  height: 5px;
  background: var(--monitor-lime);
  border-radius: 50%;
}

.monitor-scan-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.monitor-scan {
  display: grid;
  width: 100%;
  min-height: 54px;
  grid-template-columns: 28px minmax(0, 1fr) 36px;
  align-items: center;
  padding: 7px;
  color: #c8dbd4;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 7px;
  cursor: pointer;
  gap: 7px;
  text-align: left;
}

.monitor-scan:hover {
  background: rgba(201, 239, 116, 0.035);
}

.monitor-scan__icon,
.monitor-task__icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--monitor-lime);
  background: rgba(201, 239, 116, 0.06);
  border-radius: 6px;
}

.monitor-scan__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.monitor-scan__copy strong {
  overflow: hidden;
  color: #d1e2dc;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-scan__copy small {
  margin-top: 2px;
  overflow: hidden;
  color: #58786e;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-scan__bar {
  display: block;
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
}

.monitor-scan__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4e9f87, var(--monitor-lime));
  border-radius: inherit;
}

.monitor-scan__value {
  color: #a7c6bb;
  font-size: 14px;
  font-weight: 650;
  text-align: right;
}

.monitor-scan__value small {
  margin-left: 1px;
  color: #57776c;
  font-size: 14px;
}

.monitor-idle {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 11px;
  background: rgba(201, 239, 116, 0.025);
  border: 1px solid rgba(201, 239, 116, 0.08);
  border-radius: 7px;
  gap: 9px;
}

.monitor-idle__icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  color: var(--monitor-lime);
  background: rgba(201, 239, 116, 0.06);
  border-radius: 50%;
}

.monitor-idle strong {
  display: block;
  color: #bed4cc;
  font-size: 14px;
}

.monitor-idle span:not(.monitor-idle__icon) {
  display: block;
  margin-top: 3px;
  color: #5c7d72;
  font-size: 14px;
  line-height: 1.5;
}

.monitor-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1px 6px;
  margin-top: 4px;
  color: #5f8175;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 14px;
}

.monitor-task {
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  padding: 6px;
  color: #c8dbd4;
  background: rgba(255, 255, 255, 0.017);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  cursor: pointer;
  gap: 7px;
  text-align: left;
}

.monitor-task__copy {
  min-width: 0;
}

.monitor-task__copy strong {
  display: block;
  overflow: hidden;
  color: #c6d8d1;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-task__copy small {
  display: block;
  margin-top: 2px;
  color: #57776c;
  font-size: 14px;
}

.monitor-task__badge {
  padding: 3px 5px;
  color: #e4bd6b;
  background: rgba(240, 189, 95, 0.06);
  border-radius: 3px;
  font-size: 14px;
  white-space: nowrap;
}

.monitor-health {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.monitor-health__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #68897e;
  font-size: 14px;
}

.monitor-health__row > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.monitor-health__row i {
  width: 4px;
  height: 4px;
  background: #5fc2a0;
  border-radius: 50%;
}

.monitor-health__row i.warn {
  background: var(--monitor-amber);
}

.monitor-health__row strong {
  color: #809f94;
  font-weight: 500;
}

.monitor-ops-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  gap: 5px;
}

.monitor-ops-summary div {
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  text-align: center;
}

.monitor-ops-summary strong {
  display: block;
  color: #dcece6;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
}

.monitor-ops-summary span {
  display: block;
  margin-top: 4px;
  color: #57796d;
  font-size: 14px;
}

.monitor-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.82fr) minmax(250px, 0.82fr);
  gap: 9px;
  margin-top: 9px;
}

.monitor-trend-panel,
.monitor-category-panel,
.monitor-team-panel {
  min-height: 190px;
}

.monitor-trend {
  display: grid;
  height: 116px;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 5px;
}

.monitor-trend__axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0 16px;
  color: #48685d;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  text-align: right;
}

.monitor-trend__plot {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  padding-top: 8px;
  background:
    linear-gradient(rgba(112, 157, 143, 0.07) 1px, transparent 1px);
  background-size: 100% 25%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 5px;
}

.monitor-trend__bar-wrap {
  position: relative;
  display: flex;
  height: 100%;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
}

.monitor-trend__bar {
  display: block;
  width: 55%;
  max-width: 12px;
  min-height: 4px;
  background: linear-gradient(180deg, rgba(255, 131, 109, 0.95), rgba(255, 131, 109, 0.25));
  border: 1px solid rgba(255, 131, 109, 0.16);
  border-radius: 2px 2px 0 0;
}

.monitor-trend__bar.current {
  background: linear-gradient(180deg, var(--monitor-lime), rgba(201, 239, 116, 0.24));
  border-color: rgba(201, 239, 116, 0.2);
}

.monitor-trend-panel--release .monitor-trend__bar {
  background: linear-gradient(180deg, rgba(92, 188, 159, 0.95), rgba(92, 188, 159, 0.2));
  border-color: rgba(92, 188, 159, 0.18);
}

.monitor-trend-panel--release .monitor-trend__bar.current {
  background: linear-gradient(180deg, var(--monitor-lime), rgba(201, 239, 116, 0.2));
}

.monitor-trend-panel--remediation .monitor-trend__bar {
  background: linear-gradient(180deg, rgba(240, 189, 95, 0.96), rgba(240, 189, 95, 0.2));
  border-color: rgba(240, 189, 95, 0.18);
}

.monitor-trend-panel--remediation .monitor-trend__bar.current {
  background: linear-gradient(180deg, var(--monitor-red), rgba(255, 131, 109, 0.2));
  border-color: rgba(255, 131, 109, 0.2);
}

.monitor-trend__tip {
  position: absolute;
  top: 0;
  color: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  transition: color 0.15s ease;
}

.monitor-trend__bar-wrap:hover .monitor-trend__tip {
  color: #98b7ac;
}

.monitor-trend__label {
  position: absolute;
  bottom: -12px;
  color: #4f6f64;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  white-space: nowrap;
}

.monitor-category-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.monitor-category-list button {
  display: grid;
  width: 100%;
  grid-template-columns: 88px minmax(0, 1fr) 22px;
  align-items: center;
  padding: 0;
  color: #7e9d92;
  background: transparent;
  border: 0;
  cursor: pointer;
  gap: 7px;
  font-size: 14px;
  text-align: left;
}

.monitor-category-list button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-category-list button > i {
  display: block;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 5px;
}

.monitor-category-list button b {
  display: block;
  height: 100%;
  background: #5cbc9f;
  border-radius: inherit;
}

.monitor-category-list button b.blue {
  background: var(--monitor-blue);
}

.monitor-category-list button b.amber {
  background: var(--monitor-amber);
}

.monitor-category-list button b.violet {
  background: #9a8cde;
}

.monitor-category-list button b.red {
  background: var(--monitor-red);
}

.monitor-category-list button > strong {
  color: #99b7ac;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.monitor-duty {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.monitor-duty__person {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 6px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  gap: 5px;
}

.monitor-duty__person .avatar {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
  border: 0;
  font-size: 14px;
}

.monitor-duty__person > span:nth-child(2) {
  min-width: 0;
}

.monitor-duty__person strong,
.monitor-duty__person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-duty__person strong {
  color: #bdd2ca;
  font-size: 14px;
}

.monitor-duty__person small {
  margin-top: 1px;
  color: #4f7165;
  font-size: 14px;
}

.monitor-duty__person > i {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 4px;
  height: 4px;
  background: #54786c;
  border-radius: 50%;
}

.monitor-duty__person > i.online {
  background: var(--monitor-lime);
}

.monitor-activity {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  gap: 7px;
}

.monitor-activity > div {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
}

.monitor-activity__dot {
  width: 4px;
  height: 4px;
  background: #4b796a;
  border-radius: 50%;
}

.monitor-activity p {
  overflow: hidden;
  margin: 0;
  color: #6d8c81;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-activity > div > span:last-child {
  color: #47675c;
  font-size: 14px;
  white-space: nowrap;
}

.monitor-stage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 33px;
  padding: 8px 3px 0;
  color: #4f7064;
  border-top: 1px solid var(--monitor-line);
  font-size: 14px;
  gap: 15px;
}

.monitor-stage__foot span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.monitor-stage__foot button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #75968b;
  background: transparent;
  border: 0;
  cursor: pointer;
  gap: 4px;
  font-size: 14px;
}

.monitor-stage__foot button:hover {
  color: var(--monitor-lime);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2-1 {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.grid-1-2 {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

.subtle {
  color: var(--muted-light);
}

.mono {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 260px;
  grid-template-columns: minmax(0, 1.6fr) minmax(330px, 0.8fr);
  padding: 28px 30px;
  color: #f6fbf8;
  background:
    radial-gradient(circle at 73% 25%, rgba(201, 239, 116, 0.18), transparent 14rem),
    linear-gradient(118deg, #17352f 0%, #12302a 55%, #1a3b32 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(17, 39, 35, 0.17);
}

.hero::before {
  position: absolute;
  top: -130px;
  right: -90px;
  width: 370px;
  height: 370px;
  content: "";
  border: 1px solid rgba(233, 255, 188, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(233, 255, 188, 0.025),
    0 0 0 88px rgba(233, 255, 188, 0.015);
}

.hero::after {
  position: absolute;
  right: 46%;
  bottom: -40px;
  width: 210px;
  height: 120px;
  content: "";
  background: repeating-linear-gradient(
    135deg,
    rgba(201, 239, 116, 0.09) 0,
    rgba(201, 239, 116, 0.09) 1px,
    transparent 1px,
    transparent 9px
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 670px;
  flex-direction: column;
  justify-content: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  margin-bottom: 15px;
  color: var(--lime-bright);
  background: rgba(201, 239, 116, 0.1);
  border: 1px solid rgba(201, 239, 116, 0.14);
  border-radius: 20px;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero__kicker::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--lime);
  border-radius: 50%;
}

.hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 2.8vw, 37px);
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.hero__title span {
  color: var(--lime);
}

.hero__desc {
  max-width: 590px;
  margin: 12px 0 20px;
  color: #a7bdb5;
  font-size: 14px;
  line-height: 1.75;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  max-width: 670px;
  margin: 15px 0 20px;
  gap: 6px;
}

.hero__tags span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  color: #c4d7cf;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero__actions .btn {
  min-height: 39px;
}

.hero__side {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.score-orbit {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  place-items: center;
  background: conic-gradient(var(--lime) 0deg 302deg, rgba(255, 255, 255, 0.1) 302deg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.score-orbit::before {
  position: absolute;
  width: 128px;
  height: 128px;
  content: "";
  background: #17362f;
  border-radius: 50%;
}

.score-orbit::after {
  position: absolute;
  top: 8px;
  right: 18px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--lime);
  border: 3px solid #17362f;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(201, 239, 116, 0.8);
}

.score-orbit__value {
  position: relative;
  z-index: 1;
  text-align: center;
}

.score-orbit__number {
  display: block;
  color: #fff;
  font-size: 45px;
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1;
}

.score-orbit__number small {
  color: #94aaa2;
  font-size: 14px;
  font-weight: 500;
}

.score-orbit__label {
  display: block;
  margin-top: 7px;
  color: #b2c5be;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hero-metrics {
  display: flex;
  min-width: 145px;
  flex-direction: column;
  gap: 13px;
}

.hero-metric {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-metric__label {
  display: block;
  margin-bottom: 3px;
  color: #8da49c;
  font-size: 14px;
}

.hero-metric__value {
  display: flex;
  align-items: baseline;
  color: #f4fcf7;
  gap: 7px;
  font-size: 19px;
  font-weight: 700;
}

.hero-metric__value small {
  color: var(--lime);
  font-size: 14px;
  font-weight: 600;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}

.kpi-card {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: flex-start;
  padding: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  gap: 13px;
}

.kpi-card::after {
  position: absolute;
  right: -22px;
  bottom: -32px;
  width: 90px;
  height: 90px;
  content: "";
  background: radial-gradient(circle, var(--kpi-tint, rgba(23, 109, 93, 0.08)) 0%, transparent 70%);
  border-radius: 50%;
}

.kpi-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: var(--kpi-color, var(--brand));
  background: var(--kpi-bg, var(--brand-soft));
  border-radius: 10px;
}

.kpi-icon svg {
  width: 17px;
  height: 17px;
}

.kpi-card__copy {
  min-width: 0;
  flex: 1;
}

.kpi-label {
  color: var(--muted);
  font-size: 14px;
}

.kpi-value {
  display: flex;
  align-items: baseline;
  margin-top: 5px;
  gap: 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.kpi-value small {
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 500;
}

.kpi-foot {
  display: flex;
  align-items: center;
  margin-top: 7px;
  color: var(--muted-light);
  gap: 5px;
  font-size: 14px;
}

.delta {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.delta.down {
  color: var(--red);
  background: var(--red-soft);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.85fr);
  gap: 16px;
  margin-top: 16px;
}

.chart-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chart-meta__item {
  display: flex;
  align-items: center;
  color: var(--muted);
  gap: 6px;
  font-size: 14px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
}

.legend-dot.lime {
  background: var(--lime);
}

.legend-dot.blue {
  background: var(--blue);
}

.trend-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.trend-grid-line {
  stroke: #edf1ee;
  stroke-width: 1;
}

.trend-area {
  fill: url(#scoreGradient);
}

.trend-line {
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.trend-point {
  fill: #fff;
  stroke: var(--brand);
  stroke-width: 2;
}

.trend-point.current {
  fill: var(--lime);
  stroke: var(--brand-deep);
  stroke-width: 3;
}

.trend-label {
  fill: #94a19c;
  font-size: 14px;
}

.trend-value-label {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.score-summary {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.mini-gauge {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  background: conic-gradient(var(--brand) 0deg 292deg, var(--surface-strong) 292deg);
  border-radius: 50%;
}

.mini-gauge::before {
  position: absolute;
  width: 88px;
  height: 88px;
  content: "";
  background: #fff;
  border-radius: 50%;
}

.mini-gauge__value {
  position: relative;
  z-index: 1;
  text-align: center;
}

.mini-gauge__value strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.mini-gauge__value span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.score-summary__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.score-summary__row strong {
  color: var(--ink-soft);
  font-size: 14px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.category-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 9px;
}

.category-row__label {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  background: var(--surface-strong);
  border-radius: 20px;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
  transition: width 0.5s ease;
}

.bar-fill.red {
  background: var(--red);
}

.bar-fill.amber {
  background: #d99729;
}

.bar-fill.blue {
  background: var(--blue);
}

.bar-fill.violet {
  background: var(--violet);
}

.category-row__count {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid #edf1ee;
  gap: 10px;
}

.activity-item:first-child {
  padding-top: 0;
}

.activity-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
}

.activity-icon svg {
  width: 13px;
  height: 13px;
}

.activity-copy {
  min-width: 0;
}

.activity-title {
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-detail {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  color: var(--muted-light);
  font-size: 14px;
  white-space: nowrap;
}

.table-shell {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  height: 39px;
  padding: 0 13px;
  color: var(--muted);
  background: #fafbfa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.data-table th:first-child {
  padding-left: 18px;
}

.data-table th:last-child {
  padding-right: 18px;
}

.data-table td {
  height: 54px;
  padding: 9px 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid #edf1ee;
  vertical-align: middle;
}

.data-table td:first-child {
  padding-left: 18px;
}

.data-table td:last-child {
  padding-right: 18px;
}

.data-table tbody tr {
  transition: background 0.14s ease;
}

.data-table tbody tr:hover {
  background: #fbfcfb;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .clickable-row {
  cursor: pointer;
}

.cell-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cell-title__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
}

.cell-title__icon svg {
  width: 14px;
  height: 14px;
}

.cell-title__copy {
  min-width: 0;
}

.cell-title__copy strong {
  display: block;
  overflow: hidden;
  max-width: 300px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-title__copy span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  max-width: 260px;
  color: var(--muted-light);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 7px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.tag::before {
  width: 4px;
  height: 4px;
  content: "";
  background: var(--muted-light);
  border-radius: 50%;
}

.tag.no-dot::before {
  display: none;
}

.tag.teal,
.tag.success {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: transparent;
}

.tag.teal::before,
.tag.success::before {
  background: #37a37d;
}

.tag.blue,
.tag.info {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: transparent;
}

.tag.blue::before,
.tag.info::before {
  background: var(--blue);
}

.tag.amber,
.tag.warning {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: transparent;
}

.tag.amber::before,
.tag.warning::before {
  background: #d99729;
}

.tag.red,
.tag.danger,
.tag.critical {
  color: var(--red);
  background: var(--red-soft);
  border-color: transparent;
}

.tag.red::before,
.tag.danger::before,
.tag.critical::before {
  background: var(--red);
}

.tag.violet {
  color: var(--violet);
  background: var(--violet-soft);
  border-color: transparent;
}

.tag.violet::before {
  background: var(--violet);
}

.tag.lime {
  color: #47641a;
  background: var(--lime-soft);
  border-color: transparent;
}

.tag.lime::before {
  background: #86b735;
}

.tag.pink {
  color: var(--pink);
  background: var(--pink-soft);
  border-color: transparent;
}

.tag.pink::before {
  background: var(--pink);
}

.tag.plain {
  color: var(--muted);
  background: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  content: "";
  background: #9aa6a1;
  border-radius: 50%;
}

.status-pill.active,
.status-pill.success,
.status-pill.已发布 {
  color: var(--brand);
}

.status-pill.active::before,
.status-pill.success::before,
.status-pill.已发布::before {
  background: #3ca47e;
  box-shadow: 0 0 0 3px rgba(60, 164, 126, 0.1);
}

.status-pill.warning,
.status-pill.处理中,
.status-pill.整改中 {
  color: var(--amber);
}

.status-pill.warning::before,
.status-pill.处理中::before,
.status-pill.整改中::before {
  background: #d99729;
}

.status-pill.danger,
.status-pill.待复核 {
  color: var(--red);
}

.status-pill.danger::before,
.status-pill.待复核::before {
  background: var(--red);
}

.status-pill.blue {
  color: var(--blue);
}

.status-pill.blue::before {
  background: var(--blue);
}

.progress {
  display: flex;
  min-width: 88px;
  align-items: center;
  gap: 7px;
}

.progress__track {
  width: 64px;
  height: 5px;
  overflow: hidden;
  background: var(--surface-strong);
  border-radius: 10px;
}

.progress__fill {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
}

.progress__value {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.member-cell span:last-child {
  color: var(--ink-soft);
  font-size: 14px;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.table-actions .icon-button {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
}

.table-actions .icon-button svg {
  width: 14px;
  height: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  gap: 8px;
}

.filters + .table-shell {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.filter-spacer {
  flex: 1;
}

.search-field {
  position: relative;
  display: flex;
  min-width: 220px;
  height: 35px;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: var(--muted-light);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 100%;
  padding: 0 11px 0 33px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.search-field input::placeholder {
  color: var(--muted-light);
}

.search-field input:focus {
  border-color: #78a99d;
  box-shadow: 0 0 0 3px rgba(23, 109, 93, 0.08);
}

.select {
  height: 35px;
  min-width: 115px;
  padding: 0 30px 0 10px;
  color: var(--ink-soft);
  background:
    linear-gradient(45deg, transparent 50%, #7a8782 50%) calc(100% - 13px) 15px / 4px 4px no-repeat,
    linear-gradient(135deg, #7a8782 50%, transparent 50%) calc(100% - 9px) 15px / 4px 4px no-repeat,
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  appearance: none;
  cursor: pointer;
  font-size: 14px;
}

.select:focus {
  border-color: #78a99d;
  box-shadow: 0 0 0 3px rgba(23, 109, 93, 0.08);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-strong);
  border-radius: 8px;
  gap: 2px;
}

.segmented button {
  min-height: 27px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.segmented button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 34, 31, 0.1);
}

.tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.tab {
  position: relative;
  min-height: 42px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--ink);
}

.tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand);
  border-radius: 2px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 226px;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.project-card:hover {
  border-color: #cfdbd4;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--brand);
  background: linear-gradient(135deg, #ecf7f1, #e0f0e7);
  border: 1px solid #d8e9e0;
  border-radius: 11px;
}

.project-mark svg {
  width: 18px;
  height: 18px;
}

.project-card__title {
  margin: 14px 0 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.project-card__domain {
  display: flex;
  align-items: center;
  color: var(--muted-light);
  gap: 5px;
  font-size: 14px;
}

.project-card__domain svg {
  width: 11px;
  height: 11px;
}

.project-card__stats {
  display: flex;
  align-items: center;
  margin-top: 17px;
  padding: 11px 0;
  border-top: 1px solid #edf1ee;
  border-bottom: 1px solid #edf1ee;
}

.project-stat {
  flex: 1;
  border-right: 1px solid #edf1ee;
  text-align: center;
}

.project-stat:first-child {
  text-align: left;
}

.project-stat:first-child .project-stat__value {
  justify-content: flex-start;
}

.project-stat:last-child {
  border-right: 0;
}

.project-stat__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--ink);
  gap: 2px;
  font-size: 15px;
  font-weight: 700;
}

.project-stat__value small {
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 500;
}

.project-stat__label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.project-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 13px;
  gap: 12px;
}

.project-card__owner {
  display: flex;
  align-items: center;
  color: var(--muted);
  gap: 6px;
  font-size: 14px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 5px;
}

label:has(input[name="template"]:checked) .side-card {
  border-color: #a9cdbf !important;
  box-shadow: 0 0 0 3px rgba(23, 109, 93, 0.07) !important;
}

.score-badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.05em;
}

.score-badge small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.score-badge.is-warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.score-badge.is-danger {
  color: var(--red);
  background: var(--red-soft);
}

.detail-header {
  position: relative;
  display: grid;
  min-height: 190px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 25px 27px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(19, 48, 42, 0.98), rgba(22, 66, 56, 0.94)),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.05) 8px 9px);
  border-radius: var(--radius-lg);
  gap: 20px;
}

.detail-header::before {
  position: absolute;
  top: -120px;
  right: -20px;
  width: 330px;
  height: 330px;
  content: "";
  border: 1px solid rgba(201, 239, 116, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 36px rgba(201, 239, 116, 0.03),
    0 0 0 77px rgba(201, 239, 116, 0.02);
}

.detail-header__main {
  position: relative;
  z-index: 1;
}

.detail-header__kicker {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #a9c0b8;
  gap: 8px;
  font-size: 14px;
}

.detail-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.detail-header__domain {
  display: flex;
  align-items: center;
  margin-top: 8px;
  color: #aac0b8;
  gap: 6px;
  font-size: 14px;
}

.detail-header__kicker .detail-header__domain {
  margin-top: 0;
  margin-left: 4px;
  color: #98b0a8;
  font-size: 14px;
}

.detail-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 21px;
  gap: 18px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.detail-meta__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--lime);
  background: rgba(201, 239, 116, 0.1);
  border-radius: 7px;
}

.detail-meta__icon svg {
  width: 13px;
  height: 13px;
}

.detail-meta__copy span {
  display: block;
  color: #8da69d;
  font-size: 14px;
}

.detail-meta__copy strong {
  display: block;
  color: #f1f8f4;
  font-size: 14px;
  font-weight: 600;
}

.detail-header__score {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-score {
  text-align: center;
}

.detail-score strong {
  display: block;
  color: var(--lime);
  font-size: 54px;
  font-weight: 720;
  letter-spacing: -0.07em;
  line-height: 1;
}

.detail-score span {
  display: block;
  margin-top: 6px;
  color: #a6bdb5;
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(285px, 0.72fr);
  gap: 16px;
  margin-top: 16px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-strip__item {
  padding: 17px 20px;
  border-right: 1px solid var(--line);
}

.metric-strip__item:last-child {
  border-right: 0;
}

.metric-strip__label {
  color: var(--muted);
  font-size: 14px;
}

.metric-strip__value {
  display: flex;
  align-items: baseline;
  margin-top: 5px;
  gap: 5px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.metric-strip__value small {
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 500;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1ee;
  gap: 18px;
  font-size: 14px;
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row__label {
  flex: 0 0 auto;
  color: var(--muted);
}

.info-row__value {
  color: var(--ink-soft);
  font-weight: 550;
  text-align: right;
}

.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.7fr);
  align-items: start;
  gap: 16px;
}

.issue-hero {
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.issue-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.issue-code {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  gap: 5px;
  font-size: 14px;
  font-weight: 650;
}

.issue-hero h1 {
  margin: 12px 0 7px;
  font-size: 24px;
  font-weight: 690;
  letter-spacing: -0.04em;
  line-height: 1.34;
}

.issue-hero__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.issue-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.issue-hero__tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 6px;
}

.ai-banner {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  margin-top: 19px;
  background: linear-gradient(135deg, #f2f9e3, #f7fbf0);
  border: 1px solid #e1edc7;
  border-radius: 11px;
  gap: 11px;
}

.ai-banner__icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  color: #52731c;
  background: #e7f3c9;
  border-radius: 8px;
}

.ai-banner__icon svg {
  width: 15px;
  height: 15px;
}

.ai-banner__copy {
  flex: 1;
}

.ai-banner__title {
  display: flex;
  align-items: center;
  margin: 0 0 3px;
  color: #3f5c17;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.ai-confidence {
  padding: 2px 5px;
  color: #587724;
  background: rgba(255, 255, 255, 0.64);
  border-radius: 4px;
  font-size: 14px;
}

.ai-banner__text {
  margin: 0;
  color: #64803b;
  font-size: 14px;
  line-height: 1.65;
}

.section-block {
  padding: 21px 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-block + .section-block {
  margin-top: 14px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.section-title span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 5px;
  font-size: 14px;
}

.code-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.code-panel {
  overflow: hidden;
  background: #14201e;
  border-radius: 10px;
}

.code-panel__head {
  display: flex;
  height: 31px;
  align-items: center;
  padding: 0 11px;
  color: #9badA6;
  background: #1a2926;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 6px;
  font-size: 14px;
}

.code-panel__dot {
  width: 5px;
  height: 5px;
  background: #61736d;
  border-radius: 50%;
}

.code-panel__dot.good {
  background: var(--lime);
}

.code-panel pre {
  min-height: 130px;
  padding: 13px;
  margin: 0;
  overflow: auto;
  color: #c5d3cd;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.issue-preview {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.issue-preview__browser {
  display: flex;
  height: 35px;
  align-items: center;
  padding: 0 11px;
  background: #f3f6f3;
  border-bottom: 1px solid var(--line);
  gap: 5px;
}

.browser-dot {
  width: 7px;
  height: 7px;
  background: #d6ddd8;
  border-radius: 50%;
}

.browser-url {
  min-width: 0;
  flex: 1;
  padding: 4px 8px;
  margin-left: 7px;
  overflow: hidden;
  color: var(--muted);
  background: #fff;
  border-radius: 5px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-canvas {
  position: relative;
  min-height: 250px;
  padding: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(0deg, transparent 0 15px, #edf1ee 15px 16px),
    repeating-linear-gradient(90deg, transparent 0 15px, #edf1ee 15px 16px);
}

.preview-page-top {
  height: 24px;
  margin-bottom: 18px;
  background: #f1f5f2;
  border-radius: 4px;
}

.preview-title {
  width: 48%;
  height: 12px;
  margin-bottom: 10px;
  background: #dce5df;
  border-radius: 3px;
}

.preview-line {
  width: 82%;
  height: 7px;
  margin-bottom: 7px;
  background: #eef2ef;
  border-radius: 3px;
}

.preview-line.short {
  width: 62%;
}

.preview-element {
  position: relative;
  width: 150px;
  height: 38px;
  margin-top: 23px;
  background: #176d5d;
  border: 2px solid #ff7d66;
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(255, 125, 102, 0.13);
}

.preview-element::before {
  position: absolute;
  top: 15px;
  left: 50px;
  width: 50px;
  height: 6px;
  content: "";
  background: rgba(255, 255, 255, 0.74);
  border-radius: 2px;
}

.preview-marker {
  position: absolute;
  top: -26px;
  left: -2px;
  display: flex;
  height: 21px;
  align-items: center;
  padding: 0 7px;
  color: #fff;
  background: #e66550;
  border-radius: 4px 4px 4px 0;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.preview-marker::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 0;
  content: "";
  border-top: 5px solid #e66550;
  border-right: 5px solid transparent;
}

.node-inspector {
  background: #fafbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.node-row {
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border-bottom: 1px solid #e9eeea;
  gap: 8px;
  font-size: 14px;
}

.node-row:last-child {
  border-bottom: 0;
}

.node-tag {
  min-width: 57px;
  color: var(--brand);
  font-family: "Cascadia Code", monospace;
  font-size: 14px;
}

.node-detail {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-card {
  padding: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-card + .side-card {
  margin-top: 14px;
}

.side-card__title {
  margin: 0 0 15px;
  font-size: 14px;
  font-weight: 700;
}

.assignment {
  display: flex;
  align-items: center;
  padding: 11px;
  background: var(--surface-soft);
  border-radius: 9px;
  gap: 9px;
}

.assignment__copy {
  flex: 1;
}

.assignment__copy span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.assignment__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.affected-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.affected-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 5px;
  font-size: 14px;
}

.affected-chip svg {
  width: 11px;
  height: 11px;
  color: var(--brand);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline::before {
  position: absolute;
  top: 5px;
  bottom: 7px;
  left: 7px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 9px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  background: var(--brand);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--brand);
}

.timeline-copy strong {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.timeline-copy p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.timeline-copy span {
  color: var(--muted-light);
  font-size: 14px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(235px, 1fr));
  align-items: start;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 8px;
}

.kanban-column {
  min-height: 400px;
  padding: 11px;
  background: #eef2ef;
  border-radius: var(--radius);
}

.kanban-column.drag-over {
  background: #e6eee9;
  box-shadow: inset 0 0 0 2px rgba(23, 109, 93, 0.25);
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 11px;
  gap: 8px;
}

.kanban-head__title {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.kanban-head__dot {
  width: 7px;
  height: 7px;
  background: #9aa6a1;
  border-radius: 50%;
}

.kanban-head__dot.progress {
  background: var(--amber);
}

.kanban-head__dot.review {
  background: var(--blue);
}

.kanban-head__dot.done {
  background: #35a27b;
}

.kanban-count {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.kanban-cards {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  gap: 8px;
}

.task-card {
  padding: 13px;
  background: #fff;
  border: 1px solid #dfe5e1;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(20, 34, 31, 0.035);
  cursor: grab;
  transition:
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.task-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.task-card.dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.task-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-card__code {
  color: var(--muted-light);
  font-family: "Cascadia Code", monospace;
  font-size: 14px;
}

.task-card h3 {
  margin: 9px 0 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.task-card__project {
  display: flex;
  align-items: center;
  color: var(--muted);
  gap: 4px;
  font-size: 14px;
}

.task-card__project svg {
  width: 10px;
  height: 10px;
}

.task-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #eef2ef;
}

.task-due {
  display: flex;
  align-items: center;
  color: var(--muted-light);
  gap: 4px;
  font-size: 14px;
}

.task-due svg {
  width: 10px;
  height: 10px;
}

.task-due.urgent {
  color: var(--red);
}

.scan-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 110px 120px max-content;
  align-items: center;
  padding: 15px 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  gap: 13px;
}

.scan-card > .tag:last-child {
  justify-self: end;
}

.scan-card.clickable-scan {
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.scan-card.clickable-scan:hover {
  border-color: #c9d8d0;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.scan-card + .scan-card {
  margin-top: 9px;
}

.scan-card.is-running {
  overflow: hidden;
  border-color: #cfe1d7;
  background: linear-gradient(90deg, #fff, #fbfdf8);
}

.scan-card.is-running::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 22%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(201, 239, 116, 0.13), transparent);
  animation: scanShine 2.8s linear infinite;
}

@keyframes scanShine {
  to {
    left: 110%;
  }
}

.scan-card__icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 10px;
}

.scan-card__icon svg {
  width: 17px;
  height: 17px;
}

.scan-card__copy {
  min-width: 0;
}

.scan-card__copy strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-card__copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-card__stats {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.scan-card__stats strong {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.scan-volume-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  height: 194px;
  align-items: stretch;
  padding: 14px 4px 0;
  gap: 8px;
}

.scan-volume-chart::before {
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 4px;
  bottom: 28px;
  left: 4px;
  content: "";
  background-image: linear-gradient(to top, #edf1ee 1px, transparent 1px);
  background-size: 100% 25%;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.scan-volume-chart__item {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 28px;
  align-items: stretch;
  justify-items: center;
}

.scan-volume-chart__plot {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
}

.scan-volume-chart__plot i {
  display: block;
  width: min(26px, 72%);
  height: var(--bar-height);
  min-height: 3px;
  background: linear-gradient(180deg, #4a9a82, #176d5d);
  border-radius: 4px 4px 0 0;
}

.scan-volume-chart__date {
  display: block;
  overflow: visible;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
}

.scan-volume-chart__value {
  position: absolute;
  bottom: calc(var(--bar-height) + 5px);
  left: 50%;
  color: var(--ink-soft);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.scan-volume-chart__item:first-child .scan-volume-chart__value {
  left: 0;
  transform: none;
}

.scan-volume-chart__item:last-child .scan-volume-chart__value {
  right: 0;
  left: auto;
  transform: none;
}

.scan-volume-chart__item:first-child .scan-volume-chart__date {
  justify-self: start;
  text-align: left;
}

.scan-volume-chart__item:last-child .scan-volume-chart__date {
  justify-self: end;
  text-align: right;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.template-card {
  position: relative;
  display: flex;
  min-height: 225px;
  flex-direction: column;
  padding: 19px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.template-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--accent, var(--brand));
}

.template-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.template-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--accent, var(--brand));
  background: color-mix(in srgb, var(--accent, var(--brand)) 10%, white);
  border-radius: 10px;
}

.template-icon svg {
  width: 18px;
  height: 18px;
}

.template-card h3 {
  margin: 14px 0 5px;
  font-size: 14px;
  font-weight: 680;
}

.template-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.template-card__tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 5px;
}

.template-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  margin-top: auto;
  border-top: 1px solid #edf1ee;
  gap: 12px;
}

.template-usage {
  color: var(--muted-light);
  font-size: 14px;
}

.toggle {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 19px;
  flex: 0 0 34px;
  align-items: center;
  padding: 2px;
  background: #cfd8d3;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.toggle::after {
  width: 15px;
  height: 15px;
  content: "";
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(20, 34, 31, 0.2);
  transition: transform 0.18s ease;
}

.toggle[aria-checked="true"] {
  background: var(--brand);
}

.toggle[aria-checked="true"]::after {
  transform: translateX(15px);
}

.rule-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-row {
  display: grid;
  grid-template-columns: 88px minmax(220px, 1fr) 125px 105px 90px 40px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #edf1ee;
  gap: 13px;
}

.rule-row:last-child {
  border-bottom: 0;
}

.rule-row:hover {
  background: #fbfcfb;
}

.rule-code {
  color: var(--brand);
  font-family: "Cascadia Code", monospace;
  font-size: 14px;
  font-weight: 600;
}

.rule-name {
  font-size: 14px;
  font-weight: 600;
}

.rule-name span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.check-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 100px 90px 100px;
  align-items: center;
  padding: 14px 17px;
  border-bottom: 1px solid #edf1ee;
  gap: 10px;
}

.check-row:last-child {
  border-bottom: 0;
}

.check-box {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #fff;
  border: 1.5px solid #cbd5cf;
  border-radius: 5px;
  cursor: pointer;
}

.check-box svg {
  width: 11px;
  height: 11px;
}

.check-box.checked {
  background: var(--brand);
  border-color: var(--brand);
}

.check-box.failed {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.check-row__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.check-row__copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.check-progress-card {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 239, 116, 0.18), transparent 14rem),
    var(--brand-deep);
  border-color: transparent;
}

.check-progress-card .panel__title,
.check-progress-card .panel__sub {
  color: #fff;
}

.check-progress-card .panel__sub {
  opacity: 0.56;
}

.check-big-number {
  margin: 6px 0 3px;
  color: var(--lime);
  font-size: 45px;
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1;
}

.check-big-number small {
  color: #8fa79f;
  font-size: 14px;
  font-weight: 500;
}

.metric-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.metric-mini {
  padding: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.metric-mini span {
  display: block;
  color: #8da49c;
  font-size: 14px;
}

.metric-mini strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
}

.component-showcase {
  position: relative;
  min-height: 280px;
  padding: 25px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    repeating-linear-gradient(0deg, transparent 0 19px, #edf1ee 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, #edf1ee 19px 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.demo-card {
  max-width: 540px;
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.demo-form-row + .demo-form-row {
  margin-top: 13px;
}

.demo-form-row label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.demo-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
  font-size: 14px;
}

.demo-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 109, 93, 0.1);
}

.demo-error {
  display: flex;
  align-items: center;
  margin-top: 5px;
  color: var(--red);
  gap: 4px;
  font-size: 14px;
}

.demo-error svg {
  width: 10px;
  height: 10px;
}

.component-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.component-tab {
  min-height: 31px;
  padding: 0 11px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.component-tab.active {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #d5e7df;
}

.report-card {
  display: grid;
  cursor: pointer;
  grid-template-columns: 44px minmax(0, 1fr) 100px 90px 110px 40px;
  align-items: center;
  padding: 15px 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  gap: 13px;
}

.report-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.report-card + .report-card {
  margin-top: 9px;
}

.report-icon {
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 8px;
}

.report-icon svg {
  width: 18px;
  height: 18px;
}

.report-card__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.report-card__copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.report-score {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.report-score small {
  display: block;
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 400;
}

.report-preview {
  max-width: 900px;
  padding: 0;
  margin: 0 auto 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.report-cover {
  position: relative;
  min-height: 270px;
  padding: 38px 43px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #102b26, #1d473d);
}

.report-cover::after {
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(201, 239, 116, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(201, 239, 116, 0.035),
    0 0 0 105px rgba(201, 239, 116, 0.02);
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c2d5ce;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.report-brand__mark {
  width: 20px;
  height: 20px;
  background: var(--lime);
  border-radius: 6px;
}

.report-cover h1 {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin: 47px 0 11px;
  font-size: 30px;
  font-weight: 680;
  letter-spacing: -0.05em;
  line-height: 1.3;
}

.report-cover p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #9fb5ad;
  font-size: 14px;
}

.report-cover__meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 35px;
  gap: 35px;
}

.report-cover__meta span {
  display: block;
  color: #789087;
  font-size: 14px;
}

.report-cover__meta strong {
  display: block;
  margin-top: 3px;
  color: #eaf4ef;
  font-size: 14px;
}

.report-body {
  padding: 34px 43px 43px;
}

.report-summary {
  display: flex;
  align-items: center;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  gap: 23px;
}

.report-summary__score {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 43px;
  font-weight: 720;
  letter-spacing: -0.06em;
}

.report-summary__score span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.report-summary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.report-section {
  margin-top: 27px;
}

.report-section h2 {
  padding-bottom: 9px;
  margin: 0 0 13px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.report-kpi {
  padding: 13px;
  background: var(--surface-soft);
  border-radius: 8px;
}

.report-kpi span {
  color: var(--muted);
  font-size: 14px;
}

.report-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.report-table th,
.report-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.report-table th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 14px;
}

.insight-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 16px;
}

.insight-number {
  font-size: 35px;
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1;
}

.insight-number span {
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.benchmark {
  margin-top: 14px;
}

.benchmark__row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}

.benchmark__label {
  color: var(--muted);
  font-size: 14px;
}

.benchmark__bar {
  height: 9px;
  overflow: hidden;
  background: var(--surface-strong);
  border-radius: 10px;
}

.benchmark__fill {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
}

.benchmark__fill.other {
  background: #c2cdc7;
}

.benchmark__value {
  color: var(--ink-soft);
  font-size: 14px;
  text-align: right;
}

.cohort-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cohort-card {
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cohort-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--cohort-color, var(--brand));
  background: var(--cohort-bg, var(--brand-soft));
  border-radius: 10px;
}

.cohort-icon svg {
  width: 17px;
  height: 17px;
}

.cohort-card h3 {
  margin: 13px 0 4px;
  font-size: 14px;
  font-weight: 680;
}

.cohort-card p {
  min-height: 32px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cohort-metric {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #edf1ee;
}

.cohort-metric strong {
  font-size: 19px;
  font-weight: 700;
}

.cohort-metric span {
  color: var(--muted-light);
  font-size: 14px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.person-card {
  position: relative;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.person-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-card__copy {
  flex: 1;
}

.person-card__copy strong {
  display: block;
  font-size: 14px;
}

.person-card__copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.person-card__status {
  position: absolute;
  top: 19px;
  right: 17px;
  width: 7px;
  height: 7px;
  background: #c8d0cc;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e1e6e3;
}

.person-card__status.online {
  background: #3da57d;
}

.person-card__status.busy {
  background: #d99729;
}

.person-card__info {
  padding-top: 12px;
  margin-top: 13px;
  border-top: 1px solid #edf1ee;
}

.person-card__info div {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.person-card__info strong {
  color: var(--ink-soft);
  font-weight: 550;
}

.org-card {
  display: flex;
  align-items: center;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  gap: 13px;
}

.org-card + .org-card {
  margin-top: 9px;
}

.org-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
}

.org-card__copy {
  min-width: 0;
  flex: 1;
}

.org-card__copy strong {
  display: block;
  font-size: 14px;
}

.org-card__copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.org-card__stat {
  min-width: 70px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.org-card__stat strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.notification-page-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: flex-start;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1ee;
  gap: 12px;
}

.notification-page-row:last-child {
  border-bottom: 0;
}

.notification-page-row.unread {
  background: #fcfdfb;
}

.notification-page-row__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.notification-page-row__copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.notification-page-row__time {
  color: var(--muted-light);
  font-size: 14px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.integration-card {
  padding: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.integration-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
}

.integration-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--mark-color, var(--ink));
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.integration-card h3 {
  margin: 13px 0 5px;
  font-size: 14px;
}

.integration-card p {
  min-height: 43px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.integration-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 13px;
  border-top: 1px solid #edf1ee;
  gap: 10px;
}

.integration-card__sync {
  color: var(--muted-light);
  font-size: 14px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.settings-nav {
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-nav button {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  gap: 8px;
  font-size: 14px;
  text-align: left;
}

.settings-nav button:hover {
  background: var(--surface-soft);
}

.settings-nav button.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 650;
}

.settings-nav svg {
  width: 14px;
  height: 14px;
}

.settings-section + .settings-section {
  padding-top: 23px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
}

.settings-section h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.settings-section > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.form-field label small {
  margin-left: 4px;
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 400;
}

.form-control {
  width: 100%;
  min-height: 37px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-control:hover {
  border-color: #c2cec7;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 109, 93, 0.09);
}

textarea.form-control {
  min-height: 85px;
  resize: vertical;
}

.form-help {
  color: var(--muted-light);
  font-size: 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #edf1ee;
  gap: 20px;
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-row__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.toggle-row__copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  gap: 8px;
}

.empty-state {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 12px;
  color: var(--muted-light);
  background: var(--surface-soft);
  border-radius: 14px;
}

.empty-state h3 {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 14px;
}

.empty-state p {
  margin: 0 0 14px;
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 24, 21, 0.48);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.18s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.modal {
  width: min(620px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.22s ease both;
}

.modal.modal-lg {
  width: min(790px, 100%);
}

.modal.modal-sm {
  width: min(430px, 100%);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 21px 22px 15px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}

.modal__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.modal__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.modal__body {
  padding: 20px 22px;
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line);
  gap: 8px;
}

.modal__foot .modal-secondary {
  margin-right: auto;
}

.command-modal {
  align-self: start;
  max-height: min(78vh, 660px);
  margin-top: 8vh;
  overflow: hidden;
  border-radius: 15px;
}

.command-search {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.command-search svg {
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.command-search input {
  width: 100%;
  height: 57px;
  padding: 0 55px 0 48px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14px;
}

.command-search .key-hint {
  position: absolute;
  right: 17px;
}

.command-results {
  max-height: 490px;
  padding: 7px;
  overflow-y: auto;
}

.command-section-label {
  padding: 9px 11px 6px;
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-item {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  gap: 10px;
  text-align: left;
}

.command-item:hover,
.command-item:focus {
  background: var(--surface-soft);
}

.command-item__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 7px;
}

.command-item__icon svg {
  width: 13px;
  height: 13px;
}

.command-item__copy {
  min-width: 0;
  flex: 1;
}

.command-item__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.command-item__copy span {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown {
  position: fixed;
  z-index: 60;
  width: 318px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-md);
  animation: modalIn 0.15s ease both;
}

.dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.dropdown__head strong {
  font-size: 14px;
}

.dropdown__list {
  max-height: 380px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1ee;
  gap: 9px;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.unread {
  background: #fcfdfb;
}

.notification-item__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 7px;
}

.notification-item__icon svg {
  width: 13px;
  height: 13px;
}

.notification-item__copy {
  min-width: 0;
  flex: 1;
}

.notification-item__copy strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item__copy p {
  display: -webkit-box;
  margin: 2px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-item__time {
  color: var(--muted-light);
  font-size: 14px;
}

.dropdown__foot {
  padding: 9px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.profile-menu {
  width: 220px;
}

.profile-menu__head {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-menu__head strong {
  display: block;
  font-size: 14px;
}

.profile-menu__head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.profile-menu__item {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  gap: 9px;
  font-size: 14px;
  text-align: left;
}

.profile-menu__item:hover {
  background: var(--surface-soft);
}

.profile-menu__item svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: flex;
  width: min(350px, calc(100vw - 40px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  padding: 12px;
  color: #f8fcfa;
  background: #17302a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  gap: 9px;
  pointer-events: auto;
  animation: toastIn 0.22s ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.toast.is-leaving {
  animation: toastOut 0.2s ease forwards;
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.toast__icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #17302a;
  background: var(--lime);
  border-radius: 8px;
}

.toast.error .toast__icon {
  color: #fff;
  background: var(--red);
}

.toast__icon svg {
  width: 14px;
  height: 14px;
}

.toast__copy strong {
  display: block;
  font-size: 14px;
}

.toast__copy span {
  display: block;
  margin-top: 1px;
  color: #9eb2ab;
  font-size: 14px;
}

.toast__close {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  color: #829b93;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.toast__close svg {
  width: 12px;
  height: 12px;
}

.danger-text {
  color: var(--red) !important;
}

.success-text {
  color: var(--brand) !important;
}

.nowrap {
  white-space: nowrap;
}

.center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-16 {
  margin-bottom: 16px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 17px;
  border-top: 1px solid var(--line);
}

.pagination__info {
  color: var(--muted);
  font-size: 14px;
}

.pagination__buttons {
  display: flex;
  gap: 4px;
}

.pagination__buttons button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.pagination__buttons button.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.pagination__buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__buttons svg {
  width: 11px;
  height: 11px;
}

.sidebar-scrim {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  background: rgba(9, 24, 21, 0.42);
  backdrop-filter: blur(3px);
}

@media (max-width: 1280px) {
  .topbar__center {
    justify-content: flex-start;
    padding-left: 22px;
  }

  .live-indicator {
    display: none;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cohort-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitor-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitor-map-panel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .monitor-map {
    min-height: 390px;
  }

  .monitor-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitor-trend-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 230px;
  }

  .page-content {
    padding: 24px 22px 40px;
  }

  .topbar {
    padding: 0 22px;
  }

  .global-search {
    width: 270px;
  }

  .profile-button__copy,
  .profile-button > svg {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .hero__side {
    gap: 13px;
  }

  .hero-metrics {
    display: none;
  }

  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .grid-2-1,
  .grid-1-2 {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .issue-layout {
    grid-template-columns: 1fr;
  }

  .issue-layout > aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .side-card + .side-card {
    margin-top: 0;
  }

  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitor-stage__head {
    grid-template-columns: minmax(190px, 1fr) auto;
  }

  .monitor-clock {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 4px;
  }

  .monitor-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .monitor-kpi:nth-child(n + 4) {
    min-height: 86px;
  }
}

@media (max-width: 860px) {
  .sidebar {
    width: min(286px, 86vw);
    transform: translateX(-102%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-scrim.open {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }

  .icon-button.mobile-menu {
    display: inline-grid;
  }

  .topbar {
    padding: 0 16px;
  }

  .topbar__center {
    display: none;
  }

  .topbar__left {
    flex: 1;
  }

  .breadcrumb__root,
  .breadcrumb__sep {
    display: none;
  }

  .page-content {
    padding: 20px 16px 36px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__side {
    display: none;
  }

  .hero {
    min-height: 235px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip__item:nth-child(2) {
    border-right: 0;
  }

  .metric-strip__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .detail-header {
    grid-template-columns: 1fr;
  }

  .detail-header__score {
    display: none;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    display: flex;
    overflow-x: auto;
  }

  .settings-nav button {
    width: auto;
    flex: 0 0 auto;
    padding: 0 12px;
  }

  .rule-row {
    grid-template-columns: 78px minmax(180px, 1fr) 100px 80px 40px;
  }

  .rule-row > :nth-child(5) {
    display: none;
  }

  .check-row {
    grid-template-columns: 28px minmax(0, 1fr) 80px 80px;
  }

  .check-row > :nth-child(4) {
    display: none;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-story,
  .login-main {
    min-height: auto;
  }

  .login-story {
    padding: 30px 24px 32px;
  }

  .login-story__copy {
    padding: 42px 0 28px;
  }

  .login-story__copy h1 {
    max-width: 620px;
    font-size: 38px;
  }

  .login-main {
    padding: 28px 18px 42px;
  }

  .monitor-main-grid {
    grid-template-columns: 1fr;
  }

  .monitor-map-panel {
    grid-column: auto;
  }

  .monitor-map {
    min-height: 360px;
  }

  .monitor-bottom-grid {
    grid-template-columns: 1fr;
  }

  .monitor-trend-panel {
    grid-column: auto;
  }
}

.ai-spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  border: 3px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .btn {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 40px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .search-field,
  .select,
  .form-control {
    min-height: 44px;
  }

  .pagination__buttons button {
    width: 34px;
    height: 34px;
  }

  .toggle {
    width: 46px;
    height: 28px;
    flex-basis: 46px;
  }

  .toggle::after {
    width: 24px;
    height: 24px;
  }

  .toggle[aria-checked="true"]::after {
    transform: translateX(18px);
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 19px;
  }

  .page-actions {
    width: 100%;
    overflow-x: auto;
  }

  .kpi-grid,
  .project-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .template-grid,
  .integration-grid,
  .people-grid,
  .cohort-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .hero__title {
    font-size: 25px;
  }

  .kpi-card {
    min-height: 98px;
  }

  .panel {
    padding: 16px;
  }

  .score-summary {
    grid-template-columns: 95px 1fr;
  }

  .mini-gauge {
    width: 91px;
    height: 91px;
  }

  .mini-gauge::before {
    width: 71px;
    height: 71px;
  }

  .mini-gauge__value strong {
    font-size: 23px;
  }

  .issue-layout > aside {
    grid-template-columns: 1fr;
  }

  .code-compare {
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 760px;
  }

  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field,
  .select {
    width: 100%;
  }

  .filter-spacer {
    display: none;
  }

  .scan-card {
    grid-template-columns: 38px minmax(0, 1fr) max-content;
  }

  .scan-volume-chart__item:nth-child(3) .scan-volume-chart__date,
  .scan-volume-chart__item:nth-child(7) .scan-volume-chart__date,
  .scan-volume-chart__item:nth-child(11) .scan-volume-chart__date {
    display: none;
  }

  .scan-card__stats,
  .scan-card > .progress {
    display: none;
  }

  .report-card {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
  }

  .report-card > :nth-child(3),
  .report-card > :nth-child(4),
  .report-card > :nth-child(5) {
    display: none;
  }

  .report-cover,
  .report-body {
    padding-right: 23px;
    padding-left: 23px;
  }

  .report-cover h1 {
    font-size: 24px;
  }

  .report-cover__meta {
    flex-wrap: wrap;
    gap: 17px;
  }

  .report-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .rule-row {
    grid-template-columns: 70px minmax(160px, 1fr) 36px;
  }

  .rule-row > :nth-child(3),
  .rule-row > :nth-child(4),
  .rule-row > :nth-child(5) {
    display: none;
  }

  .check-row {
    grid-template-columns: 26px minmax(0, 1fr) 75px;
  }

  .check-row > :nth-child(4),
  .check-row > :nth-child(5) {
    display: none;
  }

  .metric-strip__item {
    padding: 14px;
  }

  .detail-header {
    padding: 22px;
  }

  .detail-header__meta {
    gap: 12px;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 91vh;
    border-radius: 18px 18px 0 0;
  }

  .command-modal {
    margin-top: 0;
    border-radius: 18px 18px 0 0;
  }

  .topbar__right .icon-button:first-of-type {
    display: none;
  }

  .profile-button {
    padding-right: 4px;
  }

  .profile-button .avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .breadcrumb__current {
    max-width: 155px;
  }

  .toast-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .login-card {
    padding: 24px 18px;
  }

  .login-card__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .login-page {
    display: flex;
    flex-direction: column;
  }

  .login-main {
    order: -1;
    min-height: auto;
    padding: 24px 18px 30px;
  }

  .login-story {
    order: 0;
    min-height: auto;
    padding: 26px 22px;
  }

  .login-story__copy {
    padding: 24px 0 0;
  }

  .login-story__copy h1 {
    font-size: 32px;
  }

  .login-story__features,
  .login-story__foot {
    display: none;
  }

  .monitor-stage {
    padding: 11px;
    border-radius: 15px;
  }

  .monitor-stage__head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .monitor-clock {
    grid-column: auto;
    justify-content: flex-start;
  }

  .monitor-modes {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: auto;
  }

  .monitor-modes button {
    justify-content: center;
    padding: 0 9px;
  }

  .monitor-mode-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 6px 2px;
    gap: 8px;
  }

  .monitor-mode-bar > span {
    line-height: 1.55;
  }

  .monitor-mode-bar .inline {
    width: 100%;
    justify-content: space-between;
  }

  .monitor-critical-banner {
    grid-template-columns: 27px minmax(0, 1fr) auto;
  }

  .monitor-critical-banner > span:not(.monitor-critical-banner__icon) {
    display: none;
  }

  .monitor-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitor-kpi {
    min-height: 87px;
  }

  .monitor-kpi:last-child {
    grid-column: 1 / -1;
  }

  .monitor-map {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
    flex-basis: auto;
    gap: 8px;
  }

  .monitor-map::before,
  .monitor-map__ring,
  .monitor-map__links {
    display: none;
  }

  .monitor-node {
    position: static;
    width: auto;
    min-height: 82px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 9px;
    transform: none;
  }

  .monitor-node:hover {
    transform: none;
  }

  .monitor-node__score {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .monitor-node__name {
    font-size: 14px;
  }

  .monitor-node__meta {
    font-size: 14px;
  }

  .monitor-hub {
    position: static;
    width: 100%;
    height: 92px;
    grid-column: 1 / -1;
    border-radius: 10px;
    transform: none;
  }

  .monitor-hub__value {
    font-size: 26px;
  }

  .monitor-hub__label {
    bottom: 15px;
  }

  .monitor-map__legend {
    position: static;
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 2px;
  }

  .monitor-map__caption {
    position: static;
    grid-column: 1 / -1;
    align-items: flex-start;
    line-height: 1.5;
  }

  .monitor-duty {
    grid-template-columns: 1fr;
  }

  .monitor-stage__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .filters > .segmented {
    align-self: flex-start;
    width: max-content;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-card {
    min-height: 112px;
    padding: 14px;
  }

  .kpi-card__copy .kpi-value {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .sidebar,
  .topbar,
  .page-actions,
  .toast-stack {
    display: none !important;
  }

  .app-main {
    margin: 0;
  }

  .page-content {
    max-width: none;
    padding: 0;
  }

  body {
    background: #fff;
  }

  .report-preview {
    border: 0;
    box-shadow: none;
  }
}
