:root {
      color-scheme: light;
      --page: #f4f6f5;
      --surface: #ffffff;
      --surface-soft: #eef3f0;
      --surface-tint: #f8faf8;
      --line: #d9e2de;
      --line-strong: #adbbb5;
      --text: #202824;
      --muted: #60716a;
      --quiet: #8a9892;
      --green: #14885a;
      --green-soft: #dff3e9;
      --cyan: #057d8f;
      --cyan-soft: #d9f1f4;
      --blue: #3366c9;
      --blue-soft: #e2eafb;
      --amber: #a76500;
      --amber-soft: #fff0cf;
      --red: #c73933;
      --red-soft: #ffe2dd;
      --purple: #7257b5;
      --purple-soft: #ebe6fb;
      --radius: 8px;
      --shadow: 0 14px 34px rgba(29, 43, 37, 0.07);
      font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    body {
      min-width: 320px;
      margin: 0;
      background: var(--page);
      color: var(--text);
      letter-spacing: 0;
    }

    button,
    input,
    select {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    .shell {
      display: grid;
      min-height: 100vh;
      grid-template-columns: 286px minmax(0, 1fr);
    }

    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: auto;
      border-right: 1px solid var(--line);
      background: #fbfcfb;
      padding: 18px 14px;
    }

    .brand {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      padding: 0 6px 16px;
      border-bottom: 1px solid var(--line);
    }

    .brand-mark {
      display: grid;
      width: 38px;
      height: 38px;
      place-items: center;
      border-radius: 8px;
      background: var(--cyan);
      color: #fff;
      font-weight: 900;
    }

    .brand strong {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 15px;
    }

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

    .side-tools {
      display: grid;
      padding: 14px 2px 12px;
    }

    .side-search {
      position: relative;
    }

    .side-search svg,
    .search svg,
    .icon-btn svg,
    .primary-btn svg,
    .mini-icon svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .side-search svg,
    .search svg {
      position: absolute;
      top: 50%;
      left: 11px;
      color: var(--quiet);
      transform: translateY(-50%);
    }

    .side-search input,
    .search input,
    .select {
      width: 100%;
      height: 38px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--text);
      outline: none;
    }

    .side-search input,
    .search input {
      padding: 0 12px 0 36px;
    }

    .select {
      min-width: 126px;
      padding: 0 34px 0 12px;
    }

    .nav-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 8px 8px;
      color: var(--quiet);
      font-size: 12px;
      font-weight: 900;
    }

    .project-tree {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .project-group {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      overflow: hidden;
    }

    .project-group.is-collapsed .submenu {
      display: none;
    }

    .project-head {
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr) auto;
      gap: 9px;
      align-items: center;
      min-height: 42px;
      width: 100%;
      border: 0;
      background: transparent;
      color: var(--text);
      padding: 9px 10px;
      text-align: left;
    }

    .project-head strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
    }

    .mini-icon {
      display: grid;
      width: 24px;
      height: 24px;
      place-items: center;
      color: var(--muted);
    }

    .status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 24px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      padding: 0 8px;
      white-space: nowrap;
    }

    .status.ok {
      background: var(--green-soft);
      color: var(--green);
    }

    .status.warn {
      background: var(--amber-soft);
      color: var(--amber);
    }

    .status.bad {
      background: var(--red-soft);
      color: var(--red);
    }

    .status.info {
      background: var(--blue-soft);
      color: var(--blue);
    }

    .status.purple {
      background: var(--purple-soft);
      color: var(--purple);
    }

    .submenu {
      display: grid;
      gap: 2px;
      padding: 0 8px 9px 42px;
    }

    .submenu a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-height: 30px;
      border-radius: 7px;
      color: var(--muted);
      font-size: 13px;
      text-decoration: none;
      padding: 0 8px;
    }

    .submenu a.active {
      background: var(--surface-soft);
      color: var(--text);
      font-weight: 800;
    }

    .subpages {
      display: grid;
      gap: 2px;
      margin: 2px 0 6px 10px;
      padding-left: 10px;
      border-left: 1px solid var(--line);
    }

    .subpages a {
      min-height: 28px;
      color: var(--muted);
      font-size: 12px;
    }

    .subpages a.active {
      background: var(--surface-soft);
      color: var(--text);
      font-weight: 800;
    }

    .dot {
      width: 8px;
      height: 8px;
      flex: 0 0 auto;
      border-radius: 999px;
      background: var(--green);
    }

    .dot.warn {
      background: var(--amber);
    }

    .dot.bad {
      background: var(--red);
    }

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

    .main {
      min-width: 0;
    }

    .topbar {
      position: sticky;
      z-index: 8;
      top: 0;
      display: flex;
      align-items: center;
      gap: 14px;
      min-height: 72px;
      border-bottom: 1px solid var(--line);
      background: rgba(244, 246, 245, 0.92);
      padding: 14px 24px;
      backdrop-filter: blur(10px);
    }

    .menu-toggle {
      display: none;
    }

    .top-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .search {
      position: relative;
      width: min(310px, 30vw);
      min-width: 210px;
    }

    .icon-btn,
    .primary-btn {
      display: inline-grid;
      height: 38px;
      place-items: center;
      border-radius: 8px;
    }

    .icon-btn {
      width: 38px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--muted);
    }

    .primary-btn {
      grid-auto-flow: column;
      gap: 8px;
      border: 1px solid #0b6f7d;
      background: var(--cyan);
      color: #fff;
      font-weight: 900;
      padding: 0 14px;
    }

    .workspace {
      display: grid;
      gap: 18px;
      max-width: 1720px;
      margin: 0 auto;
      padding: 22px 24px 34px;
    }

    .executive-hero {
      display: grid;
      grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
      gap: 18px;
      align-items: stretch;
    }

    .hero-panel,
    .insight-panel,
    .status-card,
    .action-panel,
    .trend-panel {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: 0 12px 32px rgba(29, 43, 37, 0.06);
    }

    .hero-panel {
      display: grid;
      min-height: 372px;
      grid-template-rows: auto 1fr auto;
      gap: 22px;
      padding: 22px;
      overflow: hidden;
    }

    .hero-eyebrow {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .hero-title h2 {
      margin: 0;
      max-width: 680px;
      font-size: clamp(30px, 4vw, 52px);
      line-height: 1.05;
      letter-spacing: 0;
    }

    .hero-title p {
      max-width: 620px;
      margin: 14px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .hero-score {
      display: grid;
      grid-template-columns: 160px minmax(0, 1fr);
      gap: 22px;
      align-items: center;
    }

    .score-ring {
      display: grid;
      width: 154px;
      height: 154px;
      place-items: center;
      border-radius: 999px;
      background: conic-gradient(var(--green) 0 340deg, #e6ece9 340deg 360deg);
      position: relative;
    }

    .score-ring::after {
      position: absolute;
      inset: 12px;
      border-radius: inherit;
      background: #fff;
      content: "";
    }

    .score-ring strong,
    .score-ring span {
      position: relative;
      z-index: 1;
      display: block;
      text-align: center;
    }

    .score-ring strong {
      font-size: 34px;
      line-height: 1;
    }

    .score-ring span {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

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

    .score-copy strong {
      display: block;
      font-size: 20px;
      line-height: 1.2;
    }

    .score-copy p {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

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

    .hero-meta div {
      min-width: 0;
      border-top: 1px solid var(--line);
      padding-top: 12px;
    }

    .hero-meta strong,
    .hero-meta span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .hero-meta strong {
      font-size: 22px;
      line-height: 1.1;
    }

    .hero-meta span {
      margin-top: 5px;
      color: var(--quiet);
      font-size: 12px;
      font-weight: 800;
    }

    .insight-panel {
      display: grid;
      min-height: 372px;
      grid-template-rows: auto 1fr auto;
      overflow: hidden;
    }

    .insight-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 64px;
      border-bottom: 1px solid var(--line);
      padding: 16px 18px;
    }

    .insight-head h2 {
      margin: 0;
      font-size: 16px;
    }

    .insight-head p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .signal-map {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px;
      background: var(--line);
    }

    .signal-node {
      display: grid;
      gap: 12px;
      min-height: 194px;
      background: #fff;
      padding: 16px;
      position: relative;
    }

    .signal-node::after {
      position: absolute;
      top: 28px;
      right: -10px;
      z-index: 1;
      width: 20px;
      height: 1px;
      background: var(--line-strong);
      content: "";
    }

    .signal-node:last-child::after {
      display: none;
    }

    .signal-node strong,
    .signal-node span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .signal-node strong {
      font-size: 15px;
    }

    .signal-node span {
      color: var(--muted);
      font-size: 12px;
    }

    .signal-value {
      font-size: 30px;
      font-weight: 900;
      line-height: 1;
    }

    .signal-curve {
      width: 100%;
      height: 44px;
      align-self: end;
    }

    .signal-curve polyline {
      fill: none;
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .insight-foot {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1px;
      border-top: 1px solid var(--line);
      background: var(--line);
    }

    .insight-foot div {
      min-width: 0;
      background: var(--surface-tint);
      padding: 13px 16px;
    }

    .insight-foot strong,
    .insight-foot span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .insight-foot strong {
      font-size: 14px;
    }

    .insight-foot span {
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
    }

    .project-portfolio {
      display: grid;
      gap: 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: 0 12px 32px rgba(29, 43, 37, 0.06);
      overflow: hidden;
    }

    .portfolio-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      min-height: 62px;
      border-bottom: 1px solid var(--line);
      padding: 14px 18px;
    }

    .portfolio-head h2 {
      margin: 0;
      font-size: 16px;
      line-height: 1.25;
    }

    .portfolio-head p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .portfolio-tools {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .status-board {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding: 16px 18px 18px;
      scroll-snap-type: x proximity;
      scrollbar-width: thin;
      scrollbar-color: var(--line-strong) transparent;
    }

    .status-board::-webkit-scrollbar {
      height: 8px;
    }

    .status-board::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: var(--line-strong);
    }

    .status-card {
      display: grid;
      flex: 1 0 284px;
      gap: 14px;
      min-height: 184px;
      padding: 16px;
      scroll-snap-align: start;
    }

    .status-card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .status-card h3 {
      margin: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 17px;
    }

    .status-card p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .status-score {
      font-size: 32px;
      font-weight: 900;
      line-height: 1;
    }

    .status-score small {
      color: var(--quiet);
      font-size: 14px;
    }

    .status-tags {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .executive-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
      gap: 18px;
      align-items: start;
    }

    .action-panel,
    .trend-panel {
      overflow: hidden;
    }

    .action-list {
      display: grid;
    }

    .action-item {
      display: grid;
      grid-template-columns: 10px minmax(0, 1fr) auto;
      gap: 12px;
      align-items: start;
      border-bottom: 1px solid var(--line);
      padding: 15px 16px;
    }

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

    .action-bar {
      width: 10px;
      height: 48px;
      border-radius: 999px;
      background: var(--amber);
    }

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

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

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

    .action-copy strong,
    .action-copy span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .action-copy strong {
      font-size: 14px;
    }

    .action-copy span {
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
    }

    .trend-body {
      display: grid;
      gap: 14px;
      padding: 16px;
    }

    .trend-svg {
      width: 100%;
      height: 178px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fbfcfd;
    }

    .trend-svg path,
    .trend-svg polyline {
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .leader-note {
      display: grid;
      gap: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-tint);
      padding: 14px 16px;
    }

    .leader-note strong {
      font-size: 14px;
    }

    .leader-note p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .alert-detail-panel {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: 0 12px 32px rgba(29, 43, 37, 0.06);
      overflow: hidden;
    }

    .alert-toolbar {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
      gap: 12px;
      align-items: center;
      border-bottom: 1px solid var(--line);
      background: #fbfcfd;
      padding: 14px 16px;
    }

    .date-input {
      width: 100%;
      height: 38px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--text);
      outline: none;
      padding: 0 10px;
    }

    .alert-table {
      min-width: 1080px;
    }

    .alert-table th,
    .alert-table td {
      padding: 12px 16px;
    }

    .alert-title {
      display: grid;
      min-width: 210px;
      gap: 4px;
    }

    .alert-title strong,
    .alert-title span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .alert-title strong {
      font-size: 13px;
    }

    .alert-title span {
      color: var(--quiet);
      font-size: 12px;
    }

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

    .owner-avatar {
      display: inline-grid;
      width: 26px;
      height: 26px;
      place-items: center;
      border-radius: 7px;
      background: var(--surface-soft);
      color: var(--cyan);
      font-size: 12px;
      font-weight: 900;
    }

    .executive-home > .mode-strip:not(.executive-mode),
    .executive-home > .project-lanes,
    .executive-home > .grid-main,
    .executive-home > .bottom-grid {
      display: none;
    }

    .mode-strip {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      padding: 12px;
      box-shadow: 0 8px 22px rgba(29, 43, 37, 0.04);
    }

    .segmented {
      display: inline-flex;
      min-height: 38px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--surface-soft);
      padding: 3px;
    }

    .segmented button {
      min-width: 92px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-weight: 900;
      padding: 0 12px;
    }

    .segmented button.active {
      background: #fff;
      color: var(--text);
      box-shadow: 0 1px 5px rgba(29, 43, 37, 0.08);
    }

    .live {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: 13px;
      white-space: nowrap;
    }

    .pulse {
      position: relative;
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: var(--green);
    }

    .pulse::after {
      position: absolute;
      inset: -5px;
      border: 1px solid rgba(20, 136, 90, 0.28);
      border-radius: inherit;
      content: "";
      animation: pulse 1.7s infinite;
    }

    @keyframes pulse {
      from {
        opacity: 0.8;
        transform: scale(0.75);
      }

      to {
        opacity: 0;
        transform: scale(1.28);
      }
    }

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

    .lane {
      display: grid;
      min-height: 176px;
      gap: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      padding: 15px;
      box-shadow: 0 8px 22px rgba(29, 43, 37, 0.04);
    }

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

    .lane-title {
      min-width: 0;
    }

    .lane-title strong {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 17px;
    }

    .lane-title span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .score {
      font-size: 34px;
      font-weight: 900;
      line-height: 1;
    }

    .score small {
      color: var(--quiet);
      font-size: 14px;
      font-weight: 800;
    }

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

    .mini-stats div {
      min-width: 0;
    }

    .mini-stats strong,
    .mini-stats span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mini-stats strong {
      font-size: 16px;
    }

    .mini-stats span {
      margin-top: 3px;
      color: var(--quiet);
      font-size: 12px;
    }

    .bar {
      overflow: hidden;
      height: 8px;
      border-radius: 999px;
      background: var(--surface-soft);
    }

    .bar span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: var(--green);
    }

    .bar .warn {
      background: var(--amber);
    }

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

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

    .grid-main {
      display: grid;
      grid-template-columns: minmax(0, 1.36fr) minmax(352px, 0.74fr);
      gap: 18px;
      align-items: start;
    }

    .stack {
      display: grid;
      gap: 18px;
      min-width: 0;
    }

    .panel {
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: 0 8px 22px rgba(29, 43, 37, 0.04);
    }

    .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 58px;
      border-bottom: 1px solid var(--line);
      padding: 13px 16px;
    }

    .panel-title {
      min-width: 0;
    }

    .panel-title h2 {
      margin: 0;
      font-size: 16px;
      line-height: 1.25;
    }

    .panel-title p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .chain {
      display: grid;
      grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
      gap: 10px;
      align-items: center;
      padding: 16px;
    }

    .node {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-tint);
      padding: 12px;
    }

    .node strong,
    .node span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .node strong {
      font-size: 14px;
    }

    .node span {
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
    }

    .node.bad {
      border-color: #efb2ac;
      background: #fff8f7;
    }

    .node.warn {
      border-color: #eacb8c;
      background: #fffaf0;
    }

    .arrow {
      display: grid;
      place-items: center;
      color: var(--quiet);
      font-size: 18px;
      font-weight: 900;
    }

    .heat-strip {
      display: grid;
      grid-template-columns: repeat(24, minmax(5px, 1fr));
      gap: 3px;
      padding: 0 16px 16px;
    }

    .heat {
      height: 28px;
      border-radius: 5px;
      background: var(--green-soft);
    }

    .heat.warn {
      background: var(--amber-soft);
    }

    .heat.bad {
      background: var(--red-soft);
    }

    .heat.info {
      background: var(--blue-soft);
    }

    .table-wrap {
      overflow-x: auto;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    th,
    td {
      border-bottom: 1px solid var(--line);
      padding: 12px 16px;
      text-align: left;
      vertical-align: middle;
      white-space: nowrap;
    }

    th {
      color: var(--quiet);
      font-size: 12px;
      font-weight: 900;
    }

    td {
      font-size: 13px;
    }

    tr:last-child td {
      border-bottom: 0;
    }

    .service-name {
      display: grid;
      grid-template-columns: 9px minmax(0, 1fr);
      gap: 9px;
      align-items: center;
      min-width: 170px;
      font-weight: 900;
    }

    .service-name span:last-child {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .latency {
      width: 92px;
      height: 8px;
      overflow: hidden;
      border-radius: 999px;
      background: var(--surface-soft);
    }

    .latency span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: var(--cyan);
    }

    .alert-list,
    .ticket-list,
    .release-list {
      display: grid;
    }

    .alert-item,
    .ticket-item,
    .release-item {
      display: grid;
      gap: 10px;
      border-bottom: 1px solid var(--line);
      padding: 14px 16px;
    }

    .alert-item {
      grid-template-columns: 9px minmax(0, 1fr) auto;
      align-items: start;
    }

    .alert-item:last-child,
    .ticket-item:last-child,
    .release-item:last-child {
      border-bottom: 0;
    }

    .severity {
      width: 9px;
      height: 44px;
      border-radius: 999px;
      background: var(--amber);
    }

    .severity.bad {
      background: var(--red);
    }

    .severity.info {
      background: var(--blue);
    }

    .alert-text,
    .ticket-text,
    .release-text {
      min-width: 0;
    }

    .alert-text strong,
    .alert-text span,
    .ticket-text strong,
    .ticket-text span,
    .release-text strong,
    .release-text span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .alert-text strong,
    .ticket-text strong,
    .release-text strong {
      font-size: 14px;
    }

    .alert-text span,
    .ticket-text span,
    .release-text span {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .alert-meta {
      display: grid;
      justify-items: end;
      gap: 8px;
      color: var(--quiet);
      font-size: 12px;
      white-space: nowrap;
    }

    .ticket-item {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
    }

    .release-item {
      grid-template-columns: 12px minmax(0, 1fr) auto;
      align-items: center;
    }

    .ring {
      width: 12px;
      height: 12px;
      border: 3px solid var(--blue);
      border-radius: 999px;
      background: #fff;
    }

    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1px;
      background: var(--line);
    }

    .kpi {
      display: grid;
      gap: 10px;
      min-height: 126px;
      background: var(--surface);
      padding: 14px 16px;
    }

    .kpi strong {
      font-size: 14px;
    }

    .kpi-value {
      font-size: 28px;
      font-weight: 900;
      line-height: 1;
    }

    .kpi-value small {
      color: var(--quiet);
      font-size: 13px;
    }

    .kpi-foot {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      color: var(--muted);
      font-size: 12px;
    }

    .bottom-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 18px;
    }

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

    .ws-cell {
      display: grid;
      gap: 10px;
      min-height: 132px;
      background: var(--surface);
      padding: 14px;
    }

    .ws-cell strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
    }

    .ws-number {
      font-size: 26px;
      font-weight: 900;
      line-height: 1;
    }

    .ws-meta {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
    }

    .is-hidden {
      display: none !important;
    }

    .search-hidden,
    .alert-filter-hidden {
      display: none !important;
    }

    @media (max-width: 1320px) {
      .executive-hero,
      .executive-grid {
        grid-template-columns: 1fr;
      }

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

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

      .grid-main,
      .bottom-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 960px) {
      .shell {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: fixed;
        z-index: 20;
        top: 0;
        left: 0;
        display: none;
        width: min(88vw, 320px);
        height: 100vh;
        box-shadow: var(--shadow);
      }

      body.menu-open .sidebar {
        display: block;
      }

      .menu-toggle {
        display: inline-grid;
        flex: 0 0 auto;
      }

      .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 12px 16px;
      }

      .top-actions {
        width: 100%;
        justify-content: stretch;
      }

      .search,
      .select,
      .primary-btn {
        width: 100%;
        min-width: 0;
      }

      .portfolio-head,
      .alert-toolbar {
        align-items: stretch;
        grid-template-columns: 1fr;
      }

      .portfolio-head {
        flex-direction: column;
      }

      .portfolio-tools {
        justify-content: stretch;
      }

      .workspace {
        padding: 16px;
      }

      .mode-strip {
        align-items: stretch;
        flex-direction: column;
      }

      .segmented {
        width: 100%;
      }

      .segmented button {
        min-width: 0;
        flex: 1;
      }

      .hero-score,
      .signal-map,
      .insight-foot {
        grid-template-columns: 1fr;
      }

      .signal-node::after {
        display: none;
      }

      .chain {
        grid-template-columns: 1fr;
      }

      .arrow {
        transform: rotate(90deg);
      }

      table {
        min-width: 920px;
      }
    }

    @media (max-width: 640px) {
      .project-lanes,
      .status-board,
      .hero-meta,
      .kpi-grid,
      .ws-grid {
        grid-template-columns: 1fr;
      }

      .hero-panel {
        min-height: 0;
        padding: 18px;
      }

      .hero-score {
        justify-items: start;
      }

      .mini-stats {
        grid-template-columns: 1fr 1fr;
      }

      .heat-strip {
        grid-template-columns: repeat(12, minmax(8px, 1fr));
      }

      .heat {
        height: 24px;
      }

      .alert-item {
        grid-template-columns: 9px minmax(0, 1fr);
      }

      .alert-meta {
        grid-column: 2;
        justify-items: start;
      }

      .release-item,
      .ticket-item {
        grid-template-columns: 1fr;
        gap: 6px;
      }

      .release-item .ring {
        display: none;
      }
    }

    /* Apple-inspired visual polish for the confirmed homepage structure. */
    :root {
      --page: #f5f5f7;
      --surface: #ffffff;
      --surface-soft: #f5f5f7;
      --surface-tint: #fbfbfd;
      --line: rgba(0, 0, 0, 0.08);
      --line-strong: rgba(0, 0, 0, 0.18);
      --text: #1d1d1f;
      --muted: #6e6e73;
      --quiet: #86868b;
      --cyan: #0071e3;
      --cyan-soft: #e8f2ff;
      --green: #1d8f5d;
      --green-soft: #e9f7ef;
      --amber: #b46b00;
      --amber-soft: #fff4df;
      --red: #d33a32;
      --red-soft: #ffe9e7;
      --blue: #0071e3;
      --blue-soft: #e8f2ff;
      --shadow: 0 18px 44px rgba(0, 0, 0, 0.06);
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    }

    body {
      background: var(--page);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    .sidebar {
      border-right: 1px solid rgba(0, 0, 0, 0.06);
      background: rgba(255, 255, 255, 0.78);
      backdrop-filter: blur(22px);
    }

    .brand-mark {
      background: #1d1d1f;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    }

    .project-group {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(255, 255, 255, 0.88);
      box-shadow: none;
    }

    .topbar {
      min-height: 68px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      background: rgba(245, 245, 247, 0.82);
      backdrop-filter: blur(24px);
    }

    .workspace {
      max-width: 1680px;
      gap: 24px;
      padding: 28px 32px 44px;
    }

    .search input,
    .side-search input,
    .select,
    .date-input {
      height: 44px;
      border-color: rgba(0, 0, 0, 0.12);
      background: #fff;
      color: var(--text);
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    .primary-btn {
      height: 44px;
      border-color: #0071e3;
      background: #0071e3;
      box-shadow: 0 8px 18px rgba(0, 113, 227, 0.22);
    }

    .icon-btn {
      height: 44px;
      width: 44px;
      border-color: rgba(0, 0, 0, 0.1);
      background: #fff;
    }

    .project-portfolio,
    .alert-detail-panel,
    .panel,
    .lane,
    .status-card,
    .action-panel,
    .trend-panel {
      border-color: rgba(0, 0, 0, 0.08);
      background: #fff;
      box-shadow: var(--shadow);
    }

    .portfolio-head,
    .panel-head,
    .config-card-head {
      min-height: 74px;
      border-bottom-color: rgba(0, 0, 0, 0.08);
      padding: 20px 24px;
    }

    .portfolio-head h2,
    .panel-title h2 {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: 0;
    }

    .portfolio-head p,
    .panel-title p {
      color: var(--muted);
      font-size: 13px;
    }

    .portfolio-tools .status,
    .status {
      min-height: 28px;
      font-weight: 800;
      padding: 0 10px;
    }

    .status-board {
      gap: 18px;
      padding: 22px 24px 24px;
    }

    .status-card {
      flex-basis: 350px;
      min-height: 236px;
      padding: 24px;
      border-color: rgba(0, 0, 0, 0.08);
      box-shadow: none;
    }

    .status-card h3 {
      font-size: 28px;
      font-weight: 800;
      letter-spacing: 0;
    }

    .status-card p {
      margin-top: 12px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.42;
    }

    .status-score {
      margin-top: 8px;
      font-size: 54px;
      font-weight: 800;
      letter-spacing: 0;
    }

    .status-score small {
      color: var(--quiet);
      font-size: 22px;
      font-weight: 700;
    }

    .bar {
      height: 10px;
      background: #edf1ef;
    }

    .status-tags {
      margin-top: 4px;
      gap: 8px;
    }

    .alert-detail-panel {
      overflow: hidden;
    }

    .alert-toolbar {
      grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
      border-bottom-color: rgba(0, 0, 0, 0.08);
      background: #fbfbfd;
      padding: 18px 24px;
    }

    .alert-table {
      min-width: 1160px;
    }

    .alert-table th {
      background: #f5f5f7;
      color: #6e6e73;
      font-size: 12px;
      font-weight: 800;
    }

    .alert-table td {
      color: #1d1d1f;
      font-size: 14px;
    }

    .alert-table tbody tr:hover {
      background: #fbfbfd;
    }

    .alert-title strong {
      font-size: 14px;
      font-weight: 800;
    }

    .alert-title span {
      color: var(--muted);
      font-size: 12px;
    }

    @media (max-width: 960px) {
      .workspace {
        padding: 18px;
      }

      .status-card {
        flex-basis: 310px;
      }
    }

    /* Minimal reboot: reduce the homepage to a quiet product-style operations board. */
    .main {
      background: #f5f5f7;
    }

    .topbar {
      position: static;
      min-height: 132px;
      border-bottom: 0;
      background: transparent;
      padding: 42px 40px 18px;
      backdrop-filter: none;
    }

    .topbar .top-actions {
      display: none;
    }

    .workspace {
      max-width: 1500px;
      gap: 32px;
      padding: 18px 40px 56px;
    }

    .project-portfolio {
      border: 0;
      border-radius: 30px;
      background: #fff;
      box-shadow: none;
    }

    .portfolio-head {
      min-height: auto;
      border-bottom: 0;
      padding: 34px 36px 6px;
    }

    .portfolio-head h2 {
      font-size: clamp(28px, 2.5vw, 42px);
      font-weight: 800;
      line-height: 1.05;
    }

    .portfolio-head p {
      margin-top: 8px;
      max-width: 600px;
      color: #6e6e73;
      font-size: 17px;
      line-height: 1.45;
    }

    .portfolio-tools {
      display: none;
    }

    .status-board {
      gap: 18px;
      padding: 26px 36px 36px;
    }

    .status-card {
      flex: 1 0 312px;
      min-height: 310px;
      border: 0;
      border-radius: 26px;
      background: #f5f5f7;
      padding: 28px;
      box-shadow: none;
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .status-card:hover {
      transform: translateY(-2px);
      background: #f1f1f3;
    }

    .status-card-head {
      display: block;
    }

    .status-card-head .status {
      margin-top: 18px;
    }

    .status-card h3 {
      font-size: 34px;
      line-height: 1.05;
    }

    .status-card p {
      min-height: 58px;
      margin-top: 14px;
      font-size: 18px;
      line-height: 1.4;
    }

    .status-score {
      margin-top: 18px;
      font-size: 64px;
      line-height: 0.95;
    }

    .status-score small {
      font-size: 24px;
    }

    .status-card .bar {
      margin-top: 16px;
      height: 8px;
      background: #e8e8ed;
    }

    .status-tags {
      margin-top: 18px;
    }

    .status {
      min-height: 30px;
      border-radius: 999px;
      font-size: 13px;
    }

    .alert-detail-panel {
      border: 0;
      border-radius: 30px;
      background: #fff;
      box-shadow: none;
    }

    .alert-detail-panel .panel-head {
      min-height: auto;
      border-bottom: 0;
      padding: 34px 36px 12px;
    }

    .alert-detail-panel .panel-title h2 {
      font-size: clamp(28px, 2.5vw, 42px);
      line-height: 1.05;
    }

    .alert-detail-panel .panel-title p {
      margin-top: 8px;
      color: #6e6e73;
      font-size: 17px;
      line-height: 1.45;
    }

    .alert-detail-panel .panel-head > .status {
      align-self: flex-start;
      margin-top: 2px;
    }

    .alert-toolbar {
      grid-template-columns: minmax(260px, 1fr) 168px 168px auto;
      border-bottom: 0;
      background: transparent;
      padding: 12px 36px 22px;
    }

    .alert-toolbar .search input,
    .alert-toolbar .date-input,
    .alert-toolbar .select {
      height: 42px;
      border: 0;
      background: #f5f5f7;
      box-shadow: none;
    }

    .alert-toolbar .primary-btn {
      display: none;
    }

    .alert-detail-panel .table-wrap {
      margin: 0 24px 28px;
      border-radius: 22px;
      background: #f5f5f7;
      overflow: auto;
    }

    .alert-table {
      border-collapse: separate;
      border-spacing: 0;
      min-width: 1080px;
    }

    .alert-table th {
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      background: #f5f5f7;
      color: #86868b;
      font-size: 12px;
    }

    .alert-table td {
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      background: #f5f5f7;
      padding-top: 16px;
      padding-bottom: 16px;
    }

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

    @media (max-width: 960px) {
      .topbar {
        min-height: auto;
        padding: 28px 18px 10px;
      }

      .workspace {
        gap: 22px;
        padding: 12px 18px 36px;
      }

      .portfolio-head,
      .alert-detail-panel .panel-head {
        padding: 26px 24px 8px;
      }

      .status-board {
        padding: 22px 24px 28px;
      }

      .alert-toolbar {
        grid-template-columns: 1fr;
        padding: 12px 24px 20px;
      }
    }

    .project-strip {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding: 4px 2px 10px;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
    }

    .project-strip::-webkit-scrollbar {
      display: none;
    }

    .project-pill {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-rows: 1fr auto;
      gap: 20px;
      min-width: 292px;
      min-height: 164px;
      border-radius: 28px;
      background: #fff;
      padding: 24px;
      scroll-snap-align: start;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .project-pill:hover {
      transform: translateY(-2px);
      box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
    }

    .project-pill strong,
    .project-pill span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .project-pill strong {
      font-size: 26px;
      line-height: 1.1;
      font-weight: 800;
    }

    .project-pill span {
      margin-top: 9px;
      color: #6e6e73;
      font-size: 15px;
    }

    .project-pill b {
      justify-self: end;
      font-size: 34px;
      line-height: 1;
      font-weight: 800;
    }

    .project-pill em {
      justify-self: start;
      align-self: end;
      min-height: 28px;
      border-radius: 999px;
      font-style: normal;
      font-size: 13px;
      font-weight: 800;
      padding: 6px 11px;
    }

    .tone-ok {
      background: #e9f7ef;
      color: #147a4d;
    }

    .tone-warn {
      background: #fff4df;
      color: #a15f00;
    }

    .tone-bad {
      background: #ffe9e7;
      color: #c92d27;
    }

    .minimal-alerts {
      border-radius: 30px;
      background: #fff;
      overflow: hidden;
    }

    .minimal-alerts-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      padding: 30px 34px 10px;
    }

    .minimal-alerts-head h2 {
      margin: 0;
      font-size: clamp(30px, 3vw, 48px);
      line-height: 1;
      letter-spacing: 0;
      font-weight: 800;
    }

    .minimal-alerts-head p {
      margin: 10px 0 0;
      color: #6e6e73;
      font-size: 16px;
      line-height: 1.45;
    }

    .minimal-alerts-head > span {
      flex: 0 0 auto;
      min-height: 30px;
      border-radius: 999px;
      background: #f5f5f7;
      color: #1d1d1f;
      font-size: 13px;
      font-weight: 800;
      padding: 7px 12px;
    }

    .minimal-filters {
      display: grid;
      grid-template-columns: 170px 170px minmax(220px, 1fr);
      gap: 10px;
      padding: 12px 34px 24px;
    }

    .threshold-filters {
      grid-template-columns: minmax(260px, 1fr) 170px 150px auto;
      align-items: center;
    }

    .minimal-filters .date-input,
    .minimal-filters .select,
    .minimal-search input {
      height: 42px;
      border: 0;
      border-radius: 13px;
      background: #f5f5f7;
      box-shadow: none;
    }

    .minimal-search {
      position: relative;
    }

    .minimal-search span {
      position: absolute;
      left: 13px;
      top: 50%;
      transform: translateY(-50%);
      color: #86868b;
      font-size: 13px;
      font-weight: 700;
      pointer-events: none;
    }

    .minimal-search input {
      width: 100%;
      padding: 0 12px 0 50px;
    }

    .minimal-alert-list {
      display: grid;
      padding: 0 20px 22px;
    }

    .minimal-alert-row {
      display: grid;
      grid-template-columns: 62px minmax(220px, 1fr) minmax(260px, 0.9fr);
      gap: 18px;
      align-items: start;
      border-radius: 20px;
      padding: 18px 16px;
    }

    .minimal-alert-row + .minimal-alert-row {
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: 0;
    }

    .minimal-alert-row:hover {
      background: #f9f9fb;
    }

    .minimal-alert-row time {
      color: #86868b;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.4;
    }

    .minimal-alert-main {
      min-width: 0;
    }

    .minimal-alert-main strong,
    .minimal-alert-main span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .minimal-alert-main strong {
      font-size: 17px;
      line-height: 1.25;
      font-weight: 800;
    }

    .minimal-alert-main span {
      margin-top: 5px;
      color: #6e6e73;
      font-size: 14px;
    }

    .minimal-alert-meta {
      display: flex;
      gap: 7px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .minimal-alert-meta span {
      min-height: 26px;
      border-radius: 999px;
      background: #f5f5f7;
      color: #515154;
      font-size: 12px;
      font-weight: 800;
      padding: 6px 9px;
      white-space: nowrap;
    }

    .minimal-alert-meta .level-bad {
      background: #ffe9e7;
      color: #c92d27;
    }

    .minimal-alert-meta .level-warn {
      background: #fff4df;
      color: #a15f00;
    }

    .minimal-alert-meta .level-info {
      background: #e8f2ff;
      color: #0066cc;
    }

    .minimal-alert-row p {
      grid-column: 2 / -1;
      margin: -6px 0 0;
      color: #6e6e73;
      font-size: 14px;
      line-height: 1.45;
    }

    .home-alert-pager {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      padding: 16px 26px 24px;
      color: #6e6e73;
      font-size: 13px;
      font-weight: 850;
    }

    .home-alert-pager-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .home-alert-pager .ghost-btn:disabled,
    .home-alert-pager .solid-btn:disabled {
      cursor: not-allowed;
      opacity: 0.42;
    }

    .global-entry {
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr) auto;
      gap: 9px;
      align-items: center;
      min-height: 42px;
      margin: 0 0 8px;
      border-radius: 8px;
      color: var(--muted);
      text-decoration: none;
      padding: 9px 10px;
    }

    .global-entry:hover,
    .global-entry.active,
    .submenu a:hover,
    .submenu a.active {
      background: #f5f5f7;
      color: #1d1d1f;
    }

    .global-entry strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
    }

    .page-view {
      display: none;
    }

    .page-view.is-active {
      display: grid;
      gap: 24px;
    }

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

    .route-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 22px;
      align-items: end;
      border-radius: 30px;
      background: #fff;
      padding: 34px;
    }

    .route-eyebrow,
    .route-crumb,
    .crumb {
      color: #86868b;
      font-size: 13px;
      font-weight: 800;
    }

    .route-hero h2 {
      margin: 10px 0 0;
      font-size: 42px;
      line-height: 1.04;
      letter-spacing: 0;
    }

    .route-hero p {
      max-width: 760px;
      margin: 12px 0 0;
      color: #6e6e73;
      font-size: 16px;
      line-height: 1.55;
    }

    .route-actions-bar {
      display: flex;
      justify-content: flex-end;
      border-radius: 22px;
      background: #fff;
      padding: 16px 18px;
    }

    .hero-actions,
    .inline-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .ghost-btn,
    .solid-btn {
      display: inline-grid;
      grid-auto-flow: column;
      gap: 8px;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      border-radius: 12px;
      font-weight: 850;
      padding: 0 14px;
      text-decoration: none;
    }

    .ghost-btn {
      border: 0;
      background: #f5f5f7;
      color: #1d1d1f;
    }

    .solid-btn {
      border: 0;
      background: #1d1d1f;
      color: #fff;
    }

    .ghost-btn svg,
    .solid-btn svg {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .detail-panel {
      border-radius: 24px;
      background: #fff;
    }

    .detail-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
      gap: 14px;
      align-items: start;
    }

    .detail-panel {
      overflow: hidden;
    }

    .detail-panel header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      padding: 24px 26px 14px;
    }

    .detail-panel h3 {
      margin: 0;
      font-size: 22px;
      line-height: 1.15;
    }

    .detail-panel header p {
      margin: 7px 0 0;
      color: #6e6e73;
      font-size: 14px;
      line-height: 1.45;
    }

    .service-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 720px;
    }

    .service-table th,
    .service-table td {
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      padding: 14px 18px;
      text-align: left;
      vertical-align: middle;
      white-space: nowrap;
    }

    .service-table th {
      color: #86868b;
      font-size: 12px;
      font-weight: 850;
    }

    .service-table td {
      font-size: 14px;
      font-weight: 700;
    }

    .service-table input {
      width: 96px;
      height: 34px;
      border: 0;
      border-radius: 10px;
      background: #f5f5f7;
      color: #1d1d1f;
      font-weight: 800;
      outline: none;
      padding: 0 10px;
    }

    .service-table .threshold-value-input {
      width: 128px;
    }

    .service-table .threshold-desc-input {
      width: 240px;
    }

    .service-table tr.is-dirty td {
      background: #fffaf0;
    }

    .threshold-empty {
      padding: 44px 24px;
      color: #86868b;
      font-size: 14px;
      font-weight: 800;
      text-align: center;
    }

    .report-filters {
      grid-template-columns: minmax(240px, 1fr) 140px 170px auto;
      align-items: center;
    }

    .report-empty {
      display: block;
    }

    .report-note {
      display: block;
      margin-top: 4px;
      color: #6e6e73;
      font-size: 13px;
      font-weight: 650;
      line-height: 1.35;
      white-space: normal;
    }

    .wikigold-region-page .service-table {
      min-width: 880px;
    }

    .wikigold-region-page .region-alarm-detail {
      min-width: 420px;
      max-width: 680px;
      padding-top: 18px;
      padding-bottom: 18px;
      white-space: normal;
    }

    .wikigold-region-page .region-alarm-lines {
      display: grid;
      gap: 8px;
    }

    .wikigold-region-page .region-alarm-title {
      display: block;
      color: #1d1d1f;
      font-size: 16px;
      font-weight: 880;
      line-height: 1.35;
      letter-spacing: 0;
      white-space: normal;
    }

    .wikigold-region-page .region-alarm-muted {
      display: block;
      color: #6e6e73;
      font-size: 14px;
      font-weight: 680;
      line-height: 1.55;
      white-space: normal;
    }

    .wikigold-region-filters {
      grid-template-columns: minmax(260px, 1fr) auto;
      align-items: center;
    }

    .wikigold-region-pager {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      padding: 16px 26px 24px;
      color: #6e6e73;
      font-size: 13px;
      font-weight: 850;
    }

    .wikigold-region-pager-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .wikigold-region-page .ghost-btn:disabled,
    .wikigold-region-page .solid-btn:disabled {
      cursor: not-allowed;
      opacity: 0.42;
    }

    .report-stat-list {
      display: grid;
      gap: 0;
      padding: 0 20px 22px;
    }

    .report-stat-item {
      display: grid;
      gap: 10px;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      padding: 16px 6px;
    }

    .report-stat-item:first-child {
      border-top: 0;
    }

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

    .report-stat-head strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 15px;
    }

    .report-stat-bar {
      height: 8px;
      overflow: hidden;
      border-radius: 999px;
      background: #f5f5f7;
    }

    .report-stat-bar span {
      display: block;
      width: var(--value, 0%);
      height: 100%;
      border-radius: inherit;
      background: var(--bar, #0066cc);
    }

    .table-scroll {
      overflow-x: auto;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      border-radius: 999px;
      background: #f5f5f7;
      color: #515154;
      font-size: 12px;
      font-weight: 850;
      padding: 5px 10px;
      white-space: nowrap;
    }

    .badge.bad {
      background: #ffe9e7;
      color: #c92d27;
    }

    .badge.warn {
      background: #fff4df;
      color: #a15f00;
    }

    .badge.ok {
      background: #e9f7ef;
      color: #147a4d;
    }

    .badge.info {
      background: #e8f2ff;
      color: #0066cc;
    }

    .operation-list,
    .timeline-list,
    .config-list {
      display: grid;
      gap: 0;
      padding: 0 20px 22px;
    }

    .operation-item,
    .timeline-item,
    .config-item {
      display: grid;
      gap: 7px;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      padding: 16px 6px;
    }

    .operation-item:first-child,
    .timeline-item:first-child,
    .config-item:first-child {
      border-top: 0;
    }

    .operation-item strong,
    .timeline-item strong,
    .config-item strong {
      font-size: 15px;
      line-height: 1.25;
    }

    .operation-item span,
    .timeline-item span,
    .config-item span {
      color: #6e6e73;
      font-size: 13px;
      line-height: 1.4;
    }

    .config-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
      gap: 14px;
      align-items: start;
    }

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

    .field {
      display: grid;
      gap: 8px;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    .field label,
    .field > span {
      color: #6e6e73;
      font-size: 13px;
      font-weight: 800;
    }

    .field input,
    .field textarea,
    .field select {
      width: 100%;
      min-height: 42px;
      border: 0;
      border-radius: 13px;
      background: #f5f5f7;
      color: #1d1d1f;
      outline: none;
      padding: 0 12px;
    }

    .field textarea {
      min-height: 96px;
      resize: vertical;
      padding: 12px;
      line-height: 1.5;
    }

    .field .field-hint {
      color: #86868b;
      font-size: 12px;
      font-weight: 760;
      line-height: 1.35;
    }

    .alert-config-stack {
      display: grid;
      gap: 18px;
    }

    .alert-config-page .empty-state-panel,
    .empty-state-panel {
      padding: 42px 26px;
      color: #86868b;
      font-size: 15px;
      font-weight: 850;
    }

    .wikigold-alert-card {
      border-radius: 30px;
    }

    .wikigold-alert-form {
      grid-template-columns: minmax(180px, 0.42fr) minmax(180px, 0.42fr);
      align-items: end;
    }

    .wikigold-alert-footer {
      display: flex;
      justify-content: flex-end;
      border-radius: 24px;
      background: #fff;
      padding: 18px 26px;
    }

    .wikigold-alert-footer .solid-btn {
      min-width: 108px;
    }

    .wikigold-alert-footer .solid-btn:disabled {
      cursor: not-allowed;
      opacity: 0.42;
    }

    .developing-page {
      display: grid;
      align-content: center;
      min-height: 360px;
      border-radius: 30px;
      background: #fff;
      padding: 54px 36px;
    }

    .developing-page strong {
      color: #86868b;
      font-size: 14px;
      font-weight: 850;
    }

    .developing-page h2 {
      margin: 10px 0 0;
      color: #1d1d1f;
      font-size: 42px;
      line-height: 1.08;
      letter-spacing: 0;
    }

    .fgold-ws-page {
      display: grid;
      gap: 28px;
    }

    .fgold-ws-page .detail-panel {
      border-radius: 30px;
    }

    .fgold-ws-page .detail-panel header {
      padding: 32px 34px 18px;
    }

    .fgold-ws-page .detail-panel h3 {
      font-size: 30px;
      line-height: 1.15;
    }

    .fgold-ws-page .detail-panel header p {
      margin-top: 10px;
      font-size: 16px;
    }

    .fgold-ws-page .badge {
      min-height: 34px;
      padding: 6px 14px;
      font-size: 15px;
    }

    .fgold-ws-page .form-grid {
      grid-template-columns: 1fr;
      gap: 22px;
      padding: 0 34px 34px;
    }

    .fgold-ws-page .field {
      gap: 10px;
    }

    .fgold-ws-page .field label {
      font-size: 15px;
    }

    .fgold-ws-page .field input,
    .fgold-ws-page .field textarea {
      min-height: 54px;
      border-radius: 16px;
      font-size: 18px;
      line-height: 1.5;
      padding: 13px 18px;
    }

    .fgold-ws-page .field textarea {
      min-height: 132px;
    }

    .fgold-ws-page .inline-actions {
      gap: 12px;
    }

    .fgold-ws-page .ghost-btn,
    .fgold-ws-page .solid-btn {
      min-height: 52px;
      border-radius: 16px;
      font-size: 18px;
      padding: 0 24px;
    }

    .fgold-ws-page .ghost-btn.is-selected,
    .fgold-ws-page .solid-btn.is-selected {
      box-shadow: inset 0 0 0 2px rgba(29, 29, 31, 0.14), 0 8px 20px rgba(29, 29, 31, 0.08);
    }

    .fgold-ws-page .ghost-btn:disabled,
    .fgold-ws-page .solid-btn:disabled {
      cursor: not-allowed;
      opacity: 0.62;
    }

    .fgold-ws-page .badge.is-live {
      position: relative;
      overflow: visible;
    }

    .fgold-ws-page .badge.is-live::after {
      content: "";
      position: absolute;
      inset: -5px;
      border-radius: inherit;
      border: 2px solid rgba(20, 122, 77, 0.26);
      opacity: 0;
      transform: scale(0.92);
    }

    .fgold-ws-page .badge.is-live.is-flashing::after {
      animation: ws-status-pulse 0.7s ease-out;
    }

    .fgold-ws-page .service-table {
      min-width: 0;
    }

    .fgold-ws-page .service-table th,
    .fgold-ws-page .service-table td {
      padding: 22px 34px;
      font-size: 16px;
    }

    .fgold-ws-page .service-table th {
      color: #86868b;
      font-size: 14px;
    }

    .fgold-ws-page .ws-log-message {
      white-space: normal;
      line-height: 1.45;
    }

    @keyframes ws-status-pulse {
      0% {
        opacity: 1;
        transform: scale(0.92);
      }
      100% {
        opacity: 0;
        transform: scale(1.22);
      }
    }

    .switch-line {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      border-radius: 16px;
      background: #f5f5f7;
      padding: 14px;
    }

    .switch-line strong {
      display: block;
      font-size: 14px;
    }

    .switch-line span {
      display: block;
      margin-top: 4px;
      color: #6e6e73;
      font-size: 12px;
    }

    .switch {
      position: relative;
      display: inline-flex;
      width: 48px;
      height: 28px;
      flex: 0 0 auto;
      align-items: center;
    }

    .switch input {
      position: absolute;
      inset: 0;
      opacity: 0;
    }

    .switch i {
      width: 48px;
      height: 28px;
      border-radius: 999px;
      background: #d2d2d7;
      transition: background 0.18s ease;
    }

    .switch i::after {
      content: "";
      position: absolute;
      top: 3px;
      left: 3px;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      background: #fff;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
      transition: transform 0.18s ease;
    }

    .switch input:checked + i {
      background: #34c759;
    }

    .switch input:checked + i::after {
      transform: translateX(20px);
    }

    .toast {
      position: fixed;
      right: 24px;
      bottom: 24px;
      z-index: 30;
      max-width: 340px;
      border-radius: 16px;
      background: rgba(29, 29, 31, 0.92);
      color: #fff;
      font-size: 14px;
      font-weight: 800;
      padding: 13px 16px;
      box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px);
      transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

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

    .topbar {
      position: sticky;
      top: 0;
      z-index: 16;
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 64px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      background: rgba(245, 245, 247, 0.86);
      padding: 10px 24px;
      backdrop-filter: blur(24px);
    }

    .main-tabs {
      display: flex;
      flex: 1 1 auto;
      gap: 6px;
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .main-tabs::-webkit-scrollbar {
      display: none;
    }

    .main-tabs a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      border-radius: 999px;
      color: #515154;
      font-size: 14px;
      font-weight: 850;
      text-decoration: none;
      padding: 0 16px;
      white-space: nowrap;
    }

    .main-tabs a:hover {
      background: rgba(0, 0, 0, 0.05);
      color: #1d1d1f;
    }

    .main-tabs a.active {
      background: #1d1d1f;
      color: #fff;
    }

    .topbar .top-actions {
      display: flex;
      flex: 0 0 auto;
    }

    .sidebar .global-entry {
      display: grid;
    }

    .sidebar .project-group {
      display: none;
    }

    .sidebar .project-group.is-current {
      display: block;
    }

    .sidebar.is-overview .project-tree {
      display: none;
    }

    .sidebar .project-group {
      border: 0;
      background: transparent;
    }

    .sidebar .project-group.is-current .project-head {
      background: var(--surface-soft);
    }

    .sidebar .submenu {
      gap: 6px;
      padding: 4px 0 8px;
    }

    .sidebar .submenu a,
    .sidebar .subpages a {
      min-height: 40px;
      border-radius: 12px;
      font-size: 14px;
    }

    .sidebar .subpages {
      margin: 4px 0 6px 12px;
    }

    @media (max-width: 960px) {
      .shell {
        grid-template-columns: 1fr;
      }

      .topbar {
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 16px;
      }

      .main-tabs {
        order: 2;
        flex-basis: 100%;
      }

      .topbar .top-actions {
        order: 3;
        width: 100%;
        justify-content: stretch;
      }
    }

    @media (max-width: 760px) {
      .minimal-filters {
        grid-template-columns: 1fr;
      }

      .minimal-alert-row {
        grid-template-columns: 1fr;
      }

      .minimal-alert-meta {
        justify-content: flex-start;
      }

      .minimal-alert-row p {
        grid-column: 1;
        margin-top: 0;
      }

      .route-hero,
      .detail-grid,
      .config-layout {
        grid-template-columns: 1fr;
      }

      .route-hero {
        padding: 26px 22px;
      }

      .route-hero h2 {
        font-size: 32px;
      }

      .route-actions-bar {
        justify-content: stretch;
        padding: 14px;
      }

      .form-grid {
        grid-template-columns: 1fr;
      }

      .field.full {
        grid-column: 1;
      }

      .hero-actions,
      .inline-actions {
        justify-content: stretch;
      }

      .ghost-btn,
      .solid-btn {
        width: 100%;
      }
    }
