.pr-app {
  margin: 3rem 0 2.4rem;
  padding: 2.4rem 0 2rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #111;
}

.pr-app__inner {
  width: 100%;
  max-width: 100%;
}

.pr-app__loading {
  padding: 1.6rem 0;
  color: #666;
}

.pr-app__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.pr-app__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-left: 10px;
}

.pr-app__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  padding: 0.5rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  margin-left: 5px;
}

.pr-app__summary-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.7rem;
  line-height: 1;
}

.pr-app__summary-score {
  color: #4b5563;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

.pr-app__body {
  display: grid;
  grid-template-columns: minmax(28rem, 0.95fr) minmax(38rem, 1.2fr);
  gap: 2.4rem 3.6rem;
  align-items: start;
}

.pr-app__left {
  min-width: 0;
}

.pr-app__right {
  min-width: 0;
  border-left: 1px solid #e8e8e8;
  padding-left: 2.6rem;
}

.pr-app__list-heading {
  margin: 0 0 1.4rem;
  font-size: 1.7rem;
  line-height: 1.3;
  font-weight: 700;
  margin-left: 10px;
}

.pr-app__breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
  margin-left: 10px;
}

.pr-app__breakdown-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(5rem, 1fr) 3.8rem;
  align-items: center;
  gap: 0.9rem;
}

.pr-app__breakdown-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}

.pr-app__breakdown-pct {
  color: #4b5563;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: right;
}

.pr-app__breakdown-track {
  position: relative;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.pr-app__breakdown-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pr-star-fill, #800000);
}

.pr-app__star-svg {
  width: 1em;
  height: 1em;
  display: block;
  flex-shrink: 0;
}

.pr-app__star-svg--filled {
  color: var(--pr-star-fill, #800000);
}

.pr-app__star-svg--empty {
  color: var(--pr-star-color, #800000);
  opacity: 0.55;
}

.pr-app__star-half {
  display: inline-flex;
  opacity: 0.55;
}

.pr-app__star-btn {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  color: var(--pr-star-color, #800000);
  transition: transform 0.15s ease;
}

.pr-app__star-btn--filled {
  color: var(--pr-star-fill, #800000);
}

.pr-app__star-btn:hover,
.pr-app__star-btn:focus {
  transform: scale(1.1);
  outline: none;
}

.pr-app__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0;
  max-height: 52rem;
  overflow-y: auto;
  padding-right: 0.6rem;
}

.pr-app__list-item {
  padding: 1.2rem 1.3rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.pr-app__list-item:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.pr-app__list-title {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
}

.pr-app__list-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #666;
}

.pr-app__list-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.pr-app__list-author {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pr-app__list-comment {
  margin: 0.4rem 0 0;
  color: #333;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pr-app__cta {
  margin: 1.6rem 0 2rem;
  font-size: 1.4rem;
}

.pr-app__cta a {
  color: var(--pr-star-fill, #800000);
  text-decoration: underline;
  cursor: pointer;
}

.pr-app__cta a:hover {
  text-decoration: none;
}

.pr-app__message {
  margin: 1.6rem 0 2rem;
  padding: 1rem 1.2rem;
  background: #f8f8f8;
  border-radius: 6px;
  color: #444;
  font-size: 1.4rem;
}

.pr-app__form {
  margin-top: 1.8rem;
  padding: 1.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.pr-app__form-row {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  align-items: flex-start;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.pr-app__form-label {
  padding-top: 0.6rem;
  font-weight: 500;
  line-height: 1.4;
}

.pr-app__form-field {
  min-width: 0;
}

.pr-app__form-input,
.pr-app__form-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1.4rem;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pr-app__form-input:focus,
.pr-app__form-textarea:focus {
  border-color: var(--pr-star-fill, #800000);
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.12);
  outline: none;
}

.pr-app__form-textarea {
  min-height: 10rem;
  resize: vertical;
}

.pr-app__rating-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-height: 3.2rem;
}

.pr-app__rating-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 1.2rem;
  color: #666;
  background: #fff;
}

.pr-app__submit {
  margin-top: 0.2rem;
  padding: 0.9rem 2rem;
  border: 0;
  border-radius: 6px;
  background: var(--pr-star-fill, #800000);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 15rem;
}

.pr-app__submit:hover:not(:disabled) {
  filter: brightness(0.94);
}

.pr-app__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pr-app__error {
  margin-top: 1rem;
  color: #c00;
  font-size: 1.3rem;
}

.pr-app__success {
  margin-top: 1rem;
  color: #166534;
  font-size: 1.3rem;
}

.pr-app__empty {
  margin-bottom: 1.6rem;
  color: #666;
}

@media (max-width: 900px) {
  .pr-app__body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pr-app__right {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #e8e8e8;
    padding-top: 2.2rem;
  }

  .pr-app__list {
    max-height: none;
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .pr-app {
    margin: 2.4rem 0 1.8rem;
    padding-top: 2rem;
  }

  .pr-app__form-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
  }

  .pr-app__form-label {
    padding-top: 0;
  }

  .pr-app__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pr-app__summary-stars {
    font-size: 1.55rem;
  }

  .pr-app__breakdown-row {
    grid-template-columns: 9rem minmax(4rem, 1fr) 3.5rem;
  }

  .pr-app__breakdown-stars {
    font-size: 1.35rem;
  }

  .pr-app__rating-picker {
    gap: 0.6rem;
  }

  .pr-app__submit {
    width: 100%;
  }

  .pr-app__list-meta {
    gap: 0.7rem;
  }
}
