#sr-hearing-app.srhp-shell {
  --srhp-ink: #1a1f2a;
  --srhp-muted: #596275;
  --srhp-line: #d8deea;
  --srhp-panel: #ffffff;
  --srhp-bg: #f7f9ff;
  --srhp-brand: var(--wd-primary-color, #a13a2c);
  --srhp-brand-2: var(--wd-primary-color, #bd4b3d);
  margin: 0 auto;
  padding: 10px 0 28px;
  color: var(--srhp-ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

#sr-hearing-app * { box-sizing: border-box; }

#sr-hearing-app h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  color: var(--wd-primary-color, #a13a2c);
  font-weight: 800;
}

#sr-hearing-app .srhp-muted {
  margin: 8px 0 14px;
  color: #304359;
}

#sr-hearing-app .srhp-block {
  border: 1px solid var(--srhp-line);
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
  background: linear-gradient(180deg, #ffffff, var(--srhp-bg));
}

#sr-hearing-app .srhp-block h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

#sr-hearing-app .srhp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#sr-hearing-app label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid #e5ebf5;
  border-radius: 10px;
  padding: 8px;
  background: #fbfdff;
}

#sr-hearing-app input,
#sr-hearing-app textarea,
#sr-hearing-app select,
#sr-hearing-app button {
  font: inherit;
}

#sr-hearing-app input,
#sr-hearing-app textarea,
#sr-hearing-app select {
  border: 1px solid #bbc5d8;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

#sr-hearing-app input:focus,
#sr-hearing-app textarea:focus,
#sr-hearing-app select:focus {
  outline: 2px solid #cde2ff;
  border-color: #7fa9d9;
}

#sr-hearing-app textarea {
  min-height: 88px;
  resize: vertical;
}

#sr-hearing-app .srhp-witness-group + .srhp-witness-group {
  margin-top: 10px;
}

#sr-hearing-app .srhp-witness-row,
#sr-hearing-app .srhp-evidence-row,
#sr-hearing-app .srhp-check-row {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--srhp-line);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

#sr-hearing-app .srhp-witness-row {
  grid-template-columns: 1fr 1fr;
}

#sr-hearing-app .srhp-witness-row textarea {
  grid-column: span 2;
}

#sr-hearing-app .srhp-danger {
  grid-column: span 2;
  justify-self: end;
}

#sr-hearing-app .srhp-evidence-row {
  grid-template-columns: 1.2fr 160px 1fr auto;
  align-items: center;
}

#sr-hearing-app .srhp-check-row {
  grid-template-columns: 1.2fr auto auto 1fr auto;
  align-items: center;
}

#sr-hearing-app .srhp-inline-check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

#sr-hearing-app .srhp-inline {
  display: flex;
  gap: 8px;
}

#sr-hearing-app .srhp-inline input {
  flex: 1;
}

#sr-hearing-app button {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

#sr-hearing-app .srhp-primary {
  color: #fff;
  background: linear-gradient(180deg, #1f5d9a, #123861);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#sr-hearing-app .srhp-primary:hover {
  background: linear-gradient(180deg, #266fb7, #0d2e4f);
}

#sr-hearing-app .srhp-secondary {
  background: #e7eef8;
  color: #10253f;
  border: 1px solid #cad7e6;
}

#sr-hearing-app .srhp-danger {
  background: #ffe9e6;
  color: #7a261f;
}

#sr-hearing-app .srhp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#sr-hearing-app .srhp-message {
  min-height: 20px;
  margin: 10px 0;
  color: var(--srhp-muted);
  font-weight: 600;
}

#sr-hearing-app .srhp-help {
  font-size: 0.76rem;
  color: #43566f;
  font-weight: 500;
}

#sr-hearing-app .srhp-preview {
  border: 1px solid var(--srhp-line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

@media (max-width: 960px) {
  #sr-hearing-app .srhp-grid,
  #sr-hearing-app .srhp-witness-row,
  #sr-hearing-app .srhp-evidence-row,
  #sr-hearing-app .srhp-check-row {
    grid-template-columns: 1fr;
  }

  #sr-hearing-app .srhp-danger {
    grid-column: auto;
    justify-self: start;
  }
}

@media print {
  #sr-hearing-app .srhp-actions,
  #sr-hearing-app button,
  #sr-hearing-app .srhp-inline {
    display: none;
  }
}
