.vento-shell {
  display: grid;
  gap: 22px;
}

.vento-hero h1 {
  max-width: 980px;
}

.vento-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.vento-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--calc-border);
  border-radius: 6px;
  background: #fff;
  color: #30445b;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.vento-step span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  border: 1px solid #b9c8d8;
  border-radius: 4px;
  color: #1f2933;
  background: #f6f9fc;
}

.vento-step strong {
  min-width: 0;
  font-size: 0.92rem;
}

.vento-step.is-active,
.vento-step:hover {
  border-color: var(--calc-blue);
  color: var(--calc-blue-dark);
  box-shadow: 0 10px 22px rgba(18, 32, 51, 0.08);
}

.vento-step.is-active span {
  border-color: var(--calc-blue);
  background: var(--calc-blue);
  color: #fff;
}

.vento-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #fff;
}

.vento-quick-status {
  color: var(--calc-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.vento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.vento-main {
  min-width: 0;
}

.vento-panel {
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.06);
}

.vento-panel-body {
  display: none;
  padding: 24px;
}

.vento-panel-body.is-active {
  display: block;
}

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

.vento-panel-head h2 {
  margin: 0;
  color: var(--calc-ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 850;
  line-height: 1.12;
}

.vento-panel-head p {
  margin: 8px 0 0;
  color: var(--calc-muted);
}

.vento-note {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #bfd0e1;
  border-radius: 4px;
  color: #1f2933;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.vento-geometry-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.vento-geometry-fields {
  display: grid;
  gap: 14px;
}

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

.vento-form-cpi {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.vento-form-cpi .vento-field:nth-child(1),
.vento-form-cpi .vento-field:nth-child(2) {
  grid-column: span 6;
}

.vento-form-cpi .vento-field:nth-child(n+3) {
  grid-column: span 3;
}

.vento-geometry-sketch {
  min-width: 0;
}

.vento-field,
.vento-field-wide {
  display: grid;
  gap: 7px;
}

.vento-field-wide {
  grid-column: 1 / -1;
}

.vento-field label {
  color: #30445b;
  font-size: 0.86rem;
  font-weight: 800;
}

.vento-field input,
.vento-field select,
.vento-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c8d8;
  border-radius: 6px;
  background: #fff;
  color: var(--calc-ink);
  padding: 10px 12px;
  font: inherit;
}

.vento-field textarea {
  resize: vertical;
}

.vento-field input:focus,
.vento-field select:focus,
.vento-field textarea:focus {
  outline: 3px solid rgba(216, 154, 0, 0.16);
  border-color: var(--calc-blue);
}

.vento-field input:disabled,
.vento-field select:disabled,
.vento-field textarea:disabled {
  border-color: #cbd5e1;
  background:
    repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.10) 0 8px, rgba(148, 163, 184, 0.18) 8px 16px),
    #eef3f7;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
}

.vento-field input:disabled::placeholder,
.vento-field textarea:disabled::placeholder {
  color: #94a3b8;
}

.vento-field:has(:disabled) label {
  color: #64748b;
}

.vento-field select:disabled {
  background-color: #eef3f7;
}

.calc-btn:disabled,
.vento-icon-btn:disabled {
  border-color: #cbd5e1;
  background: #e8eef4;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.vento-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: stretch;
}

.vento-input-action .btn {
  min-height: 44px;
}

.vento-icon-btn {
  width: 48px;
  min-width: 48px;
  padding-inline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vento-summary,
.vento-session-summary {
  display: grid;
  gap: 8px;
}

.vento-summary {
  grid-template-columns: 1fr;
}

.vento-summary span,
.vento-session-summary div {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--calc-border);
  border-radius: 6px;
  background: var(--calc-surface-soft);
  color: #30445b;
  font-size: 0.84rem;
  font-weight: 750;
}

.vento-session-summary span {
  color: var(--calc-muted);
}

.vento-session-summary strong {
  color: var(--calc-ink);
  text-align: right;
}

.vento-sketch-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #b9c8d8;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(216, 154, 0, 0.07) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  background-size: 36px 36px, auto;
}

.vento-sketch {
  display: block;
  width: 100%;
  min-height: 520px;
}

.vento-sketch text {
  font-family: "Segoe UI", Arial, sans-serif;
  fill: #27384f;
}

.vento-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.vento-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--calc-border);
  border-radius: 6px;
  color: #30445b;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}

.vento-legend i {
  width: 22px;
  height: 4px;
  display: inline-block;
  border-radius: 2px;
}

.legend-pillar { background: #d89a00; }
.legend-frame { background: #e57921; }
.legend-purlin { background: #169b62; }
.legend-roof { background: #7c8796; }

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

.vento-pressure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.vento-result-item {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: var(--calc-surface-soft);
}

.vento-result-item span {
  color: #30445b;
  font-weight: 800;
}

.vento-result-item strong {
  align-self: end;
  color: var(--calc-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vento-report {
  display: grid;
  gap: 14px;
}

.vento-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.vento-report-section {
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: var(--calc-surface-soft);
  padding: 16px;
}

.vento-report-section h3 {
  margin: 0 0 12px;
  color: var(--calc-ink);
  font-size: 1.04rem;
  font-weight: 850;
}

.vento-report-section p {
  margin: 0;
  color: #30445b;
}

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

.vento-report-grid div {
  display: grid;
  gap: 5px;
  border: 1px solid #d5e0eb;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.vento-report-grid span {
  color: var(--calc-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.vento-report-grid strong {
  color: var(--calc-ink);
  font-size: 0.92rem;
}

.vento-bottom-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%);
}

.vento-wind-layout {
  display: grid;
  gap: 16px;
}

.vento-cpi-layout {
  display: grid;
  gap: 18px;
}

.vento-cpi-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(430px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.vento-cpi-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #fff;
}

.vento-cpi-orientation {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #fff;
}

.vento-openings {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: var(--calc-surface-soft);
}

.vento-openings.is-disabled {
  border-color: #d5e0eb;
  background:
    repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.06) 0 10px, rgba(148, 163, 184, 0.12) 10px 20px),
    #f3f6f9;
}

.vento-openings.is-disabled h3 {
  color: #64748b;
}

.vento-openings h3,
.vento-cpi-controls h3,
.vento-croqui-panel h3 {
  margin: 0;
  color: var(--calc-ink);
  font-size: 1rem;
  font-weight: 850;
}

.vento-openings-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
}

.vento-cpi-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vento-croqui-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.vento-calc-walkthrough {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.vento-combo-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 220px));
  gap: 12px;
  margin-bottom: 12px;
}

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

.vento-load-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d5e0eb;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.86rem;
}

.vento-load-table th,
.vento-load-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #d5e0eb;
  text-align: left;
  vertical-align: top;
}

.vento-load-table th {
  color: var(--calc-ink);
  background: #eef4fa;
  font-weight: 850;
}

.vento-load-table td {
  color: #30445b;
  font-weight: 700;
}

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

.vento-direction-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-weight: 900;
}

.vento-direction-badge span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.vento-direction-badge small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.vento-direction-badge.is-positive span {
  background: #d89a00;
}

.vento-direction-badge.is-negative span {
  background: #e97817;
}

.vento-coef-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 900;
}

.vento-coef-value b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

.vento-coef-value.is-cpe b {
  background: #d89a00;
}

.vento-coef-value.is-cpi b {
  background: #e97817;
}

.vento-croqui-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--calc-border);
  border-radius: 8px;
  background: #fff;
}

.vento-croqui-panel-wide {
  grid-column: 1 / -1;
}

.vento-mini-sketch {
  width: 100%;
  min-height: 260px;
  border: 1px solid #d5e0eb;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(216, 154, 0, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  background-size: 28px 28px, auto;
}

.vento-mini-sketch text {
  font-family: "Segoe UI", Arial, sans-serif;
}

.vento-cpi-sketch {
  min-height: 300px;
}

.vento-isopleth-image {
  display: block;
  width: min(100%, 620px);
  margin: 0 auto;
  height: auto;
}

.vento-factor-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.vento-factor-modal-grid-wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
}

.vento-norma-text {
  display: grid;
  gap: 10px;
  color: #30445b;
}

.vento-norma-text h6,
.vento-norma-text p,
.vento-norma-text ul {
  margin: 0;
}

.vento-norma-text ul {
  padding-left: 18px;
}

.vento-norma-figure {
  width: 100%;
  height: auto;
  border: 1px solid #d5e0eb;
  border-radius: 8px;
}

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

.vento-norma-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #d5e0eb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.84rem;
}

.vento-norma-table th,
.vento-norma-table td {
  border-bottom: 1px solid #d5e0eb;
  padding: 9px 10px;
  vertical-align: top;
}

.vento-norma-table th {
  color: var(--calc-ink);
  background: #eef4fa;
  font-weight: 850;
}

.vento-norma-table td {
  color: #30445b;
}

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

.vento-factor-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d5e0eb;
  border-radius: 8px;
  background: #fffaf0;
}

.vento-factor-help {
  color: var(--calc-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

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

  .vento-legend,
  .vento-geometry-layout,
  .vento-cpi-top,
  .vento-factor-modal-grid,
  .vento-results-grid,
  .vento-pressure-grid,
  .vento-openings-grid,
  .vento-cpi-summary,
  .vento-croqui-grid,
  .vento-report-grid {
    grid-template-columns: 1fr;
  }

  .vento-croqui-panel-wide {
    grid-column: auto;
  }
}

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

  .vento-form,
  .vento-form-cpi,
  .vento-geometry-layout,
  .vento-cpi-top,
  .vento-summary,
  .vento-legend,
  .vento-results-grid,
  .vento-pressure-grid,
  .vento-openings-grid,
  .vento-cpi-summary,
  .vento-croqui-grid,
  .vento-report-grid {
    grid-template-columns: 1fr;
  }

  .vento-form-cpi .vento-field:nth-child(1),
  .vento-form-cpi .vento-field:nth-child(2),
  .vento-form-cpi .vento-field:nth-child(n+3) {
    grid-column: auto;
  }

  .vento-panel-body {
    padding: 18px;
  }

  .vento-panel-head {
    flex-direction: column;
  }

  .vento-sketch {
    min-height: 390px;
  }

  .vento-bottom-nav {
    flex-direction: column;
  }

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

  .vento-report-actions .btn {
    width: 100%;
  }
}
