/* Reviewer landing (page checklist). Theme colours + progress width are
   injected per-render via wp_add_inline_style() / inline element style;
   everything static lives here. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--rv-bg); color: var(--rv-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased; }
.rv-shell { max-width: 720px; margin: 40px auto; padding: 0 16px; }
.rv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.rv-head .rv-logo { height: 32px; }
.rv-head .rv-brand { font-weight: 600; opacity: 0.6; font-size: 14px; }
.rv-card { background: var(--rv-card); border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius); padding: 24px; margin-bottom: 16px; }
.rv-title { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.rv-meta { color: var(--rv-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 16px; }
.rv-meta strong { color: var(--rv-text); }
.rv-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.rv-progress-bar { flex: 1; height: 6px; background: var(--rv-border); border-radius: 999px; overflow: hidden; }
.rv-progress-bar > i { display: block; height: 100%; background: var(--rv-accent); transition: width .3s; }
.rv-progress-label { font-size: 13px; color: var(--rv-muted); white-space: nowrap; }

.rv-pages { display: flex; flex-direction: column; gap: 10px; }
.rv-page { display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; background: var(--rv-card); border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius); text-decoration: none; color: var(--rv-text);
    transition: border-color .15s, transform .15s; }
.rv-page:hover { border-color: var(--rv-accent); transform: translateY(-1px); }
.rv-page-status {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rv-border);
    flex-shrink: 0; position: relative; background: #fff;
}
.rv-page[data-status="in_review"] .rv-page-status { border-color: var(--rv-accent); }
.rv-page[data-status="in_review"] .rv-page-status::after {
    content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--rv-accent);
}
.rv-page[data-status="approved"] .rv-page-status {
    background: #10b981; border-color: #10b981;
}
.rv-page[data-status="approved"] .rv-page-status::after {
    content: ''; position: absolute; left: 4px; top: 1px;
    width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.rv-page-title { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-page-type { font-size: 11px; color: var(--rv-muted); text-transform: uppercase;
    letter-spacing: 0.04em; font-weight: 600; flex-shrink: 0; }
.rv-page-badge { font-size: 11px; padding: 3px 8px; border-radius: 999px;
    background: #f3f4f6; color: var(--rv-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.rv-page[data-status="approved"] .rv-page-badge  { background: #d1fae5; color: #047857; }
.rv-page[data-status="in_review"] .rv-page-badge { background: #dbeafe; color: #1d4ed8; }

.rv-foot { color: var(--rv-muted); font-size: 12px; text-align: center; margin-top: 24px; }
.rv-foot a { color: inherit; }

.rv-empty { text-align: center; color: var(--rv-muted); padding: 32px 16px; }

/* Lead-only invite card — sits below the page list. Hidden for all
   other roles via the PHP `$can_invite` gate in the template. */
.rv-invite-card { margin-top: 16px; }
.rv-invite-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; color: var(--rv-text); }
.rv-invite-sub { margin: 0 0 12px; color: var(--rv-muted); font-size: 13px; }
.rv-invite-form textarea {
    width: 100%; box-sizing: border-box;
    padding: 10px 12px; font: inherit; font-size: 13px;
    border: 1px solid var(--rv-border); border-radius: 8px;
    background: var(--rv-card); color: var(--rv-text);
    resize: vertical; min-height: 70px;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.rv-invite-form textarea:focus { outline: 2px solid var(--rv-accent); outline-offset: 1px; border-color: transparent; }
.rv-invite-actions {
    display: flex; align-items: center; gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.rv-btn-primary {
    background: var(--rv-accent); color: #fff;
    border: 0; border-radius: 7px;
    padding: 9px 16px; font: inherit; font-weight: 600; font-size: 13px;
    cursor: pointer; transition: filter .12s;
}
.rv-btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.rv-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.rv-invite-status { font-size: 12px; color: var(--rv-muted); }
.rv-invite-status.is-ok  { color: #16a34a; }
.rv-invite-status.is-err { color: #dc2626; }
