.paperstars-stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding-top: 10px;
    white-space: nowrap;
}

.paperstars-svg-star {
    display: inline-block;
    flex: 0 0 auto;
}

.paperstars-rating {
    --ps-green: #4B6B07;
    --ps-orange: #BD7426;
    --ps-red: #C33838;
}

.paperstars-rating .btn-group,
.paperstars-rating .btn-group-vertical {
    width: 100%;
}

.paperstars-rating label.btn:nth-of-type(1) {
    --ps-col: var(--ps-green);
}

.paperstars-rating label.btn:nth-of-type(2) {
    --ps-col: var(--ps-orange);
}

.paperstars-rating label.btn:nth-of-type(3) {
    --ps-col: var(--ps-red);
}

.paperstars-rating input[type="radio"].btn-check+label.btn {
    width: 100%;
    display: block !important;
    border-radius: 999px !important;
    padding: 9px 16px;
    text-align: center !important;
    background: #ffffff !important;
    box-shadow: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    border: 2px solid var(--ps-col) !important;
    color: var(--ps-col) !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.paperstars-rating input[type="radio"].btn-check:checked+label.btn {
    background: var(--ps-col) !important;
    border-color: var(--ps-col) !important;
    color: #ffffff !important;
}

.paperstars-rating label.btn {
    margin: 0 !important;
}

/* .paperstars-rating label.btn:not(:last-of-type) {
    margin-bottom: 18px !important;
} */

.paperstars-rating label.btn:hover {
    filter: brightness(0.97);
}

.paperstars-rating label.btn:focus,
.paperstars-rating label.btn:focus-visible,
.paperstars-rating input[type="radio"].btn-check:focus+label.btn {
    outline: none !important;
    box-shadow: none !important;
}

.paperstars-rating input[type="radio"].btn-check+label.btn {
    padding: clamp(7px, 1.2vw, 9px) clamp(12px, 2vw, 16px);
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    line-height: 1.2;

    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.paperstars-rating label.btn:not(:last-of-type) {
    margin-bottom: clamp(10px, 2.2vw, 18px) !important;
}

.paperstars-rating .btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.5vw, 18px);
}

.paperstars-rating label.btn:not(:last-of-type) {
    margin-bottom: 0 !important;
}

.paperstars-textbox {
    background: #ffffff;
    border: 1px solid rgba(43, 54, 43, 0.14);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    padding: 18px 20px;
    margin: 14px 0;
}

.paperstars-textbox> :first-child {
    margin-top: 0;
}

.paperstars-textbox> :last-child {
    margin-bottom: 0;
}

.paperstars-textbox p {
    color: #2b362b;
    line-height: 1.55;
    margin: 0 0 12px 0;
}

.paperstars-textbox p:last-child {
    margin-bottom: 0;
}

.paperstars-textbox h1,
.paperstars-textbox h2,
.paperstars-textbox h3,
.paperstars-textbox h4 {
    color: #2b362b;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.paperstars-textbox ul,
.paperstars-textbox ol {
    padding-left: 1.2rem;
    margin: 0 0 12px 0;
}

.paperstars-textbox li {
    margin: 6px 0;
}

.paperstars-text-input .form-control {
    background: #ffffff;
    border: 1px solid rgba(43, 54, 43, 0.18);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #2b362b;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
    min-height: 180px;
}

.paperstars-text-input .form-control::placeholder {
    color: rgba(43, 54, 43, 0.45);
}

.paperstars-text-input .form-control:focus {
    border-color: #5a7f0f;
    box-shadow: 0 0 0 3px rgba(90, 127, 15, 0.18);
    outline: none;
}

.paperstars-text-input label {
    font-weight: 700;
    color: #2b362b;
    margin-bottom: 6px;
}

.paperstars-text-input .shiny-input-container {
    width: 100%;
}

.paperstars-button {
    background-color: #0f1a00;
    color: #ffffff;
    border: none;
    border-radius: 18px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.paperstars-button:hover {
    background-color: #162600;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.paperstars-button:active {
    background-color: #0c1400;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    transform: translateY(0);
}

.paperstars-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 127, 15, 0.35);
}

.paperstars-param {
    margin: 20px 0 28px 0;
}

.paperstars-param__title {
    font-weight: 700;
    color: #2b362b;
    margin-bottom: 10px;
}

.paperstars-param__bar {
    display: flex;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(43, 54, 43, 0.10);
}

.paperstars-param__segment {
    height: 100%;
}

.paperstars-param__segment--green {
    background: #5a7f0f;
}

.paperstars-param__segment--amber {
    background: #b8741f;
}

.paperstars-param__segment--red {
    background: #c23a3a;
}

.paperstars-param__legend {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    font-size: 0.92rem;
    color: rgba(43, 54, 43, 0.88);
}

.paperstars-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.paperstars-legend__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

.paperstars-legend__dot--green {
    background: #5a7f0f;
}

.paperstars-legend__dot--amber {
    background: #b8741f;
}

.paperstars-legend__dot--red {
    background: #c23a3a;
}


/* rating parameter output */

.paperstars-parameter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.paperstars-parameter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fafaf8;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.paperstars-parameter-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.paperstars-parameter-label {
    font-weight: 600;
    color: #2f2f2f;
}

.paperstars-parameter-value {
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8ece4;
    color: #355e1c;
    white-space: nowrap;
}

/* Not yet rated */
.paperstars-parameter-item.not-rated .paperstars-parameter-value {
    background: #f1f1f1;
    color: #8a8a8a;
    font-style: italic;
}

/* Rated state emphasis */
.paperstars-parameter-item.is-rated .paperstars-parameter-value {
    background: #e6f0dc;
    color: #3f5f1b;
}

.paperstars-parameter-value {
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 500;
}

/* Green – good */
.paperstars-parameter-item.rated-good .paperstars-parameter-value {
    background: #e6f3df;
    color: #3f6b1c;
}

/* Amber – okay */
.paperstars-parameter-item.rated-okay .paperstars-parameter-value {
    background: #fff1db;
    color: #9a5b00;
}

/* Red – bad */
.paperstars-parameter-item.rated-bad .paperstars-parameter-value {
    background: #fde4e1;
    color: #9a2f2a;
}

/* Not rated */
.paperstars-parameter-item.not-rated .paperstars-parameter-value {
    background: #f1f1f1;
    color: #8a8a8a;
    font-style: italic;
}

/* review submission */

.paperstars-review-success {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef6e9, #f7fbf4);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.paperstars-review-success-text {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: #2f4f1e;
}

.paperstars-review-success-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #5d8307;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.paperstars-review-success-link:hover {
    background: #4f6f06;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.paperstars-review-success-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.overall-stars-pill {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;
    padding-top: 0%;
    border-radius: 999px;

    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);

    width: fit-content;
    margin: auto;
}

.reflection-columns>.bslib-grid {
    align-items: flex-start;
}

.paperstars-accordion {
    --bs-accordion-bg: rgba(255, 255, 255, 0.78);
    --bs-accordion-border-color: rgba(0, 0, 0, 0.10);
    --bs-accordion-border-radius: 14px;
    --bs-accordion-btn-focus-box-shadow: none;
}

.paperstars-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    overflow: hidden;
}

.paperstars-accordion .accordion-button {
    background: transparent;
    font-family: "Libre Baskerville", serif;
    color: var(--ink);
    padding: 12px;
}

.paperstars-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--ink);
}

.paperstars-accordion .accordion-button::after {
    opacity: 0.6;
}

.paperstars-accordion .accordion-body {
    padding: 12px;
}


.paperstars-accordion.paperstars-rating {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.paperstars-accordion.paperstars-rating * {
    min-width: 0;
}

.paperstars-accordion {
    width: 100%;
    max-width: 100%;
}

.paperstars-accordion .accordion-item {
    width: 100%;
    box-sizing: border-box;
}

.paperstars-accordion .accordion-header,
.paperstars-accordion .accordion-button,
.paperstars-accordion .accordion-body {
    margin-left: 0;
    margin-right: 0;
}

