/* The review dashboard: same look as the field app, wider, for a desk or a phone. */
.top .nav a:hover { color: var(--white); text-decoration: underline; }
main.wide { max-width: 980px; padding-bottom: 110px; }
a { color: var(--navy); }

.tabs { display: flex; gap: 6px; overflow-x: auto; }
.tabs button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: 600 15px var(--font); color: var(--ink); cursor: pointer; }
.tabs button span:not(:empty) { margin-left: 4px; color: var(--gray); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tabs button[aria-selected="true"] span { color: #c9d2ea; }

.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.queue li.empty { color: var(--gray); padding: 8px 0; }
.queue a { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; background: var(--white); border-radius: 12px; padding: 10px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(7, 20, 61, .08); }
.queue a:hover { box-shadow: 0 2px 8px rgba(7, 20, 61, .16); }
.queue img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; background: var(--mist); }
.queue b { display: block; font-size: 16.5px; }
.queue span { font-size: 14px; color: var(--gray); }
.queue .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.head { display: grid; gap: 4px; }
.head p:empty { display: none; }
.check-first { background: #fff7e6; border: 1.5px solid #f3c66b; }
.check-first ul, .card ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.card { background: var(--white); border-radius: 12px; padding: 12px 16px; box-shadow: 0 1px 2px rgba(7, 20, 61, .08); }
.card summary { font-weight: 700; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.card[open] summary { margin-bottom: 8px; }
.card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 15px; }
.card dt { color: var(--gray); }
.card dd { margin: 0; white-space: pre-wrap; }

.rphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.rph { border-radius: 10px; overflow: hidden; background: var(--white); border: 2px solid transparent; display: grid; align-content: start; }
.rph.on { border-color: var(--navy); }
.rph.lead { border-color: var(--orange); }
.rph.flag { box-shadow: 0 0 0 2px var(--bad) inset; }
.rph a { display: block; aspect-ratio: 4 / 3; }
.rph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rph .ctl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 6px 8px; font-size: 14px; }
.rph .ctl label { margin: 0; font-weight: 600; display: flex; gap: 6px; align-items: center; min-height: 36px; white-space: nowrap; }
.rph .ctl input { width: 20px; height: 20px; accent-color: var(--navy); }
.rph .why { margin: 0; padding: 6px 8px; font-size: 13px; background: #fde8e2; color: var(--bad); font-weight: 600; }
.rph .desc { margin: 0; padding: 6px 8px 8px; font-size: 13px; color: var(--gray); }

.platforms { display: grid; gap: 14px; }
.platform .phead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.platform h2 { margin: 0; }
.platform.off .pbody { opacity: .45; }
.platform .pbody { display: grid; gap: 6px; }
.switch { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; min-height: 44px; }
.switch input { width: 22px; height: 22px; accent-color: var(--navy); }
.count { font-size: 13px; color: var(--gray); justify-self: end; margin-top: -2px; }
.count.over { color: var(--bad); font-weight: 700; }
.rich { min-height: 160px; border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 14px; background: var(--white); font: 16px/1.6 var(--font); }
.rich:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.rich a { color: var(--navy); }
.row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 > div { display: grid; gap: 6px; min-width: 0; }
.ro { white-space: pre-wrap; background: var(--mist); border-radius: 10px; padding: 12px 14px; font-size: 15.5px; }
.ro.html { white-space: normal; }
.pub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pub .btn { min-height: 44px; font-size: 15px; }

.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--white); box-shadow: 0 -2px 10px rgba(7, 20, 61, .12); }
.actions .hint { margin-right: auto; }
.actions .btn { min-width: 130px; }

.banner.good { background: #e3f4e8; color: #17572d; }
.accounts { display: grid; gap: 12px; }
.acct { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.acct h2 { margin: 0; font-size: 18px; }
.acct p { margin: 0; }
.acct .btns { display: flex; gap: 8px; grid-row: span 2; }
.acct .btns .btn { min-height: 44px; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; }
.acct.warn { box-shadow: 0 0 0 2px #f3c66b inset; }
.acct.bad { box-shadow: 0 0 0 2px var(--bad) inset; }
@media (max-width: 700px) { .acct { grid-template-columns: 1fr; } .acct .btns { grid-row: auto; } }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(7, 20, 61, .3); }
dialog::backdrop { background: rgba(7, 20, 61, .45); }
dialog form { padding: 20px; display: grid; gap: 8px; }
dialog h2 { margin: 0 0 4px; }
.dlgbtns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

@media (max-width: 700px) {
  .cols, .row3 { grid-template-columns: 1fr; }
  .rphotos { grid-template-columns: repeat(2, 1fr); }
  .actions .btn { min-width: 0; flex: 1; }
  .actions .hint { display: none; }
}
