/* Certify UX fixes: app + /v/ verify result */
:focus-visible { outline: 3px solid var(--c-brand, #1d4ed8); outline-offset: 2px; }
.searchbar:focus-within { outline: 3px solid var(--c-brand, #1d4ed8); outline-offset: 1px; }

/* Help button floated over checklist answers (N/A, defect notes) on phone and iPad */
body:has(.checklist) .help-btn { display: none; }

/* Dashboard: "Form 12A withheld · view" was cut off; "Got it" broke over two lines */
.kpi-sub { white-space: normal; overflow: visible; }
.whats-new .linkish { white-space: nowrap; }

/* Small text: bottom tab labels and defect code pills */
.tabbar a { font-size: 11.5px; }
.code { font-size: 12px; }

/* Contrast: green "Completed" badge was 4.48:1 (light theme only) */
.badge-pass:not([data-theme=dark] *) { color: #166534; }

/* Touch targets on touch screens */
@media (any-pointer: coarse) {
  .bar-row { min-height: 44px; }
  .panel-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Reports list on phones: building/address and time/"by" ran together */
.tr .td-main > small, .tr .td-main > a { display: block; }

/* Settings on phones: "Scan your business card" ran off the card; tabs wrapped */
.panel-head p { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .panel-head { flex-wrap: wrap; gap: 12px; }
  .panel-head > div { flex: 1 1 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs > * { flex: none; }
}

/* Forms: mark required fields */
.field:has(> :is(input, select, textarea)[required]) > label::after { content: " *"; color: var(--c-fail, #b91c1c); }

/* Verify result: long SHA-256 ran off the card */
.auth .card .hint { overflow-wrap: anywhere; }

/* Verify result: brand header + no-match tip (injected by the plugin on /v/ pages) */
.uxf-vhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--c-line, #dde3ea); font: 600 15px var(--font, system-ui); }
.uxf-vhead a { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink, #0b1220); text-decoration: none; font-size: 17px; font-weight: 700; min-height: 44px; }
.uxf-vhead span { color: var(--c-muted, #475467); font-weight: 500; }
.uxf-vtip { max-width: 420px; margin: 0 auto 40px; padding: 0 20px; font: 14px/1.55 var(--font, system-ui); color: var(--c-muted, #475467); text-align: center; }
body:has(.badge) .uxf-vtip, .uxf-vtip:not(.is-shown) { display: none; }
body:has(.uxf-vhead) .auth { min-height: 0; padding: 56px 16px 20px; }

/* Verify result: PDF check + technical details (built by verify-check.js) */
body:has(.badge) .auth .card { display: flex; flex-direction: column; gap: 14px; }
body:has(.badge) .auth .card > * { margin-block: 0; }
.uxf-hash-src { display: none; }
.uxf-pdfcheck { padding: 14px 16px; border: 1px solid var(--c-line, #dde3ea); border-radius: 12px; background: var(--c-bg, #eef1f5); }
.uxf-pdfcheck p { margin: 0; }
.uxf-pdf-title { font-weight: 700; color: var(--c-ink, #0b1220); }
.uxf-pdf-sub { font-size: 14px; color: var(--c-muted, #475467); margin-top: 2px !important; }
.uxf-pdf-btn { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 18px; border-radius: 10px; background: var(--c-brand, #1d4ed8); color: #fff; font-weight: 600; cursor: pointer; }
.uxf-pdf-btn:hover { background: var(--c-brand-hover, #1e40af); }
.uxf-pdf-btn:focus-within { outline: 3px solid var(--c-brand, #1d4ed8); outline-offset: 2px; }
.uxf-pdf-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.uxf-pdf-out:empty { display: none; }
.uxf-pdf-out { margin-top: 10px !important; font-size: 14px; overflow-wrap: anywhere; }
.uxf-pdf-out.is-ok { color: #166534; font-weight: 600; }
.uxf-pdf-out.is-bad { color: var(--c-fail, #b91c1c); font-weight: 600; }
.uxf-tech { border-top: 1px solid var(--c-line, #dde3ea); padding-top: 10px; font-size: 13px; color: var(--c-muted, #475467); }
.uxf-tech summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-weight: 600; }
.uxf-tech p { margin: 6px 0 0; }
.uxf-tech-label { font-weight: 600; color: var(--c-text, #1d2939); }
.uxf-tech-hash { font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }

/* Plan & billing panel (billing.js) */
.uxf-bill-trigger { cursor: pointer; }
.uxf-bill-trigger:hover { filter: brightness(1.12); }
.uxf-bill-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; min-height: 44px; font: inherit; color: var(--c-brand, #1d4ed8); font-weight: 600; cursor: pointer; }
.uxf-bill { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgb(15 23 42 / .55); }
.uxf-bill-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 16px; background: var(--c-card, #fff); color: var(--c-text, #1d2939); box-shadow: 0 20px 50px rgb(0 0 0 / .25); font: 15px/1.5 var(--font, system-ui); }
.uxf-bill-box h2 { margin: 0 40px 8px 0; font-size: 22px; color: var(--c-ink, #0b1220); }
.uxf-bill-box p { margin: 8px 0; }
.uxf-bill-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--c-muted, #475467); cursor: pointer; border-radius: 10px; }
.uxf-bill-status { font-weight: 600; }
.uxf-bill-status.is-ok { color: #166534; }
.uxf-bill-warn { color: var(--c-fail, #b91c1c); font-weight: 600; }
.uxf-bill-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 520px) { .uxf-bill-plans { grid-template-columns: 1fr; } }
.uxf-bill-plan { border: 1px solid var(--c-line, #dde3ea); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.uxf-bill-plan.is-best { border: 2px solid var(--c-brand, #1d4ed8); }
.uxf-bill-name { font-weight: 700; margin: 0 !important; }
.uxf-bill-amt { font-size: 30px; font-weight: 800; color: var(--c-ink, #0b1220); margin: 0 !important; }
.uxf-bill-amt span { font-size: 13px; font-weight: 500; color: var(--c-muted, #475467); }
.uxf-bill-cta { margin-top: auto; min-height: 48px; width: 100%; }
.uxf-bill-fine { font-size: 13px; color: var(--c-muted, #475467); }
