/* Human verified, operator console (flag human_verifiers, js/views/human-verified-ops.js)
   and the skip box both queues share. Signal Cobalt: Geist, tabular figures, no
   monospace, one blue (the focus ring and the open row's mark), black buttons.
   Works with or without the redesign: --h-* read the redesign's --ui-* tokens
   when they exist and the app's own tokens when they don't. */

/* The console comes first on the page, ahead of the client card. */
#viewHumanverified.hvo-first:not([hidden]) { display: flex; flex-direction: column; width: 100%; }
#viewHumanverified.hvo-first > * { order: 0; }
#viewHumanverified.hvo-first > h1 { order: -4; }
#viewHumanverified.hvo-first > .sub { order: -3; }
#viewHumanverified.hvo-first > #hvOpsCard { order: -2; }
#hvOpsCard.hvo-card, body.new-ui #hvOpsCard.hvo-card { width: 100%; max-width: 1440px; box-sizing: border-box; background: none; border: 0; box-shadow: none; padding: 0; margin: 0 auto 28px; }
#hvOpsCard.hvo-card > p { display: none; }

.hvo, .hv-skipbox, .hvo-toast {
  --h-paper: var(--ui-card, var(--surface-1));
  --h-paper-2: var(--ui-paper-2, var(--surface-2));
  --h-ink: var(--ui-ink, var(--text-primary));
  --h-ink-2: var(--ui-ink-2, var(--text-secondary));
  --h-ink-3: var(--ui-ink-3, var(--text-muted));
  --h-line: var(--ui-line, var(--border));
  --h-line-2: var(--ui-line-2, var(--border));
  --h-hover: var(--ui-hover, var(--surface-2));
  --h-accent: var(--ui-accent, var(--accent));
  --h-neg: var(--ui-neg, var(--bad));
  --h-neg-soft: var(--ui-neg-soft, color-mix(in srgb, var(--bad) 12%, transparent));
  --h-on-ink: var(--ui-bg, var(--surface-1));
  --h-shadow: var(--ui-shadow, none);
  font-family: var(--ui-font, inherit);
  font-variant-numeric: tabular-nums;
}
.hvo { container: hvo / inline-size; width: 100%; color: var(--h-ink); font-size: 14px; line-height: 1.5; }
.hvo :where(h2, h3, p, ul) { margin: 0; padding: 0; }
.hvo :focus-visible, .hv-skipbox :focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }
.hvo button { font-family: inherit; }
/* The app's own `button:hover` paints every button accent: these rules are
   written to win over it (one more class each) and give every hover back. */
.hvo button:hover:not(:disabled), .hv-skipbox button:hover:not(:disabled) { background: var(--h-hover); }
.hvo .hvo-btn.black:hover:not(:disabled), .hv-skipbox .hv-skip-go:hover:not(:disabled) { background: var(--h-ink); filter: brightness(1.25); }
.hvo .hvo-row.on:hover:not(:disabled) { background: var(--h-paper-2); }
.hvo .hvo-link:hover:not(:disabled) { background: none; }
.hvo .hvo-btn.ghost:hover:not(:disabled) { background: var(--h-hover); }
.hvo .hvo-bell[aria-expanded="true"] { background: var(--h-hover); }

/* app icons: PNG, then favicon, then the initial (surfIcoFallback) */
.hvo .hvo-ico, .hvo .surf-ico-fb { width: 28px; height: 28px; border-radius: 7px; flex: none; display: block; }
.hvo .hvo-ico.sm, .hvo .sm.surf-ico-fb { width: 22px; height: 22px; border-radius: 6px; }
.hvo .hvo-ico.xs, .hvo .xs.surf-ico-fb { width: 14px; height: 14px; border-radius: 4px; }
.hvo .hvo-ico.lg, .hvo .lg.surf-ico-fb { width: 44px; height: 44px; border-radius: 11px; }
.hvo .surf-ico-fb { display: grid; place-items: center; background: var(--h-paper-2); color: var(--h-ink-2); font-size: 12px; font-weight: 600; }

/* buttons */
.hvo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 10px 16px;
  font: 500 14px var(--ui-font, inherit); border: 1px solid var(--h-line); background: var(--h-paper); color: var(--h-ink); cursor: pointer;
}
.hvo-btn:hover:not(:disabled) { background: var(--h-hover); }
.hvo-btn.black { background: var(--h-ink); color: var(--h-on-ink); border-color: var(--h-ink); }
.hvo-btn.black:hover:not(:disabled) { background: var(--h-ink); filter: brightness(1.25); }
.hvo-btn:disabled { opacity: .35; cursor: not-allowed; }
.hvo-btn.ghost { border-color: transparent; background: none; color: var(--h-ink-2); }
.hvo-btn.ghost:hover:not(:disabled) { background: var(--h-hover); color: var(--h-ink); }
.hvo-btn.sm { padding: 6px 12px; font-size: 13px; }
.hvo-link { background: none; border: 0; padding: 0; color: var(--h-ink-2); font: 13px var(--ui-font, inherit); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--h-line); text-underline-offset: 4px; }
.hvo-link:hover { color: var(--h-ink); text-decoration-color: var(--h-ink); }

/* header: title, week progress, bell */
.hvo-banner {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 16px;
  background: var(--h-paper-2); color: var(--h-ink); border: 1px solid var(--h-line-2); border-radius: 12px; font-size: 14px;
}
.hvo-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.hvo-title { min-width: 0; flex: 1; }
.hvo-title h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.hvo-title p { margin-top: 2px; color: var(--h-ink-2); }
.hvo-prog { width: 320px; flex: none; }
.hvo-prog .l { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--h-ink-2); }
.hvo-prog .l b { color: var(--h-ink); font-weight: 500; }
.hvo-prog .od { color: var(--h-neg); font-weight: 500; }
.hvo-prog .bar { height: 6px; margin-top: 8px; border-radius: 99px; background: var(--h-line-2); overflow: hidden; }
.hvo-prog .bar i { display: block; height: 100%; background: var(--h-ink); border-radius: inherit; }

.hvo-bellwrap { position: relative; flex: none; }
.hvo-bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--h-line);
  border-radius: 10px; background: var(--h-paper); color: var(--h-ink); cursor: pointer; padding: 0; }
.hvo-bell:hover { background: var(--h-hover); }
.hvo-bell .n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  display: grid; place-items: center; border-radius: 9px; background: var(--h-ink); color: var(--h-on-ink); font-size: 11px; font-weight: 600;
  border: 2px solid var(--ui-bg, var(--bg, transparent)); }
.hvo-panel { position: absolute; right: 0; top: 46px; z-index: 30; width: 400px; max-width: calc(100vw - 32px); max-height: 70vh; overflow: auto;
  background: var(--h-paper); border: 1px solid var(--h-line); border-radius: 14px; box-shadow: 0 12px 40px rgba(14, 15, 17, .14); }
.hvo-panel[hidden] { display: none; }
.hvo-panel .ph2 { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--h-line); font-weight: 600; }
.hvo-nofb { padding: 24px 20px; color: var(--h-ink-3); }
.hvo-nt { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--h-line-2); cursor: default; }
.hvo-nt:first-of-type { border-top: 0; }
.hvo-nt.un { background: var(--h-paper-2); }
.hvo-nt .em { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 16px;
  background: var(--h-paper-2); box-shadow: inset 0 0 0 1px var(--h-line); }
.hvo-nt.un .em { background: var(--h-paper); }
.hvo-nt .bd { min-width: 0; flex: 1; }
.hvo-nt .bd > b { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.hvo-nt .s { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; font-size: 13px; color: var(--h-ink-3); }
.hvo-nt .msg { margin-top: 6px; font-size: 13.5px; color: var(--h-ink-2); overflow-wrap: anywhere; }
.hvo-nt .msg b { color: var(--h-ink); font-weight: 600; }
.hvo-nt .fx { margin-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hvo-nt .reply-box { flex-basis: 100%; }
.hvo-nt .reply-box textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--h-line); border-radius: 10px;
  background: var(--h-paper); color: var(--h-ink); font: 13.5px/1.5 var(--ui-font, inherit); resize: vertical; }
.hvo-pill { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 8px; border-radius: 99px;
  background: var(--h-paper-2); color: var(--h-ink-2); font-size: 12px; font-weight: 500; vertical-align: 1px; }

.hvo-toast { position: fixed; right: 36px; bottom: 32px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: 360px;
  padding: 14px 18px; border-radius: 12px; background: var(--h-ink); color: var(--h-on-ink); box-shadow: 0 12px 32px rgba(14, 15, 17, .25);
  font-size: 14px; cursor: pointer; }
.hvo-toast[hidden] { display: none; }
.hvo-toast .em { font-size: 20px; }
.hvo-toast span:not(.em) { display: block; font-size: 12.5px; opacity: .7; }

/* queue + task */
.hvo-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.hvo-queue, .hvo-main { background: var(--h-paper); border: 1px solid var(--h-line-2); border-radius: 16px; box-shadow: var(--h-shadow); }
.hvo-queue:empty { display: none; }
.hvo-queue { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.hvo-gh { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 16px 20px 10px; background: var(--h-paper); }
.hvo-gh b { font-weight: 600; font-size: 14px; }
.hvo-gh .n { margin-left: auto; font-size: 12.5px; color: var(--h-ink-3); }
.chip-od { font-size: 11.5px; font-weight: 500; color: var(--h-neg); background: var(--h-neg-soft); border-radius: 99px; padding: 1px 8px; }
.hvo-row { display: block; width: 100%; text-align: left; font-weight: 400; font-size: 14px; background: none; border: 0; border-top: 1px solid var(--h-line-2);
  padding: 14px 20px; color: var(--h-ink); cursor: pointer; }
.hvo-row:hover { background: var(--h-hover); }
.hvo-row.on { background: var(--h-paper-2); box-shadow: inset 0 0 0 1px var(--h-line); }
.hvo-row .m { display: flex; gap: 8px; align-items: baseline; min-width: 0; margin-bottom: 3px; font-size: 12.5px; color: var(--h-ink-3); }
.hvo-row .m b { color: var(--h-ink); font-weight: 500; font-size: 13px; white-space: nowrap; }
.hvo-row .m span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hvo-row .q { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hvo-row .od { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--h-neg); }

.hvo-task { padding: 36px 40px 0; }
.hvo-back { display: none; align-items: center; gap: 6px; padding: 14px 0; border: 0; background: none; color: var(--h-ink-2); font-weight: 500; cursor: pointer; }
.hvo-th { display: flex; align-items: center; gap: 14px; }
.hvo-th .who { min-width: 0; }
.hvo-th .who b { display: block; font-size: 15px; font-weight: 600; }
.hvo-th .who span { color: var(--h-ink-3); font-size: 13px; overflow-wrap: anywhere; }
.hvo-open { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--h-line);
  border-radius: 10px; background: var(--h-paper); color: var(--h-ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.hvo-open:hover { background: var(--h-hover); }
.hvo-q { display: flex; gap: 20px; align-items: flex-start; margin: 28px 0 8px; }
.hvo-q h3 { flex: 1; max-width: 30ch; font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hvo-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 32px; }
.hvo-step { display: flex; width: 100%; height: 100%; gap: 10px; align-items: flex-start; text-align: left; padding: 12px 14px;
  border: 1px solid var(--h-line-2); border-radius: 12px; background: var(--h-paper); color: var(--h-ink-2); font-size: 13px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.hvo-step b { display: block; color: var(--h-ink); font-weight: 500; }
.hvo-step .ck { width: 18px; height: 18px; flex: none; margin-top: 1px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--h-line); color: var(--h-paper); }
.hvo-step.on .ck { background: var(--h-ink); border-color: var(--h-ink); }
.hvo-step.on { color: var(--h-ink); }
.hvo-field { margin: 0 0 24px; }
.hvo .lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-weight: 500; }
.hvo .lab small { font-weight: 400; color: var(--h-ink-3); font-size: 12.5px; text-align: right; }
.hvo .lab .optional { display: inline-flex; align-items: center; gap: 8px; }
.hvo .lab .tag { padding: 1px 8px; border: 1px solid var(--h-line); border-radius: 99px; background: var(--h-paper); color: var(--h-ink-2); font-size: 11.5px; font-weight: 500; }
.hvo .hvo-task textarea, .hvo-inp { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid var(--h-line); border-radius: 12px;
  background: var(--h-paper); color: var(--h-ink); font: 14px/1.55 var(--ui-font, inherit); resize: vertical; }
.hvo .hvo-task textarea { min-height: 150px; }
.hvo .hvo-task textarea::placeholder, .hvo-inp::placeholder { color: var(--h-ink-3); }
.hvo .hvo-task textarea:focus-visible, .hvo-inp:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 0; border-color: transparent; }
.hvo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 176px; padding: 24px;
  border: 1.5px dashed var(--h-line); border-radius: 14px; background: var(--h-paper-2); color: var(--h-ink-2); font-weight: 400; text-align: center; cursor: pointer; }
#hvoMain [data-ui="ops"].on .hvo-drop, .hvo-drop:hover { border-color: var(--h-ink-3); }
.hvo-drop svg { color: var(--h-ink-3); margin-bottom: 4px; }
.hvo-drop b { color: var(--h-ink); font-weight: 500; }
.hvo-drop small { color: var(--h-ink-3); font-size: 12.5px; }
.hvo-shot { display: flex; gap: 20px; align-items: center; padding: 14px; border: 1px solid var(--h-line); border-radius: 14px; background: var(--h-paper); }
.hvo-thumb { width: 220px; max-height: 160px; object-fit: cover; object-position: top; flex: none; border-radius: 8px; border: 1px solid var(--h-line-2); background: var(--h-paper-2); }
.hvo-shot .meta { min-width: 0; }
.hvo-shot .meta b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.hvo-shot .meta span { color: var(--h-ink-3); font-size: 13px; }
.hvo-shot .meta .hvo-btn { margin-top: 10px; }
.hv-msg { margin: 0 0 16px; font-size: 13.5px; color: var(--h-neg, var(--bad)); }
.hv-msg[hidden] { display: none; }
.hvo-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; margin: 0 -40px; padding: 18px 40px;
  background: var(--h-paper); border-top: 1px solid var(--h-line-2); border-radius: 0 0 16px 16px; }

/* skip: the reason, then the confirm. Shared with the classic queue. */
.hv-skipbox { margin: 0 -40px; padding: 20px 40px 22px; background: var(--h-paper-2); border-top: 1px solid var(--h-line-2); }
.hv-task-form .hv-skipbox { margin: 10px 0 0; padding: 14px; border: 1px solid var(--h-line-2); border-radius: 10px; }
.hv-skipbox[hidden] { display: none; }
.hv-skipbox p { margin: 0 0 12px; font-weight: 500; color: var(--h-ink); }
.hv-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hv-reason { padding: 8px 14px; border: 1px solid var(--h-line); border-radius: 99px; background: var(--h-paper); color: var(--h-ink-2);
  font: 500 14px var(--ui-font, inherit); cursor: pointer; }
.hv-reason.on { border-color: var(--h-ink); box-shadow: 0 0 0 1px var(--h-ink); color: var(--h-ink); }
.hv-skip-other { width: 100%; box-sizing: border-box; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--h-line); border-radius: 10px;
  background: var(--h-paper); color: var(--h-ink); font: 14px var(--ui-font, inherit); }
.hv-skip-other[hidden] { display: none; }
.hv-skip-acts { display: flex; align-items: center; gap: 8px; }
.hv-skip-go { padding: 10px 16px; border: 1px solid var(--h-ink); border-radius: 10px; background: var(--h-ink); color: var(--h-on-ink);
  font: 500 14px var(--ui-font, inherit); cursor: pointer; }
.hv-skip-go:disabled { opacity: .35; cursor: not-allowed; }
.hv-skip-acts .btn-ghost { padding: 10px 14px; }

/* empty */
.hvo-empty { display: grid; place-items: center; min-height: 520px; padding: 40px; text-align: center; }
.hvo-grid:has(.hvo-queue:empty) { grid-template-columns: minmax(0, 1fr); }
.hvo-empty .ring { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid var(--h-line); border-radius: 50%; }
.hvo-empty h3 { margin-bottom: 6px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.hvo-empty p { max-width: 44ch; margin: 0 auto; color: var(--h-ink-2); }

/* phone: judged by the console's own width, not the window's (the app has a sidebar) */
@container hvo (max-width: 860px) {
  .hvo-top { flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }
  .hvo-title { flex-basis: calc(100% - 54px); }
  .hvo-title h2 { font-size: 22px; }
  .hvo-prog { order: 3; width: 100%; }
  .hvo-grid { grid-template-columns: minmax(0, 1fr); }
  .hvo-queue { position: static; max-height: none; }
  .hvo[data-v="list"]:not([data-empty]) .hvo-main { display: none; }
  .hvo[data-v="task"] .hvo-queue, .hvo[data-v="task"] .hvo-title, .hvo[data-v="task"] .hvo-prog { display: none; }
  .hvo[data-v="task"] .hvo-top { margin-bottom: 0; justify-content: flex-end; }
  .hvo-main { border: 0; box-shadow: none; background: none; border-radius: 0; }
  .hvo-task { padding: 4px 0 0; }
  .hvo-back { display: flex; }
  .hvo-th { flex-wrap: wrap; }
  .hvo-th .who { flex: 1; }
  .hvo-open { order: 3; width: 100%; margin-left: 0; justify-content: center; box-sizing: border-box; }
  .hvo-q { flex-direction: column; gap: 12px; margin-top: 20px; }
  .hvo-q h3 { max-width: none; font-size: 23px; }
  .hvo-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 14px 0 24px; }
  .hvo .lab { flex-wrap: wrap; gap: 2px 12px; }
  .hvo-shot { flex-direction: column; align-items: stretch; }
  .hvo-thumb { width: 100%; max-height: 220px; }
  .hvo-foot, .hv-skipbox { margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 0; }
  .hvo-foot { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .hvo-foot .black { flex: 1; }
  .hvo-row { padding-left: 16px; padding-right: 16px; }
  .hvo-empty { min-height: 360px; }
  .hvo-panel { width: 100cqw; max-width: none; }
}
@media (max-width: 600px) { .hvo-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
