.theme-panel {
  padding: 18px;
  margin: 0 0 20px;
  border: 1px solid #c6dce5;
  border-radius: 18px;
  background: #f0f7fb;
  color: #183e51;
}
.theme-panel h2 {
  font-size: clamp(21px, 3vw, 27px);
  margin: 0 0 8px;
}
.theme-panel p {
  margin: 6px 0 12px;
}
.theme-panel fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.theme-panel legend {
  font-weight: 600;
  margin-bottom: 10px;
}
.theme-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.theme-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #adc5ce;
  border-radius: 12px;
  background: white;
  min-height: 48px;
  font-size: 14px;
  cursor: pointer;
}
.theme-choice:has(:checked) {
  background: #e0f1e7;
  border-color: #277054;
}
.theme-choice input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: #195943;
}
.theme-panel button {
  min-height: 48px;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}
.theme-panel .theme-skip {
  background: transparent;
  color: #183e51;
  border: 0;
  padding: 10px 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 12px;
}
.theme-franchise-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.theme-franchise-fields label {
  font-size: 14px;
}
.theme-franchise-fields input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid #9eb8c2;
  border-radius: 9px;
  padding: 9px;
  background: white;
  color: #183e51;
  font: inherit;
}
.theme-calculate {
  margin-top: 12px;
  background: #183e51;
  color: white;
  border: 0;
}
.theme-result-choice {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #277054;
  background: #e0f1e7;
  color: #183e51;
  text-align: left;
}
.theme-panel .theme-note {
  font-size: 12px;
  line-height: 1.5;
}
.theme-panel [role="status"] {
  font-size: 14px;
}
.theme-panel :focus-visible {
  outline: 3px solid #176bc0;
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .theme-panel {
    padding: 13px;
  }
  .theme-franchise-fields {
    grid-template-columns: 1fr;
  }
  .theme-choices {
    gap: 6px;
  }
  .theme-choice {
    font-size: 13px;
    padding: 8px;
    overflow-wrap: anywhere;
  }
}
