.pm-helm-open .pm-shell {
  background: #071018;
}

.pm-helm-chip {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.55);
  background: rgba(197, 160, 89, 0.12);
  color: #e8d092;
}

.pm-settings-top {
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35rem 0.45rem;
  border: none;
  background: transparent;
  color: #c5d4dc;
}

.pm-helm-root {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 0.75rem 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pm-helm-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #9eb4c0;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.pm-helm-chart-host {
  min-height: 42vh;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a1218;
}

.pm-helm-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
}

.pm-helm-chart-toolbar button {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #9eb4c0;
}

.pm-helm-chart-toolbar button.is-on {
  border-color: rgba(197, 160, 89, 0.65);
  color: #e8d092;
}

.pm-helm-chart-mount {
  height: 38vh;
  min-height: 220px;
}

.pm-helm-stoch {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #7ec8ff;
  margin: 0;
}

.pm-helm-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.pm-helm-setup-dir {
  font-size: 1rem;
  color: #e8d092;
}

.pm-helm-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.55rem;
}

.pm-helm-controls input,
.pm-helm-controls select,
.pm-helm-controls textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #eef4f7;
}

.pm-helm-actions {
  display: grid;
  gap: 0.5rem;
}

.pm-helm-receipt {
  font-size: 0.78rem;
  color: #80cbc4;
  padding: 0.45rem 0.55rem;
  border-left: 3px solid #80cbc4;
  background: rgba(128, 203, 196, 0.08);
}

.pm-helm-obs,
.pm-helm-audit {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: #b8c8d0;
}

.pm-helm-expand summary {
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #c5d4dc;
  margin-bottom: 0.45rem;
}

html.pm-fold-cover .pm-helm-chart-mount {
  min-height: 180px;
  height: 28vh;
}

html.pm-fold-open .pm-helm-root {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "strip strip"
    "chart chart"
    "stoch stoch"
    "setup controls"
    "actions actions"
    "obs obs";
}

html.pm-fold-open .pm-helm-status-strip { grid-area: strip; }
html.pm-fold-open .pm-helm-chart-host { grid-area: chart; }
html.pm-fold-open .pm-helm-stoch { grid-area: stoch; }
html.pm-fold-open .pm-helm-setup { grid-area: setup; }
html.pm-fold-open .pm-helm-controls { grid-area: controls; }
html.pm-fold-open .pm-helm-actions { grid-area: actions; }
html.pm-fold-open .pm-helm-expand { grid-area: obs; }

.pm-helm-emergency .pm-error {
  font-size: 0.78rem;
}

@media (max-width: 420px) {
  .pm-helm-chart-mount {
    min-height: 200px;
    height: 34vh;
  }
}
