/* Google Reviews Dashboard (checkpoint 1, November 11, 2026). The house look of the other staff tools: the company
   logo in a white header, a 3-pixel brand-blue line, brand blue (#054fb8) headings and buttons, Arial, white cards on
   a light grey page. Jake is red/green color blind: good reads in blue, needs-attention in orange, and every mark
   carries a word or number as well, never color alone. */
:root {
  --brand: #054fb8;
  --brand-light: #e6eefa;
  --ink: #222;
  --muted: #666;
  --line: #d9d9d9;
  --ok: #054fb8;
  --bad: #B04A00;
  --bad-light: #fdebd9;
  --bg: #f5f6f8;
  --star: #b8860b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }
.top { background: #fff; padding: 10px 20px; border-bottom: 3px solid var(--brand); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo { display: block; height: 40px; width: auto; }
.brand .name { border-left: 1px solid var(--line); padding-left: 14px; }
.brand .title { font-size: 18px; font-weight: bold; color: var(--brand); }
.brand .sub { font-size: 12px; color: var(--muted); }
.head-right { display: flex; align-items: center; gap: 12px; }
main { max-width: 1000px; margin: 0 auto; padding: 18px 16px 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
h2 { margin: 0; font-size: 17px; color: var(--brand); }
.note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.loading { color: var(--muted); }
input, select { font: inherit; padding: 7px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
button { font: inherit; padding: 8px 14px; border-radius: 4px; border: 1px solid var(--brand); cursor: pointer; white-space: nowrap; }
button.primary { background: var(--brand); color: #fff; }
button.secondary { background: #fff; color: var(--brand); }
button:disabled { opacity: .5; cursor: default; }
.problem { background: var(--bad-light); color: var(--bad); border-radius: 4px; padding: 8px 10px; margin-top: 10px; font-size: 13px; }

/* Summary tiles */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tile { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.tile .big { font-size: 24px; font-weight: bold; color: var(--brand); }
.tile .big.attn { color: var(--bad); }
.tile .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.filters .search { grid-column: span 4; }
.filters input, .filters select { width: 100%; }
@media (max-width: 640px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters .search { grid-column: 1 / -1; } }
.count { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Review cards */
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review:first-child { border-top: 0; }
.rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.who { font-weight: bold; }
.who.gone { font-weight: normal; color: var(--muted); font-style: italic; }
.when { color: var(--muted); font-size: 13px; }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stars .num { color: var(--ink); letter-spacing: 0; font-size: 13px; margin-left: 6px; }
.stars.low .num { color: var(--bad); font-weight: bold; }
.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.badge { display: inline-block; font-size: 12px; font-weight: bold; border-radius: 10px; padding: 2px 9px; }
.badge.replied { background: var(--brand-light); color: var(--brand); }
.badge.needs { background: var(--bad-light); color: var(--bad); }
.text { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.text.gone { color: var(--muted); font-style: italic; font-size: 13px; }
.reply { margin: 8px 0 0 14px; padding: 8px 10px; border-left: 3px solid var(--brand); background: var(--brand-light); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.reply .lbl { font-weight: bold; color: var(--brand); display: block; margin-bottom: 2px; }
.more { text-align: center; margin-top: 12px; }

/* Tabs (checkpoint 2) */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { color: var(--brand); border-radius: 4px; padding: 7px 14px; text-decoration: none; }
.tabs a:hover { background: var(--brand-light); }
.tabs a.on { background: var(--brand); color: #fff; font-weight: bold; }
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
label { font-size: 12px; font-weight: bold; color: #444; }
button.small { background: #fff; color: var(--brand); padding: 3px 10px; font-size: 12px; }
button.remove { background: #fff; color: var(--bad); border-color: var(--bad); padding: 3px 10px; font-size: 12px; }
.saved { color: var(--ok); font-size: 13px; }

/* Credit row on each review */
.credit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.badge.credited { background: var(--brand-light); color: var(--brand); }
button.suggest { border-style: dashed; }
.credit .problem { flex-basis: 100%; margin-top: 4px; }

/* Credit panel */
dialog.panel { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; color: var(--ink); }
dialog.panel::backdrop { background: rgba(0, 0, 0, .35); }
.panel-foot { margin-top: 14px; }
.cp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 10px; margin: 8px 0; }
.cp-group { grid-column: 1 / -1; font-size: 12px; font-weight: bold; color: var(--muted); margin-top: 8px; }
.cp-row { display: flex; align-items: center; gap: 6px; font-weight: normal; font-size: 14px; padding: 5px 0; cursor: pointer; }
@media (max-width: 480px) { .cp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#cp-note { width: 100%; margin-top: 4px; }

/* Counts and Staff tables */
.table-wrap { overflow-x: auto; margin-top: 12px; }
table.grid { border-collapse: collapse; width: 100%; font-size: 13px; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: right; white-space: nowrap; }
table.grid th:first-child, table.grid td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
table.grid thead th { color: var(--brand); font-size: 12px; }
table.grid tfoot td { font-weight: bold; }
table.grid td.zero { color: #bbb; }
table.grid tr.former td:first-child { color: var(--muted); }
table.grid a { color: var(--brand); text-decoration: none; }
table.grid a:hover { text-decoration: underline; }
.staff-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.staff-row input[type=text] { width: 100%; }
.staff-row .n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.staff-head { font-size: 12px; font-weight: bold; color: var(--muted); border-top: 0; padding-bottom: 0; }
@media (max-width: 640px) { .staff-row { grid-template-columns: 1fr 1fr; } .staff-head { display: none; } }
.sig-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; columns: 2; }
@media (max-width: 640px) { .sig-list { columns: 1; } }
.badge.unplaced { background: #eceef1; color: #444; }
.badge.edited { background: #eceef1; color: #444; }
.flag { background: var(--bad-light); color: var(--bad); border-radius: 4px; padding: 8px 10px; margin-top: 10px; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Reply box (checkpoint 3) */
.replybox { margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: #fafbfc; }
.rb-head { font-size: 12px; font-weight: bold; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.rb-text, .rb-notes { width: 100%; font: inherit; padding: 7px 8px; border: 1px solid var(--line); border-radius: 4px; resize: vertical; }
.rb-notes { margin-top: 4px; }
.rb-sig { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.rb-dir { width: 100%; margin-top: 8px; font-size: 13px; }
.rb-block { font-size: 12px; color: var(--bad); margin-top: 8px; }
.rb-dry { margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--brand); background: var(--brand-light); font-size: 13px; }
.rb-dry-text { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rb-posted { margin-top: 8px; font-size: 13px; color: var(--ok); font-weight: bold; }
button.primary-small { background: var(--brand); color: #fff; padding: 3px 10px; font-size: 12px; }
button.primary-small:disabled { opacity: .45; }

/* Public home and privacy pages (checkpoint 4). */
.doc { max-width: 720px; }
.doc p { line-height: 1.5; margin: 10px 0 0; }
.doc h3 { font-size: 15px; color: var(--ink); margin: 18px 0 0; }
.doc a { color: var(--brand); }
.doc-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px !important; }
a.button { display: inline-block; padding: 8px 14px; border-radius: 4px; border: 1px solid var(--brand); text-decoration: none; }
a.button.primary { background: var(--brand); color: #fff; }
