#adminReviewsPanel { --pea-ink: #164e5d; --pea-paper: #fdfbf7; --pea-line: #e6dacf; --pea-soft: #f7f3ed; --pea-text: #443930; }
.pea-shell { display: grid; gap: 16px; color: var(--pea-text); }
.pea-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 25px; border-radius: 16px; border-left: 5px solid #e8863a; background: #164e5d; color: #fff9ec; }
.pea-header h2 { font: 400 clamp(1.8rem, 3.4vw, 2.55rem)/1.15 Georgia, serif; letter-spacing: -.02em; margin: 0 0 4px; color: inherit; }
.pea-header p { margin: 0; font-size: .83rem; color: #e8f7f9; }
.pea-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.pea-nav button, .pea-button, .pea-link { font: inherit; font-size: .79rem; font-weight: 750; cursor: pointer; }
.pea-nav button { color: #086778; padding: 8px 12px; border: 1px solid #dcd6cc; background: #fdfbf7; border-radius: 8px; }
.pea-nav button[aria-current="page"] { background: #e8f7f9; border-color: #96cdd5; color: #164e5d; }
.pea-button { background: var(--pea-ink); color: #fff; padding: 9px 13px; border: 1px solid var(--pea-ink); border-radius: 8px; min-height: 36px; }
.pea-secondary { background: #fdfbf7; color: var(--pea-ink); border-color: #a6ccd3; }
.pea-button:hover, .pea-nav button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.pea-button:disabled { opacity: .55; cursor: default; }
.pea-link { border: 0; background: none; padding: 4px 2px; color: #086778; text-decoration: underline; }
.pea-message:empty { display: none; }
.pea-message { padding: 9px 12px; background: #e8f7f9; border-radius: 8px; color: #086778; font-weight: 700; font-size: .82rem; }
.pea-message.pea-error { background: #faeae5; color: #972919; }
.pea-overview { display: grid; grid-template-columns: minmax(135px,.75fr) minmax(175px,.9fr) minmax(270px,1.5fr); gap: 12px; }
.pea-card { border-radius: 15px; padding: 17px 20px; background: var(--pea-paper); border: 1px solid var(--pea-line); min-width: 0; }
.pea-card h3 { font-size: .95rem; color: var(--pea-ink); margin: 0 0 11px; }
.pea-card p { margin: 6px 0 0; font-size: .78rem; }
.pea-total { background: var(--pea-soft); }
.pea-total > strong { font: 400 3.1rem/1.05 Georgia, serif; color: var(--pea-ink); }
.pea-total > strong small { font: 400 .95rem Georgia, serif; }
.pea-distribution-row { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 5px; font-size: .72rem; line-height: 1.6; }
.pea-distribution-row > span:last-child { text-align: right; }
.pea-distribution-row > span > span { color: #a64c23; }
.pea-distribution-row meter { width: 100%; height: 10px; }
.pea-distribution-row meter::-webkit-meter-bar { background: #ede6dc; border: 0; border-radius: 4px; }
.pea-distribution-row meter::-webkit-meter-optimum-value { background: #b96738; border-radius: 4px; }
.pea-distribution-row meter::-moz-meter-bar { background: #b96738; }
.pea-events ul, .pea-recipient-list ul { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.pea-events ul { max-height: 120px; overflow: auto; }
.pea-events li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: .79rem; border-top: 1px solid var(--pea-line); padding-top: 5px; }
.pea-events li button { text-align: left; padding: 0; border: 0; background: none; color: #086778; text-decoration: underline; cursor: pointer; font: inherit; }
.pea-events li strong { white-space: nowrap; }
.pea-events li span { color: #a64c23; }
.pea-list h3 small { margin-left: 5px; background: var(--pea-soft); padding: 3px 7px; border-radius: 6px; }
.pea-filters, .pea-automation form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.pea-filters { margin-bottom: 13px; }
.pea-filters label, .pea-automation label { display: grid; gap: 4px; font-size: .74rem; font-weight: 700; min-width: 0; }
.pea-filters label:nth-child(1), .pea-filters label:nth-child(2) { flex: 1 1 160px; }
.pea-filters input, .pea-filters select, .pea-automation input:not([type="checkbox"]), .pea-automation select { font: inherit; font-weight: 500; color: var(--pea-text); max-width: 100%; height: 36px; padding: 0 8px; border: 1px solid #d6c8b9; border-radius: 7px; background: #fff; }
.pea-table { overflow-x: auto; }
.pea-table table { border-collapse: collapse; width: 100%; font-size: .79rem; text-align: left; }
.pea-table th { background: var(--pea-soft); color: #615348; font-size: .72rem; padding: 8px 9px; }
.pea-table td { padding: 9px; border-bottom: 1px solid #ede4da; vertical-align: top; overflow-wrap: anywhere; }
.pea-table small, .pea-recipient-list small { display: block; color: #685b51; font-size: .69rem; margin-top: 2px; }
.pea-stars { color: #a64c23; white-space: nowrap; letter-spacing: .07em; font-size: .9rem; }
.pea-comment { min-width: 185px; max-width: 380px; white-space: pre-wrap; }
.pea-pill { display: inline-block; white-space: nowrap; font-size: .7rem; font-weight: 750; padding: 3px 7px; border-radius: 7px; color: #64564a; background: #f0ebe4; }
.pea-pill.pea-ok { color: #086778; background: #e8f7f9; }
.pea-pill.pea-wait { color: #785018; background: #f9edd7; }
.pea-pill.pea-bad { color: #942c1c; background: #fbe9e3; }
.pea-table .pea-link { display: block; }
.pea-table details summary { color: #086778; cursor: pointer; font-size: .72rem; margin-top: 4px; }
.pea-table details ol { padding-left: 15px; }
.pea-pager { display: flex; justify-content: end; align-items: center; gap: 8px; padding-top: 12px; font-size: .75rem; }
.pea-automation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pea-automation .pea-card { padding: 19px; }
.pea-automation .pea-check { flex-basis: 100%; display: flex; align-items: center; margin-bottom: 2px; }
.pea-automation .pea-check input { accent-color: var(--pea-ink); width: 16px; height: 16px; }
.pea-automation .pea-preview-panel { grid-column: span 2; }
.pea-automation .pea-callout { margin: 0 0 10px; color: #785018; }
#postEventSubject { margin: 11px 0; font-weight: 700; }
#postEventEmailPreview { display: block; border: 1px solid var(--pea-line); border-radius: 10px; width: 100%; height: 930px; }
.pea-recipient-list { border-top: 1px solid var(--pea-line); border-bottom: 1px solid var(--pea-line); max-height: 220px; overflow: auto; font-size: .78rem; margin: 8px 0; }
.pea-recipient-list li { display: flex; justify-content: space-between; align-items: center; padding: 7px 1px; border-bottom: 1px solid #eee5db; }
@media(max-width: 800px) {
  .pea-overview { grid-template-columns: 1fr 1fr; }
  .pea-events { grid-column: span 2; }
  .pea-automation { grid-template-columns: 1fr; }
  .pea-automation .pea-preview-panel { grid-column: auto; }
  .pea-card { padding: 13px; }
  .pea-table table { min-width: 620px; }
}
@media(max-width: 410px) {
  .pea-header { align-items: start; flex-direction: column; padding: 15px; }
  .pea-overview { grid-template-columns: 1fr; }
  .pea-events { grid-column: auto; }
}

.pea-shell [hidden] { display: none !important; }
.pea-shell .pea-help { margin: 0 0 12px; color: #5c4f3d; font-size: .8rem; }
.pea-shell .pea-vars { margin: 0 0 12px; font-size: .76rem; }
.pea-vars code { background: #e8f7f9; color: #164e5d; border-radius: 5px; padding: 3px 5px; margin-left: 4px; }
.pea-automation .pea-editor, .pea-editor { display: grid; gap: 12px; align-items: start; }
.pea-editor-grid, .pea-campaign-meta { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pea-copy-fields { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px 14px 15px; border: 1px solid #e6dacf; border-radius: 10px; }
.pea-copy-fields legend { padding: 0 5px; color: #086778; font-size: .82rem; font-weight: 750; }
.pea-copy-fields button { justify-self: start; }
.pea-editor label, .pea-campaign-test label { display: grid; gap: 4px; font-size: .76rem; font-weight: 700; }
.pea-editor input, .pea-editor textarea, .pea-editor select, .pea-campaign-test input, .pea-campaign-test select {
  min-width: 0; width: 100%; max-width: 100%; font: inherit; font-weight: 500; color: #443930; background: #fff;
  padding: 7px 9px; border: 1px solid #d6c8b9; border-radius: 7px;
}
.pea-editor textarea { resize: vertical; min-height: 76px; line-height: 1.45; }
.pea-campaign { display: grid; gap: 12px; }
.pea-card-heading, .pea-campaign-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pea-card-heading h3 { margin: 0; }
.pea-campaign-list { list-style: none; display: grid; padding: 0; margin: 10px 0 0; }
.pea-campaign-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid #e6dacf; padding: 9px 0; font-size: .8rem; }
.pea-campaign-list small { display: block; color: #5c4f3d; }
.pea-campaign-test { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.pea-mail-frame { width: 100%; height: 760px; border: 1px solid #e6dacf; border-radius: 10px; display: block; }
.pea-card .pea-subject { margin: 11px 0; font-weight: 700; }
@media(max-width: 630px) {
  .pea-editor-grid, .pea-campaign-meta { grid-template-columns: 1fr; }
}
