/* Counter tools: scan, ID card, photo sheet, signature, pages per sheet, bill, resume, verify. */
.ct-panel { margin-top: 16px; }
.ct-panel[hidden], .ct-preview[hidden] { display: none; }
.ct-help { margin: 8px 0; color: var(--text-muted); font-size: 0.9rem; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.ct-actions .btn { flex: 1 1 140px; justify-content: center; min-height: 44px; }
.ct-msg { margin-top: 8px; min-height: 1.3em; font-size: 0.9rem; color: var(--text-muted); }
.ct-msg.is-error { color: var(--primary-dark); font-weight: 600; }
.ct-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ct-camera { margin-bottom: 12px; justify-content: center; cursor: pointer; border: 1px solid var(--border); min-height: 48px; }
.ct-hidden-input:focus-visible + .ct-preview { outline: 3px solid var(--primary); }
.ct-preview { display: block; max-width: 100%; height: auto; margin: 10px auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.ct-checker { background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.ct-frame { display: block; width: min(280px, 100%); height: auto; margin: 0 auto 8px; border: 2px solid var(--primary); border-radius: 6px; cursor: move; touch-action: none; }
.ct-two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ct-slot { border: 1px dashed var(--border); border-radius: 12px; padding: 12px; }
.ct-slot label.btn { justify-content: center; border: 1px solid var(--border); cursor: pointer; }
.ct-slot-title { font-size: 1rem; margin: 4px 0 8px; }
.ct-thumbs { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ct-thumbs li { border: 1px solid var(--border); border-radius: 10px; padding: 8px; text-align: center; background: var(--card); }
.ct-thumbs canvas { max-width: 100%; height: 130px; width: auto; }
.ct-mini { display: inline-flex; gap: 4px; margin-top: 6px; }
.ct-mini button, .ct-files button, .ct-items button { min-width: 34px; min-height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); cursor: pointer; }
.ct-mini button:disabled, .ct-files button:disabled { opacity: 0.35; cursor: default; }
.ct-files { padding-left: 18px; }
.ct-files li { margin-bottom: 6px; }
.ct-files span { overflow-wrap: anywhere; margin-right: 8px; }
.ct-items { margin: 8px 0; }
.ct-item { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr) 70px 100px 34px; margin-bottom: 6px; }
.ct-item input { min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; }
.tool-card-main .calc-field textarea, .tool-card-main .calc-field input[type="text"], .tool-card-main .calc-field input[type="tel"], .tool-card-main .calc-field input[type="email"], .tool-card-main .calc-field input[type="date"] {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit;
}
.ct-sheet { width: 100%; height: 520px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.vs-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; background: var(--card); }
.vs-verdict { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.vs-pass { border-left: 6px solid #047857; }
.vs-warn { border-left: 6px solid #b45309; }
.vs-fail { border-left: 6px solid #b91c1c; }
.vs-checks { list-style: none; padding: 0; margin: 12px 0; }
.vs-checks li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.vs-tag { font-weight: 700; font-size: 0.8rem; }
.vs-tag-pass { color: #047857; }
.vs-tag-warn { color: #b45309; }
.vs-tag-fail { color: #b91c1c; }
.vs-chain { font-size: 0.9rem; color: var(--text-muted); overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .ct-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; }
  .ct-item input:first-child { grid-column: 1 / -1; }
}
.ps-download { margin-bottom: 24px; }
.ps-download a[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
