.product-nav {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.product-nav-item {
  display: grid;
  width: 100%;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #60726f;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.product-nav-item:hover {
  color: #225b53;
  background: rgba(255, 255, 255, .72);
  transform: translateX(2px);
}

.product-nav-item.active {
  border-color: #cfe3df;
  color: #0a6f61;
  background: #fff;
  box-shadow: 0 7px 22px rgba(25, 78, 71, .07);
}

.product-nav-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #647a76;
  background: #e5edeb;
  font-size: 12px;
  font-weight: 850;
}

.product-nav-item.active .product-nav-icon {
  color: #fff;
  background: linear-gradient(145deg, #179c88, #087565);
  box-shadow: 0 6px 15px rgba(13, 139, 121, .18);
}

.product-nav-item strong,
.product-nav-item small { display: block; }
.product-nav-item strong { font-size: 13px; }
.product-nav-item small { overflow: hidden; margin-top: 2px; color: #899793; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar.workbench-active .product-nav { margin-bottom: auto; }
[data-chat-sidebar][hidden], #header-new-chat[hidden], .workbench-area[hidden] { display: none !important; }

.site-records {
  display: flex;
  z-index: 2;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #8a9798;
  font-size: 10px;
  line-height: 1.4;
}
.site-records a { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; transition: color .18s ease; }
.site-records a:hover { color: #16806f; }
.site-records svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.site-records-login { position: absolute; right: 20px; bottom: 17px; left: 20px; color: rgba(149, 184, 192, .58); }
.site-records-login a:hover { color: #83d9ce; }
.site-records-app { flex: 0 0 31px; min-height: 31px; border-top: 1px solid #edf1f0; background: #fbfcfc; }
.login-layout { padding-bottom: 72px; }

.workbench-area {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 91% 3%, rgba(40, 177, 149, .10), transparent 27%),
    radial-gradient(circle at 7% 46%, rgba(71, 116, 233, .055), transparent 25%),
    linear-gradient(180deg, #f4f8f7 0%, #f8faf9 54%, #f1f5f4 100%);
  scroll-behavior: smooth;
}

.workbench-inner {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.workbench-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 178px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  padding: 34px 39px;
  border: 1px solid rgba(111, 207, 190, .13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 81% 24%, rgba(45, 208, 178, .16), transparent 30%),
    linear-gradient(125deg, #0b2633 0%, #0e3d44 55%, #0b3038 100%);
  box-shadow: 0 20px 50px rgba(17, 61, 62, .15);
}
.workbench-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 212, 194, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 212, 194, .045) 1px, transparent 1px);
  background-size: 31px 31px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 5%, #000 58%, transparent 100%);
}
.workbench-hero::after {
  position: absolute;
  z-index: -1;
  top: -72px;
  right: 20%;
  width: 265px;
  height: 265px;
  border: 1px solid rgba(99, 230, 207, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(83, 216, 192, .025), 0 0 0 72px rgba(83, 216, 192, .018);
  content: "";
}
.workbench-hero-copy { min-width: 0; }
.workbench-kicker { display: inline-flex; align-items: center; gap: 8px; color: #7ed5c7; font-family: "Segoe UI", sans-serif; font-size: 10px; font-weight: 750; letter-spacing: .19em; }
.workbench-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #4ed7bd; box-shadow: 0 0 0 5px rgba(78, 215, 189, .08), 0 0 16px rgba(78, 215, 189, .35); }
.workbench-hero h1 { margin: 13px 0 0; color: #f3fbfa; font-size: clamp(28px, 3vw, 39px); font-weight: 720; letter-spacing: -.045em; }
.workbench-hero p { max-width: 680px; margin: 10px 0 0; color: #a9c7c7; font-size: 14px; line-height: 1.75; }
.workbench-hero-status { display: grid; flex: 0 0 auto; grid-template-columns: repeat(3, minmax(82px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(119, 207, 193, .12); border-radius: 14px; background: rgba(101, 190, 178, .1); }
.workbench-hero-status > span { position: relative; display: flex; min-height: 72px; flex-direction: column; align-items: center; justify-content: center; padding: 12px; background: rgba(4, 28, 38, .52); }
.workbench-hero-status > span:first-child > i { position: absolute; top: 11px; right: 11px; width: 6px; height: 6px; border-radius: 50%; background: #51d9af; box-shadow: 0 0 8px rgba(81,217,175,.75); }
.workbench-hero-status strong { color: #e8fbf8; font-size: 16px; font-weight: 730; }
.workbench-hero-status small { margin-top: 5px; color: #75aaa8; font-size: 9px; }

.workbench-module-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.workbench-module-nav button {
  display: grid;
  min-height: 68px;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 11px;
  padding: 12px 14px;
  border: 1px solid #dce7e4;
  border-radius: 13px;
  color: #71827e;
  background: rgba(255, 255, 255, .78);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(33, 81, 73, .035);
  transition: .2s ease;
}
.workbench-module-nav button:hover { transform: translateY(-2px); border-color: #acd3ca; box-shadow: 0 11px 26px rgba(28, 83, 74, .08); }
.workbench-module-nav button.active { border-color: #4ba994; color: #176d60; background: linear-gradient(145deg, #f7fcfa, #e9f6f2); box-shadow: inset 0 0 0 1px rgba(39, 150, 130, .07), 0 10px 25px rgba(28, 83, 74, .08); }
.workbench-module-nav button > span { display: grid; width: 38px; height: 38px; grid-row: 1 / 3; place-items: center; border-radius: 11px; color: #758783; background: #e7efed; font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: 11px; font-weight: 800; }
.workbench-module-nav button.active > span { color: #fff; background: linear-gradient(145deg, #18a18b, #087264); box-shadow: 0 8px 18px rgba(13,139,121,.18); }
.workbench-module-nav b { align-self: end; color: #294b45; font-size: 13px; }
.workbench-module-nav small { align-self: start; overflow: hidden; margin-top: 3px; color: #879692; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.operations-dashboard { display: grid; gap: 12px; }
.ops-eyebrow { display: block; color: #238c7b; font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.ops-scenario-bar {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 14px 11px 18px;
  border: 1px solid #dce7e4;
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 6px 20px rgba(30, 73, 68, .035);
}
.ops-scenario-copy strong { display: block; margin-top: 4px; color: #284943; font-size: 13px; }
.ops-segmented { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; padding: 4px; border-radius: 10px; background: #edf3f1; }
.ops-segmented button { min-height: 31px; padding: 0 13px; border: 0; border-radius: 8px; color: #70817d; background: transparent; font-size: 10px; font-weight: 650; cursor: pointer; }
.ops-segmented button:hover { color: #166f61; }
.ops-segmented button.active { color: #fff; background: linear-gradient(145deg, #269d8a, #167b6c); box-shadow: 0 5px 12px rgba(20, 123, 106, .17); }

.ops-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ops-kpi {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  padding: 17px 18px 15px;
  border: 1px solid #dce7e4;
  border-radius: 15px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 8px 25px rgba(25, 70, 64, .045);
}
.ops-kpi::after { position: absolute; right: -20px; bottom: -34px; width: 95px; height: 95px; border-radius: 50%; background: rgba(28, 160, 139, .045); content: ""; }
.ops-kpi.teal { border-color: #b9ded6; background: linear-gradient(145deg, #fff, #eff9f6); }
.ops-kpi.blue { border-color: #cedbef; background: linear-gradient(145deg, #fff, #f1f5fd); }
.ops-kpi.amber { border-color: #ead8b8; background: linear-gradient(145deg, #fff, #fdf8ee); }
.ops-kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #788985; font-size: 10px; }
.ops-kpi-label i { padding: 3px 6px; border: 1px solid #d9e8e5; border-radius: 999px; color: #438c7e; background: #f0f8f6; font-size: 8px; font-style: normal; }
.ops-kpi-value { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.ops-kpi-value strong { color: #193f3c; font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: clamp(23px, 2.35vw, 31px); font-weight: 650; letter-spacing: -.035em; }
.ops-kpi-value small { color: #627773; font-size: 10px; }
.ops-kpi p { position: relative; z-index: 1; margin: 7px 0 0; color: #8a9895; font-size: 9px; line-height: 1.5; }

.ops-layout { display: grid; gap: 12px; }
.ops-layout-main { grid-template-columns: minmax(0, 1fr) 340px; }
.ops-layout-half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ops-layout-thirds { grid-template-columns: minmax(280px, .75fr) minmax(0, 1.55fr); }
.ops-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid #dce7e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 9px 28px rgba(25, 70, 64, .045);
}
.ops-card-header { display: flex; min-height: 47px; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ops-card-header > div:first-child { min-width: 0; }
.ops-card-header h2 { margin: 5px 0 0; color: #284b45; font-size: 14px; letter-spacing: -.01em; }
.ops-card-header p { max-width: 590px; margin: 5px 0 0; color: #879692; font-size: 9px; line-height: 1.55; }
.ops-chart-legend { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 9px; color: #748681; font-size: 9px; }
.ops-chart-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ops-chart-legend i { display: inline-block; width: 15px; height: 3px; border-radius: 3px; }
.ops-chart-legend i.dashed { height: 0; border-top: 2px dashed currentColor; background: transparent !important; }
.ops-chart-legend .band-marker { height: 8px; border: 1px solid #b8ddd1; background: #e3f2ee !important; }
.ops-chart-wrap { min-height: 240px; margin-top: 12px; }
.ops-chart-wrap svg { display: block; width: 100%; height: 245px; overflow: visible; }
.ops-chart-grid line { stroke: #e7eeec; stroke-width: 1; }
.ops-chart-grid text, .ops-chart-axis text { fill: #94a19f; font-family: "Segoe UI", sans-serif; font-size: 9px; }
.ops-target-band { fill: #daf0ea; opacity: .58; }
.ops-confidence-band { fill: #668bf2; opacity: .11; }
.ops-threshold-line { stroke: #d69752; stroke-width: 1.3; stroke-dasharray: 5 5; }
.ops-threshold-label { fill: #b57c42; font-family: "Segoe UI", sans-serif; font-size: 8px; }
.ops-series-line { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ops-series-line.is-dashed { stroke-dasharray: 6 6; }
.ops-series-dot { stroke: #fff; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.ops-chart-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid #edf1f0; color: #96a3a0; font-size: 8px; }

.ops-saving-card { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; column-gap: 19px; }
.ops-saving-card > .ops-card-header { grid-column: 1 / -1; }
.ops-saving-ring { --saving: 65deg; display: grid; width: 128px; height: 128px; place-items: center; margin: 16px auto 4px; border-radius: 50%; background: conic-gradient(#1ca38d 0 var(--saving), #e5efec var(--saving) 360deg); box-shadow: inset 0 0 0 1px rgba(22, 130, 112, .07); }
.ops-saving-ring > div { display: grid; width: 94px; height: 94px; place-content: center; border-radius: 50%; background: #fff; text-align: center; box-shadow: 0 5px 18px rgba(32, 89, 79, .08); }
.ops-saving-ring strong { color: #14806e; font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: 25px; }
.ops-saving-ring small { margin-top: 3px; color: #85938f; font-size: 8px; }
.ops-saving-values { display: grid; gap: 9px; margin-top: 15px; }
.ops-saving-values > div { padding: 10px 12px; border: 1px solid #e3ebe9; border-radius: 10px; background: #f8faf9; }
.ops-saving-values span, .ops-saving-values strong { display: block; }
.ops-saving-values span { color: #81908d; font-size: 8px; }
.ops-saving-values strong { margin-top: 3px; color: #355a53; font-size: 12px; }
.ops-saving-values p { margin: 1px 0 0; color: #9a7b52; font-size: 8px; line-height: 1.55; }

.ops-bar-list { display: grid; gap: 10px; margin-top: 14px; }
.ops-bar-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #71827e; font-size: 9px; }
.ops-bar-row strong { color: #365a53; font-size: 9px; }
.ops-bar-track { overflow: hidden; height: 6px; margin-top: 5px; border-radius: 999px; background: #e9efed; }
.ops-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #27ae97, #6bc8b8); transition: width .35s ease; }
.ops-bar-track i.blue { background: linear-gradient(90deg, #527de5, #82a3f1); }
.ops-bar-row > small { display: block; margin-top: 4px; color: #96a19f; font-size: 8px; }

.ops-flow-card { overflow: hidden; }
.ops-flow { display: flex; align-items: stretch; justify-content: space-between; gap: 7px; margin-top: 17px; }
.ops-flow-node { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: center; min-height: 87px; padding: 12px 11px; border: 1px solid #dce9e6; border-radius: 12px; background: linear-gradient(145deg, #f8fbfa, #eef6f4); }
.ops-flow-node > span { position: absolute; top: 8px; right: 9px; color: #a6b7b3; font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: 8px; }
.ops-flow-node strong { color: #31584f; font-size: 11px; }
.ops-flow-node small { margin-top: 5px; color: #81918d; font-size: 8px; line-height: 1.45; }
.ops-flow-arrow { align-self: center; color: #78aea3; font-size: 14px; font-weight: 500; }

.ops-zone-list { display: grid; gap: 13px; margin-top: 17px; }
.ops-zone-list > div { display: grid; grid-template-columns: 78px minmax(70px, 1fr) 105px; align-items: center; gap: 12px; }
.ops-zone-name { display: inline-flex; align-items: center; gap: 7px; color: #5e7570; font-size: 9px; }
.ops-zone-name i { width: 7px; height: 7px; border-radius: 50%; background: #18a68e; box-shadow: 0 0 0 3px #e3f5f1; }
.ops-zone-name i.west { background: #547fe7; box-shadow: 0 0 0 3px #e8edfb; }
.ops-zone-gauge { overflow: hidden; height: 7px; border-radius: 999px; background: #e9f0ee; }
.ops-zone-gauge i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #41bea8, #1b947f); }
.ops-zone-numbers { text-align: right; }
.ops-zone-numbers strong, .ops-zone-numbers small { display: block; }
.ops-zone-numbers strong { color: #345851; font-size: 9px; }
.ops-zone-numbers small { margin-top: 3px; color: #93a09d; font-size: 8px; }

.ops-blower-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 17px; }
.ops-blower-grid > div { display: flex; min-width: 0; min-height: 105px; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; border: 1px solid #dfe8e6; border-radius: 11px; background: #f8faf9; text-align: center; }
.ops-blower-grid > div.is-running { border-color: #b8ddd4; background: linear-gradient(145deg, #f5fbf9, #eaf6f2); }
.ops-fan-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #8b9a97; background: #e7eeec; font-size: 20px; }
.is-running .ops-fan-icon { color: #1a967f; background: #dff2ed; animation: ops-fan-spin 8s linear infinite; }
.ops-blower-grid strong { margin-top: 8px; color: #48635e; font-size: 9px; }
.ops-blower-grid small { overflow: hidden; max-width: 100%; margin-top: 4px; color: #8c9b98; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }

.ops-table-wrap { overflow-x: auto; margin-top: 14px; }
.ops-forecast-table table { width: 100%; border-collapse: collapse; font-size: 9px; }
.ops-forecast-table th { padding: 9px 10px; color: #768681; background: #f1f6f4; font-weight: 700; text-align: left; white-space: nowrap; }
.ops-forecast-table th:first-child { border-radius: 8px 0 0 8px; }
.ops-forecast-table th:last-child { border-radius: 0 8px 8px 0; }
.ops-forecast-table td { padding: 12px 10px; border-bottom: 1px solid #edf1f0; color: #71827e; white-space: nowrap; }
.ops-forecast-table td.forecast-value { color: #315b53; font-weight: 750; }
.ops-risk { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 700; }
.ops-risk.safe { color: #14745f; background: #e3f4ee; }
.ops-risk.attention { color: #90702d; background: #fbf2d9; }
.ops-risk.warning { color: #a04e43; background: #fae8e5; }

.demo-boundary { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 13px 16px; border: 1px solid #e5dac4; border-radius: 13px; color: #88765d; background: #fdfaf4; }
.demo-boundary > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 6px; color: #fff; background: #a68454; font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.demo-boundary p { margin: 0; font-size: 9px; line-height: 1.65; }
.demo-boundary strong { color: #765c39; }

@keyframes ops-fan-spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .workbench-inner { width: min(960px, calc(100% - 32px)); }
  .workbench-hero { align-items: flex-start; }
  .workbench-hero-status { grid-template-columns: 1fr; }
  .workbench-hero-status > span { min-height: 41px; flex-direction: row; justify-content: space-between; gap: 7px; }
  .workbench-hero-status small { margin: 0; }
  .ops-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-layout-main { grid-template-columns: minmax(0, 1fr) 300px; }
  .ops-layout-thirds { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-records-login { position: relative; right: auto; bottom: auto; left: auto; flex-wrap: wrap; padding: 0 20px 20px; }
  .login-layout { padding-bottom: 32px; }
  .site-records-app { min-height: 43px; flex-basis: 43px; flex-wrap: wrap; gap: 3px 8px; padding: 6px 12px; }
  .workbench-inner { width: calc(100% - 22px); padding-top: 12px; }
  .workbench-hero { display: block; min-height: 0; padding: 24px 21px; border-radius: 17px; }
  .workbench-hero-status { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
  .workbench-hero-status > span { min-height: 57px; flex-direction: column; justify-content: center; }
  .workbench-hero-status small { margin-top: 4px; }
  .workbench-module-nav { grid-template-columns: 1fr; gap: 7px; }
  .workbench-module-nav button { min-height: 58px; }
  .ops-scenario-bar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ops-segmented { width: 100%; justify-content: stretch; }
  .ops-segmented button { min-width: 0; flex: 1; padding: 0 8px; }
  .ops-layout-main, .ops-layout-half { grid-template-columns: 1fr; }
  .ops-saving-card { min-height: 285px; }
  .ops-flow { display: grid; grid-template-columns: 1fr; }
  .ops-flow-node { min-height: 68px; }
  .ops-flow-arrow { transform: rotate(90deg); justify-self: center; }
  .ops-card-header { flex-direction: column; }
  .ops-chart-legend { justify-content: flex-start; }
  .ops-chart-wrap svg { height: 225px; }
  .ops-blower-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .workbench-hero h1 { font-size: 26px; }
  .workbench-hero p { font-size: 12px; }
  .workbench-hero-status > span:last-child { display: none; }
  .workbench-hero-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-kpi-grid { grid-template-columns: 1fr; }
  .ops-kpi { min-height: 112px; }
  .ops-saving-card { grid-template-columns: 1fr; }
  .ops-saving-card > .ops-card-header { grid-column: 1; }
  .ops-zone-list > div { grid-template-columns: 71px minmax(52px, 1fr) 86px; gap: 8px; }
  .ops-blower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-boundary { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .product-nav-item, .workbench-module-nav button, .ops-bar-track i { transition: none; }
  .is-running .ops-fan-icon { animation: none; }
}
