.status-line {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
  max-width: min(420px, calc(100vw - 40px));
  min-height: 36px;
  align-items: center;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgb(7 20 38 / 12%);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.status-line[hidden] {
  display: none;
}

.status-line.error {
  border-color: #e0aaa4;
  background: #fff2f0;
  color: var(--danger);
}

@media (max-width: 680px) {
  .status-line {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 10px;
}

#view-components.view.active {
  gap: 8px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 20px;
}

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

.panel-head.compact {
  margin-bottom: 10px;
}

.segmented {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.segmented button {
  min-height: 28px;
  border: 1px solid #9eb2ca;
  border-radius: 8px;
  background: #ffffff;
  color: #06152a;
  padding: 0 10px;
  font-size: 12px;
}

.segmented button.active {
  background: #4f729f;
  border-color: #4f729f;
  color: #ffffff;
  font-weight: 700;
}
