/* Ventilation PRO v2 — publication layout, readable controls and interactive engineering views. */
:root {
  --vent-supply: #267557;
  --vent-exhaust: #b96134;
  --vent-critical: #9e3f3a;
  --vent-deep: #173c2d;
  --vent-focus: 0 0 0 4px rgba(38, 117, 87, .13);
}

.vent-wrap {
  width: min(1480px, calc(100% - 56px));
}

.vent-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 620px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e9e5;
  background-color: #f7f9f7;
  background-image:
    radial-gradient(circle at 79% 36%, rgba(44, 112, 83, .12), transparent 29%),
    radial-gradient(circle at 89% 15%, rgba(208, 137, 86, .10), transparent 18%),
    linear-gradient(135deg, transparent 0 54%, rgba(83, 125, 105, .06) 54% 55%, transparent 55% 100%),
    url('ventilation-hero-v3.webp');
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, auto, cover;
  background-position: 79% 36%, 89% 15%, 0 0, 74% center;
}

.vent-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 249, 247, 1) 0%, rgba(247, 249, 247, .985) 30%, rgba(247, 249, 247, .92) 44%, rgba(247, 249, 247, .56) 57%, rgba(247, 249, 247, .18) 70%, rgba(247, 249, 247, .05) 100%),
    radial-gradient(circle at 78% 42%, rgba(255, 255, 255, .22), transparent 26%);
}


.vent-hero::after {
  content: none;
}


.vent-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 76px 0 72px;
}


.vent-hero h1 {
  max-width: 780px;
  font-size: clamp(43px, 5vw, 70px);
  line-height: .98;
}

.vent-hero p {
  max-width: 700px;
  color: #455b50;
  font-size: 18px;
  line-height: 1.62;
}

.vent-hero-tags span {
  padding: 9px 12px;
  font-size: 12.5px;
}

.vent-shell-head h2 {
  font-size: clamp(27px, 2.5vw, 34px);
}

.vent-shell-head p {
  font-size: 15px;
}

.vent-workbench {
  grid-template-columns: minmax(560px, 640px) minmax(0, 1fr);
}

.vent-stage-nav {
  gap: 8px;
  padding: 18px 20px;
}

.vent-stage-tab {
  min-height: 68px;
  padding: 10px;
}

.vent-stage-tab span {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.vent-stage-tab b {
  font-size: 12px;
  line-height: 1.22;
}

.vent-stage {
  padding: 27px 25px 23px;
}

.vent-stage-head {
  margin-bottom: 21px;
}

.vent-stage-head > span {
  font-size: 12px;
}

.vent-stage-head h3 {
  margin-top: 6px;
  font-size: 27px;
}

.vent-stage-head p {
  font-size: 14px;
  line-height: 1.58;
}

.vent-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
}

.vent-card h4 {
  font-size: 17px;
}

.vent-card-note {
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.55;
}

.vent-grid-2,
.vent-grid-3 {
  gap: 13px;
}

.vent-field {
  gap: 7px;
}

.vent-field > span {
  font-size: 12.5px;
  line-height: 1.35;
}

.vent-field small {
  font-size: 11.5px;
  line-height: 1.45;
}

.vent-field input,
.vent-field select {
  min-height: 47px;
  padding: 10px 11px;
  border-radius: 12px;
  font-size: 14.5px;
}

.vent-field input:focus,
.vent-field select:focus {
  box-shadow: var(--vent-focus);
}

.vent-unit b {
  padding-inline: 11px;
  font-size: 12px;
}

.vent-room-list,
.vent-segment-list {
  gap: 13px;
}

.vent-room,
.vent-segment {
  padding: 16px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 60, 45, .035);
}

.vent-room-head,
.vent-segment-head {
  margin-bottom: 13px;
}

.vent-room-head > div,
.vent-segment-head > div {
  min-width: 0;
}

.vent-room-head span,
.vent-segment-head span {
  display: block;
  margin-bottom: 3px;
  color: #6d7d75;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vent-room-head b,
.vent-segment-head b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.vent-remove {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

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

.vent-room-grid .vent-field > span {
  font-size: 11.5px;
}

.vent-room-grid input,
.vent-room-grid select {
  min-height: 43px;
  padding: 8px 9px;
  font-size: 13px;
}

.vent-room-result {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.vent-room-result div {
  min-height: 64px;
  padding: 10px;
  border: 1px solid #dce9e2;
  border-radius: 12px;
}

.vent-room-result small {
  font-size: 10.5px;
  line-height: 1.25;
}

.vent-room-result b {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.3;
}

.vent-network-help {
  margin-bottom: 13px;
}

.vent-network-help code {
  padding: 2px 5px;
  border: 1px solid #d7e3dd;
  border-radius: 5px;
  background: #fff;
  color: #255944;
  font-size: .95em;
}

.vent-add {
  min-height: 46px;
  font-size: 13.5px;
}

.vent-table-wrap {
  scrollbar-color: #9eb8ab #eef3f0;
  scrollbar-width: thin;
}

.vent-table {
  min-width: 900px;
}

.vent-table th,
.vent-table td {
  padding: 11px 12px;
  font-size: 12px;
}

.vent-table th {
  z-index: 2;
  font-size: 10.5px;
  letter-spacing: .015em;
}

.vent-table td small {
  margin-top: 4px;
  font-size: 10.5px;
}

.vent-critical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.vent-critical-grid > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid #dbe6e1;
  border-radius: 13px;
  background: #f8fbf9;
}

.vent-critical-grid small {
  color: #687970;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.vent-critical-grid b {
  font-size: 15px;
}

.vent-critical-grid span {
  color: #66776e;
  font-size: 11.5px;
  line-height: 1.45;
}

.vent-step-actions {
  padding: 18px 25px 24px;
}

.vent-live {
  top: 82px;
  padding: 23px 23px 28px;
}

.vent-live-top {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 15px;
}

.vent-kpi {
  min-height: 86px;
  padding: 12px;
}

.vent-kpi span {
  font-size: 10.5px;
}

.vent-kpi strong {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.18;
}

.vent-kpi small {
  margin-top: 5px;
  font-size: 9.5px;
  line-height: 1.25;
}

.vent-view-tabs {
  gap: 7px;
  margin-bottom: 12px;
}

.vent-view-tabs button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 11.5px;
}

.vent-view {
  min-height: 430px;
  border-radius: 20px;
}

.vent-view-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e9e6;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}


.vent-view-head b {
  display: block;
  font-size: 15px;
  line-height: 1.22;
  color: #21362d;
}


.vent-view-head small {
  display: block;
  max-width: 560px;
  color: #6f7f77;
  font-size: 11.5px;
  line-height: 1.38;
}


.vent-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 470px;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  image-rendering: auto;
}


#ventAxo {
  cursor: grab;
  user-select: none;
}

#ventAxo.is-dragging {
  cursor: grabbing;
}

.vent-axo-head {
  align-items: flex-start;
  gap: 14px;
}


.vent-axo-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}


.vent-axo-tools {
  display: grid;
  grid-template-columns: repeat(7, 34px);
  gap: 6px;
  flex: 0 0 auto;
}


.vent-axo-tools button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d9e3de;
  border-radius: 10px;
  background: #fff;
  color: #315b48;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(25, 54, 41, .05);
}


.vent-axo-tools button:hover,
.vent-axo-tools button:focus-visible {
  background: #e7f3ed;
  border-color: #82ad98;
  outline: 0;
  box-shadow: var(--vent-focus);
}

.vent-axo-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
  border-top: 1px solid #dfe8e3;
  background: #fff;
  color: #607168;
  font-size: 10.5px;
  line-height: 1.4;
}

.vent-axo-hint span:last-child {
  color: #8b3d38;
  font-weight: 850;
}

.vent-legend {
  padding: 10px 13px;
  font-size: 10.5px;
}

.vent-diag-list {
  gap: 9px;
  margin-top: 14px;
}

.vent-diag {
  grid-template-columns: 29px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 13px;
}

.vent-diag i {
  width: 25px;
  height: 25px;
  font-size: 11px;
}

.vent-diag b {
  font-size: 12.5px;
}

.vent-diag p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
}

.vent-diag em {
  font-size: 10.5px;
}

.vent-report {
  padding: 30px;
  border-top: 1px solid #e1e9e5;
  background: #f8faf9;
}

.vent-report-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--vent-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vent-report-head h3 {
  font-size: 29px;
}

.vent-report-head p {
  font-size: 13px;
  line-height: 1.45;
}

.vent-report-actions .btn {
  min-height: 42px;
  font-size: 12px;
}

.vent-result-grid-pro {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}

.vent-result-card {
  min-height: 112px;
  padding: 15px;
}

.vent-result-card.primary {
  border-color: transparent;
  background: linear-gradient(145deg, #1f4d3a, #347057);
  color: #fff;
}

.vent-result-card.primary span,
.vent-result-card.primary small {
  color: rgba(255, 255, 255, .75);
}

.vent-result-card span,
.vent-result-card small {
  font-size: 10.5px;
  line-height: 1.35;
}

.vent-result-card strong {
  margin: 7px 0 5px;
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.vent-report-section {
  margin-top: 20px;
  border-radius: 17px;
  background: #fff;
}

.vent-report-title {
  padding: 15px 17px;
}

.vent-report-title h4 {
  font-size: 16px;
}

.vent-report-title p {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.45;
}

.vent-report-axo {
  display: block;
  width: 100%;
  height: auto;
  min-height: 460px;
}

.vent-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e1e9e5;
}

.vent-equipment-grid > div {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 16px;
  background: #fff;
}

.vent-equipment-grid small,
.vent-equipment-grid span {
  color: #6a7a72;
  font-size: 10.5px;
  line-height: 1.4;
}

.vent-equipment-grid b {
  color: #203e31;
  font-size: 18px;
  line-height: 1.25;
}

.vent-report-note {
  padding: 14px 16px;
  font-size: 12px;
}

.vent-report-disclaimer {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #ebd5ae;
  border-radius: 15px;
  background: #fff8e9;
  color: #675428;
  font-size: 12.5px;
  line-height: 1.6;
}

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

.vent-formula,
.vent-how-step {
  padding: 20px;
  border: 1px solid #dce6e1;
  border-radius: 18px;
  background: #fff;
}

.vent-formula code {
  display: block;
  margin: 0 0 13px;
  padding: 12px;
  border-radius: 12px;
  background: #edf5f1;
  color: #21533e;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  white-space: normal;
}

.vent-formula h3,
.vent-how-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.vent-formula p,
.vent-how-step p {
  margin: 0;
  color: #5e7067;
  font-size: 13px;
  line-height: 1.58;
}

.vent-how-step > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  background: #e5f2eb;
  color: #235c44;
  font-size: 14px;
  font-weight: 900;
}

.vent-review {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
  gap: 18px;
  align-items: stretch;
}

.vent-review-main,
.vent-review-meta {
  padding: 23px;
  border: 1px solid #dce6e1;
  border-radius: 19px;
  background: #fff;
}

.vent-review-main h3,
.vent-review-meta h3 {
  margin: 0 0 9px;
  font-size: 19px;
}

.vent-review-main p,
.vent-review-meta p {
  margin: 0;
  color: #5c6e65;
  font-size: 13.5px;
  line-height: 1.62;
}

.vent-review-meta dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.vent-review-meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6ece9;
}

.vent-review-meta div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.vent-review-meta dt {
  color: #73827a;
  font-size: 11.5px;
}

.vent-review-meta dd {
  margin: 0;
  color: #29483a;
  font-size: 12.5px;
  font-weight: 800;
}

@media (max-width: 1380px) {
  .vent-result-grid-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1240px) {
  .vent-wrap {
    width: min(1480px, calc(100% - 36px));
  }

  .vent-workbench {
    grid-template-columns: 1fr;
  }

  .vent-controls {
    border-right: 0;
    border-bottom: 1px solid #e2e8e5;
  }

  .vent-live {
    position: static;
  }

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

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

@media (max-width: 920px) {
  .vent-wrap {
    width: calc(100% - 24px);
  }

  .vent-hero {
    min-height: auto;
    background-position: 82% 28%, 92% 12%, 0 0, 76% center;
  }

  .vent-hero::before {
    background: linear-gradient(180deg, rgba(247, 249, 247, .98) 0%, rgba(247, 249, 247, .94) 16%, rgba(247, 249, 247, .78) 36%, rgba(247, 249, 247, .58) 56%, rgba(247, 249, 247, .82) 100%);
  }

  .vent-hero-copy {
    padding: 42px 0 158px;
  }

  .vent-hero h1 {
    font-size: clamp(36px, 9vw, 52px);
  }

  .vent-shell-head {
    padding: 23px 18px 20px;
  }

  .vent-stage-nav {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    scroll-padding-inline: 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .vent-view-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .vent-axo-head {
    flex-direction: column;
  }

  .vent-axo-tools {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vent-axo-tools button {
    width: 100%;
    height: 38px;
  }

  .vent-stage-tab {
    flex: 0 0 124px;
    min-height: 61px;
    scroll-snap-align: start;
  }

  .vent-stage-tab span {
    width: 23px;
    height: 23px;
    margin-bottom: 3px;
  }

  .vent-stage {
    padding: 21px 14px;
  }

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

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

  .vent-live {
    padding: 17px 13px 24px;
  }

  .vent-report {
    padding: 22px 14px;
  }

  .vent-report-head {
    display: block;
  }

  .vent-report-actions {
    margin-top: 14px;
  }

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

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

  .vent-review {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .vent-wrap {
    width: calc(100% - 18px);
  }

  .vent-hero {
    background-position: 84% 26%, 94% 11%, 0 0, 80% center;
  }

  .vent-hero-copy {
    padding: 34px 0 136px;
  }

  .vent-hero p {
    font-size: 15.5px;
  }

  .vent-hero-tags {
    gap: 6px;
    margin-top: 18px;
  }

  .vent-hero-tags span {
    padding: 7px 9px;
    font-size: 10.5px;
  }

  .vent-shell {
    border-radius: 20px;
  }

  .vent-mode-switch {
    grid-template-columns: 1fr;
  }

  .vent-stage-head h3 {
    font-size: 23px;
  }

  .vent-grid-2,
  .vent-grid-3,
  .vent-radio-grid,
  .vent-room-grid {
    grid-template-columns: 1fr;
  }

  .vent-room,
  .vent-segment {
    padding: 13px;
  }

  .vent-room-result {
    grid-template-columns: 1fr 1fr;
  }

  .vent-room-result div:last-child {
    grid-column: 1 / -1;
  }

  .vent-critical-grid {
    grid-template-columns: 1fr;
  }

  .vent-step-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
  }

  .vent-step-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .vent-live-top {
    grid-template-columns: 1fr 1fr;
  }

  .vent-kpi.primary {
    grid-column: 1 / -1;
  }

  .vent-view-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vent-view-tabs button {
    width: 100%;
  }

  .vent-view-head {
    align-items: flex-start;
  }

  .vent-axo-head {
    display: grid;
  }

  .vent-axo-tools {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    margin-top: 9px;
  }

  .vent-axo-tools button {
    width: 100%;
  }

  .vent-axo-hint {
    display: grid;
  }

  .vent-svg,
  .vent-report-axo {
    min-height: 300px;
  }

  .vent-diag {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .vent-diag em {
    grid-column: 2;
  }

  .vent-result-grid-pro,
  .vent-equipment-grid,
  .vent-formula-grid,
  .vent-how-grid {
    grid-template-columns: 1fr;
  }

  .vent-result-card {
    min-height: 96px;
  }

  .vent-report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vent-report-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .vent-review-main,
  .vent-review-meta {
    padding: 18px;
  }

  .vent-review-meta div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 390px) {
  .vent-hero {
    background-position: 86% 23%, 96% 9%, 0 0, 84% center;
  }

  .vent-hero h1 {
    font-size: 34px;
  }

  .vent-room-result,
  .vent-live-top,
  .vent-view-tabs,
  .vent-report-actions {
    grid-template-columns: 1fr;
  }

  .vent-room-result div:last-child,
  .vent-kpi.primary {
    grid-column: auto;
  }

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

@media print {
  .vent-report {
    background: #fff;
  }

  .vent-report-visual {
    display: block !important;
    break-inside: avoid;
  }

  .vent-report-axo {
    min-height: 360px;
  }

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

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


/* v4 publication related links */
.vent-related{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.vent-related a{min-width:0;padding:17px;border:1px solid #dce5e0;border-radius:16px;background:#fff;color:inherit;text-decoration:none;transition:.18s;box-shadow:0 8px 22px rgba(31,62,48,.035)}.vent-related a:hover{border-color:#a9c9b9;transform:translateY(-2px);box-shadow:0 12px 28px rgba(31,62,48,.07)}.vent-related b,.vent-related small{display:block}.vent-related b{font-size:14px;color:#244c3b}.vent-related small{margin-top:5px;color:#6a7971;line-height:1.45}.vent-article[id]{scroll-margin-top:92px}@media(max-width:860px){.vent-related{grid-template-columns:1fr 1fr}}@media(max-width:540px){.vent-related{grid-template-columns:1fr}}


#ventNetwork text, #ventAxo text {
  paint-order: stroke;
}

#ventNetwork, #ventAxo {
  background: linear-gradient(180deg, #fcfdfc 0%, #f4f8f6 100%);
}

/* v6 — mobile containment and premium stage navigation */
.vent-body{overflow-x:hidden}
.vent-shell,.vent-workbench,.vent-controls,.vent-stage,.vent-live,.vent-view,.vent-report{min-width:0;max-width:100%}
.vent-shell *, .vent-shell *::before, .vent-shell *::after{box-sizing:border-box}
.vent-stage-nav,.vent-stage-tab,.vent-stage-tab b,.vent-stage-head,.vent-card,.vent-field,.vent-mode-switch{min-width:0;max-width:100%}
.vent-stage-tab b,.vent-stage-head h3,.vent-stage-head p,.vent-card h4{overflow-wrap:anywhere}
.vent-field input,.vent-field select,.vent-unit,.vent-inline-toggle,.vent-radio-grid,.vent-choice{max-width:100%}

@media(max-width:920px){
  .vent-stage-nav.simple,
  .vent-stage-nav.pro{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%;
    padding:12px!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
  }
  .vent-stage-tab{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:64px!important;
    padding:9px 7px!important;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:4px;
    border-radius:13px;
    white-space:normal;
    overflow:hidden;
    scroll-snap-align:none!important;
  }
  .vent-stage-tab span{
    flex:0 0 auto;
    width:24px!important;
    height:24px!important;
    margin:0!important;
  }
  .vent-stage-tab b{
    width:100%;
    font-size:10.5px!important;
    line-height:1.15!important;
    white-space:normal;
    word-break:normal;
    overflow-wrap:anywhere;
  }
  .vent-stage{
    width:100%;
    padding-inline:14px!important;
    overflow:hidden;
  }
  .vent-card{width:100%;overflow:hidden}
  .vent-step-actions{width:100%;left:0;right:0}
  .vent-step-actions .btn{max-width:100%;white-space:normal;text-align:center}
  .vent-view,.vent-svg{max-width:100%}
  .vent-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

@media(max-width:660px){
  .vent-stage-nav.simple,
  .vent-stage-nav.pro{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    padding:10px!important;
  }
  .vent-stage-tab{
    min-height:58px!important;
    padding:8px 9px!important;
    display:grid;
    grid-template-columns:25px minmax(0,1fr);
    align-items:center;
    justify-content:stretch;
    gap:8px;
  }
  .vent-stage-tab span{width:25px!important;height:25px!important}
  .vent-stage-tab b{font-size:11px!important;line-height:1.18!important}
  .vent-stage{padding:18px 10px 20px!important}
  .vent-card{padding:14px 12px!important;border-radius:15px}
  .vent-stage-head{margin-bottom:14px}
  .vent-stage-head h3{font-size:21px!important}
  .vent-step-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    padding-inline:10px!important;
  }
}

@media(max-width:390px){
  .vent-stage-nav.simple,
  .vent-stage-nav.pro{gap:6px!important;padding:8px!important}
  .vent-stage-tab{min-height:56px!important;padding:7px!important;gap:6px}
  .vent-stage-tab b{font-size:10.5px!important}
  .vent-stage{padding-inline:8px!important}
  .vent-card{padding-inline:10px!important}
}

/* v947: KPI cards follow the available sidebar width, including the ad rail. */
.vent-live-top{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
