/* Review Huddle, from https://github.com/chaseakub/complaint-spotter
MIT License

Copyright (c) 2026 Replio

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
/* Portable Review Huddle styles. Each selector belongs to the tool. */
.rh-page, .rh-editor, .rh-print-page {
  --rh-ink: #211e1c;
  --rh-muted: #655f5c;
  --rh-red: #bd0026;
  --rh-rule: #dcd5d0;
  --rh-bg: #f7f4f0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--rh-ink);
}
.rh-page { margin: 0; background: var(--rh-bg); min-height: 100vh; font-size: 16px; line-height: 1.55; }
.rh-page *, .rh-editor *, .rh-print-page * { box-sizing: border-box; }
.rh-page [hidden], .rh-editor [hidden] { display: none !important; }
.rh-shell { max-width: 760px; margin: 0 auto; padding-inline: clamp(20px,5vw,42px); }
.rh-top { border-bottom: 1px solid var(--rh-rule); }
.rh-top-inner, .rh-input-actions, .rh-actions, .rh-footer, .rh-private, .rh-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.rh-top-inner { min-height: 64px; justify-content: space-between; }
.rh-brand { color: var(--rh-ink); font-size: 23px; font-weight: 750; letter-spacing: -.065em; text-decoration: none; }
.rh-source, .rh-text { color: var(--rh-red); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rh-source { font-size: 14px; color: var(--rh-muted); }
.rh-text { border: 0; background: transparent; padding: 8px 0; cursor: pointer; }
.rh-main { padding-top: clamp(30px,6vw,64px); padding-bottom: 40px; }
.rh-intro { margin-bottom: 25px; }
.rh-intro h1 { margin: 0; color: var(--rh-ink); font-size: clamp(42px,7.5vw,66px); letter-spacing: -.064em; line-height: 1.02; font-weight: 620; }
.rh-intro p { color: var(--rh-muted); font-size: clamp(16px,2.3vw,19px); letter-spacing: -.014em; line-height: 1.5; margin: 12px 0 0; }
.rh-input, .rh-paper { border: 1px solid var(--rh-rule); border-radius: 17px; background: white; }
.rh-input { padding: clamp(18px,4vw,32px); }
.rh-input label, .rh-field-label { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.rh-field-label { margin: 0; }
.rh-hint, .rh-private, .rh-footer, .rh-handoff p { color: var(--rh-muted); font-size: 14px; line-height: 1.5; }
.rh-hint { margin: 4px 0 12px; }
.rh-input textarea, .rh-editor textarea, .rh-editor input, .rh-theme select {
  border: 1px solid #b8afa8; border-radius: 8px; padding: 10px 12px; width: 100%; max-width: 100%;
  font: inherit; font-size: 16px; line-height: 1.45; color: var(--rh-ink); background: white;
}
.rh-input textarea, .rh-editor textarea { display: block; resize: vertical; }
.rh-page :focus-visible, .rh-editor :focus-visible { outline: 2px solid var(--rh-red); outline-offset: 3px; }
.rh-input-actions { margin-top: 20px; }
.rh-primary, .rh-secondary {
  font: inherit; font-size: 15px; line-height: 1.2; font-weight: 650; cursor: pointer;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
}
.rh-primary { color: white; border: 1px solid var(--rh-red); background: var(--rh-red); }
.rh-primary:hover { background: #9a0020; }
.rh-secondary { border: 1px solid #c7bfb9; background: white; color: var(--rh-ink); }
.rh-secondary:hover { background: #f3efeb; }
.rh-private { justify-content: space-between; margin-top: 20px; gap: 6px 12px; }
.rh-private details[open] { width: 100%; }
.rh-private summary { cursor: pointer; font-weight: 600; }
.rh-private details p { margin: 6px 0 0; }
.rh-input strong { display: block; overflow-wrap: anywhere; }
.rh-status { font: inherit; font-size: 14px; line-height: 1.45; color: var(--rh-ink); margin: 8px 0; overflow-wrap: anywhere; }
.rh-input .rh-status { color: var(--rh-red); }
.rh-status:empty { margin: 0; }
.rh-footer { border-top: 1px solid var(--rh-rule); margin-top: 24px; padding-top: 10px; gap: 16px; }
.rh-change { margin-bottom: 6px; font-size: 14px; }
.rh-editor { font-size: 16px; line-height: 1.5; min-width: 0; }
.rh-toolbar { justify-content: space-between; margin-bottom: 12px; }
.rh-toolbar > button:only-child { margin-left: auto; }
.rh-toolbar .rh-secondary { font-size: 14px; }
.rh-theme { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; color: var(--rh-muted); max-width: 100%; font-size: 14px; font-weight: 650; }
.rh-theme select { width: auto; min-height: 44px; padding: 8px; font-size: 15px; }
.rh-paper { border-top: 4px solid var(--rh-red); padding: clamp(20px,4vw,34px); box-shadow: 0 2px 6px #34251808; overflow-wrap: anywhere; }
.rh-card-label { font-weight: 700; font-size: 13px; color: var(--rh-red); }
.rh-card-title { margin: 7px 0 0; padding: 0; font-size: clamp(27px,4vw,38px); line-height: 1.12; font-weight: 650; letter-spacing: -.045em; color: var(--rh-ink); }
.rh-card-title:focus:not(:focus-visible) { outline: none; }
.rh-evidence { font-size: 16px; line-height: 1.5; color: var(--rh-muted); margin: 12px 0 0; }
.rh-point, .rh-card-fields { margin: 20px 0 0; border-top: 1px solid var(--rh-rule); padding-top: 16px; }
.rh-point h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; color: var(--rh-ink); margin: 0 0 5px; }
.rh-point p { margin: 0; font-size: 17px; line-height: 1.5; white-space: pre-wrap; }
.rh-card-fields { display: grid; gap: 13px; }
.rh-edit-field { display: grid; gap: 5px; font-size: 14px; line-height: 1.35; font-weight: 650; }
.rh-edit-field input, .rh-edit-field textarea { font-weight: 400; }
.rh-editor .rh-edit-field, .rh-editor .rh-theme { margin: 0; }
.rh-editor .rh-edit-field textarea { min-height: 0; }
.rh-actions { margin-top: 16px; }
.rh-handoff { margin-top: 18px; border-top: 1px solid var(--rh-rule); padding: 12px 0 0; }
.rh-handoff p { margin: 6px 0 0; }
.rh-manual-copy { margin-top: 8px; min-height: 90px; }
.rh-clipboard { position: fixed; left: -9999px; top: 0; opacity: 0; }
.rh-print-page { display: none; }
@media (max-width: 455px) {
  .rh-main { padding-top: 28px; }
  .rh-top-inner { min-height: 54px; }
  .rh-input-actions { align-items: stretch; }
  .rh-private { align-items: flex-start; flex-direction: column; }
  .rh-theme { flex: 1 1 100%; }
  .rh-theme select { flex: 1; min-width: 0; }
}
@media print {
  .rh-page #rh-input, .rh-page .rh-footer, .rh-page .rh-top { display: none !important; }
  body.rh-printing { margin: 0 !important; background: white !important; }
  body.rh-printing > :not(.rh-print-page) { display: none !important; }
  body.rh-printing > .rh-print-page { display: block !important; padding: 4mm; margin: 0; border: 0; box-shadow: none; color: black; }
  .rh-print-page .rh-point { break-inside: avoid; }
  .rh-print-page .rh-card-label { color: #262626; }
}
