.poem-rater-page { background: #f7f5ff; color: #252238; }
.poem-rater-main { overflow: hidden; }
.rater-hero { padding: 5.5rem 0 2.5rem; background: radial-gradient(circle at top left, #eee8ff, transparent 45%), linear-gradient(180deg, #fff, #f7f5ff); }
.rater-hero__inner { max-width: 860px; text-align: center; }
.rater-eyebrow { display: inline-flex; padding: .45rem .8rem; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.rater-hero h1 { margin: 1rem 0; font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; }
.rater-hero p { max-width: 720px; margin: 0 auto; color: #625d72; font-size: 1.12rem; }
.rater-tool-section { padding: 1rem 0 4rem; }
.rater-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 1.25rem; max-width: 1120px; margin: 0 auto; }
.rater-input-panel, .rater-result-panel { background: #fff; border: 1px solid #e5e1f0; border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 18px 60px rgba(67, 51, 112, .1); }
.rater-input-panel h2, .rater-result-panel h2 { font-size: 1.4rem; }
.rater-input-panel label { display: block; margin: 1.25rem 0 .5rem; font-weight: 700; }
#poemInput { width: 100%; min-height: 290px; resize: vertical; border: 1px solid #d8d2e5; border-radius: 16px; padding: 1rem; font: inherit; line-height: 1.65; background: #fcfbff; }
#poemInput:focus { outline: 3px solid rgba(124, 58, 237, .16); border-color: #7c3aed; }
.rater-input-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; color: #746e82; font-size: .85rem; }
.rater-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.rater-button { border: 1px solid #d8d2e5; border-radius: 12px; padding: .72rem 1rem; background: #fff; color: #3c3650; font-weight: 700; }
.rater-button:hover { border-color: #7c3aed; color: #6d28d9; }
.rater-button--primary { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.rater-button--primary:hover { background: #5b21b6; color: #fff; }
.rater-button--quiet { background: #f7f5fb; }
.rater-button:disabled { opacity: .65; cursor: wait; }
.rater-status { min-height: 1.5rem; margin: .85rem 0 0; color: #6d28d9; font-weight: 600; }
.rater-result-panel { min-height: 470px; }
.rater-empty { display: grid; place-items: center; min-height: 400px; text-align: center; color: #736d81; }
.rater-empty__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #ede9fe; color: #6d28d9; font-size: 2rem; }
.rater-score-card { display: flex; align-items: baseline; gap: .35rem; color: #6d28d9; }
.rater-score-card strong { font-size: 4rem; line-height: 1; }
.rater-breakdown { display: grid; gap: .85rem; margin: 1.25rem 0; }
.rater-metric__label { display: flex; justify-content: space-between; margin-bottom: .3rem; font-size: .92rem; }
.rater-meter { height: 9px; overflow: hidden; border-radius: 999px; background: #ede9f4; }
.rater-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.rater-feedback { padding: 1rem; margin: 1rem 0; border-radius: 14px; background: #faf8ff; }
.rater-feedback h3 { font-size: 1rem; }
.rater-feedback ul { margin: 0; padding-left: 1.15rem; }
.rater-section { padding: 4.5rem 0; background: #fff; }
.rater-section--soft { background: #f7f5ff; }
.rater-section__header { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.rater-section__header h2, .rater-two-column h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.rater-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rater-card { padding: 1.4rem; border: 1px solid #e5e1f0; border-radius: 18px; background: #fff; }
.rater-card > span { color: #7c3aed; font-weight: 800; font-size: .82rem; }
.rater-card h3 { margin-top: .55rem; font-size: 1.12rem; }
.rater-card a { color: #5b21b6; }
.rater-score-table-wrap { overflow-x: auto; border: 1px solid #e5e1f0; border-radius: 18px; background: #fff; }
.rater-score-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.rater-score-table th, .rater-score-table td { padding: 1rem; border-bottom: 1px solid #ebe7f2; text-align: left; vertical-align: top; }
.rater-score-table th { background: #faf8ff; color: #4c4660; }
.rater-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.rater-two-column blockquote { padding: 1.2rem; border-left: 4px solid #8b5cf6; background: #faf8ff; white-space: pre-line; }
.poem-rater-page .accordion-item { border-color: #e5e1f0; }
.poem-rater-page .accordion-button:not(.collapsed) { color: #5b21b6; background: #f3efff; box-shadow: none; }
@media (max-width: 900px) { .rater-shell, .rater-two-column { grid-template-columns: 1fr; } .rater-card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rater-hero { padding-top: 3.5rem; } .rater-card-grid { grid-template-columns: 1fr; } .rater-input-meta { align-items: flex-start; flex-direction: column; gap: .25rem; } .rater-actions .rater-button { width: 100%; } .rater-result-panel { min-height: 380px; } }
