/* Content Lab: match the Tools Suite's intentionally light workspace.
   Specificity is scoped to these three tools; unrelated tool pages are untouched. */
#tht-tools-app .tht-card.tht-lab,.tht-card.tht-lab {
  --lab-ink:#162b40;--lab-muted:#455c70;--lab-accent:#086b78;--lab-line:#c9dbe4;
  display:grid;gap:18px;min-width:0;color:var(--lab-ink)!important;
  background:#fff!important;border:1px solid var(--lab-line)!important;
}
#tht-tools-app .tht-card.tht-lab .tht-lab-kicker,.tht-lab .tht-lab-kicker {color:#086b78!important;font-size:12px;font-weight:800;letter-spacing:.08em}
#tht-tools-app .tht-card.tht-lab h2,.tht-lab h2 {color:#162b40!important;margin:0!important;font-size:clamp(23px,2.6vw,30px)!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.025em}
#tht-tools-app .tht-card.tht-lab .tht-lab-note,.tht-lab .tht-lab-note {color:#455c70!important;font-size:15px!important;line-height:1.65!important;margin:0!important}
#tht-tools-app .tht-card.tht-lab .tht-lab-heading {display:grid;gap:8px}
#tht-tools-app .tht-card.tht-lab label,.tht-lab label {display:grid!important;gap:9px!important;min-width:0;color:#20364d!important;font-size:14px!important;font-weight:700!important;line-height:1.5!important}
#tht-tools-app .tht-card.tht-lab .tht-lab-upload,.tht-lab .tht-lab-upload {
  display:grid!important;justify-items:center;align-items:center;gap:12px!important;
  border:2px dashed #8bb6c1!important;border-radius:16px!important;padding:clamp(18px,4vw,32px)!important;
  background:#f1f8fa!important;color:#20364d!important;text-align:center;overflow-wrap:anywhere;
}
#tht-tools-app .tht-card.tht-lab .tht-lab-upload:focus-within {border-color:#086b78!important;outline:3px solid #b4e1e5;outline-offset:2px}
#tht-tools-app .tht-card.tht-lab .tht-lab-upload-icon,.tht-lab .tht-lab-upload-icon {display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#d7eef1;color:#086b78}
.tht-lab-upload-icon svg {width:26px;height:26px}
#tht-tools-app .tht-card.tht-lab .tht-lab-upload-title,.tht-lab .tht-lab-upload-title {color:#162b40!important;font-size:18px!important;font-weight:800!important}
#tht-tools-app .tht-card.tht-lab .tht-lab-upload-help,.tht-lab .tht-lab-upload-help {color:#455c70!important;font-size:14px!important;font-weight:500!important}
#tht-tools-app .tht-card.tht-lab input.tht-lab-file,.tht-lab input.tht-lab-file {width:100%!important;max-width:440px!important;min-width:0!important;box-sizing:border-box;background:#fff!important;color:#20364d!important;padding:9px!important;font-size:14px!important;border:1px solid #a4bcc9!important;border-radius:10px!important}
#tht-tools-app .tht-card.tht-lab input.tht-lab-file::file-selector-button,.tht-lab input.tht-lab-file::file-selector-button {border:0;border-radius:8px;background:#086b78;color:#fff;padding:11px 14px;font:inherit;font-weight:700;margin-right:10px;cursor:pointer}
#tht-tools-app .tht-card.tht-lab .tht-lab-selection {font-size:14px;color:#20364d!important;max-width:100%;overflow-wrap:anywhere}
#tht-tools-app .tht-card.tht-lab textarea,.tht-lab textarea {width:100%!important;max-width:100%;box-sizing:border-box;color:#162b40!important;background:#fbfdfe!important;font-size:16px!important;line-height:1.65!important;resize:vertical}
#tht-tools-app .tht-card.tht-lab textarea::placeholder {color:#536a7e!important;opacity:1}
#tht-tools-app .tht-card.tht-lab .tht-lab-tolerance {width:100%;accent-color:#086b78}
#tht-tools-app .tht-card.tht-lab .tht-lab-tolerance-value {color:#162b40;font-weight:800}
#tht-tools-app .tht-card.tht-lab .tht-lab-limits,.tht-lab .tht-lab-limits {border:1px solid #e1c98a;border-left:4px solid #9a6700;border-radius:10px;padding:14px 16px;background:#fff9e9;color:#5b410d!important;font-size:14px;line-height:1.65}
#tht-tools-app .tht-card.tht-lab .tht-lab-limits strong {display:block;color:#5b410d!important;margin-bottom:4px}
#tht-tools-app .tht-card.tht-lab .tht-actions,.tht-lab .tht-actions {display:flex!important;flex-wrap:wrap;gap:10px!important;align-items:center}
#tht-tools-app .tht-card.tht-lab .tht-btn,.tht-lab .tht-btn {min-height:48px!important;border:1px solid #086b78!important;border-radius:10px!important;background:#086b78!important;color:#fff!important;font-size:14px!important;font-weight:750!important;padding:12px 20px!important;box-shadow:0 4px 12px rgba(8,107,120,.14)!important}
#tht-tools-app .tht-card.tht-lab .tht-btn-secondary,.tht-lab .tht-btn-secondary {background:#fff!important;color:#20364d!important;border-color:#9cb4c3!important;box-shadow:none!important}
#tht-tools-app .tht-card.tht-lab .tht-btn:focus-visible,.tht-lab .tht-btn:focus-visible {outline:3px solid #086b78!important;outline-offset:3px}
#tht-tools-app .tht-card.tht-lab .tht-btn:disabled {opacity:.6;cursor:wait}
#tht-tools-app .tht-card.tht-lab .tht-lab-status,.tht-lab .tht-lab-status {color:#155e63!important;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#tht-tools-app .tht-card.tht-lab .tht-lab-status:empty {display:none}
#tht-tools-app .tht-card.tht-lab .tht-lab-status[data-state="error"] {color:#992b27!important;background:#fff1ef;border:1px solid #f1c6c0;padding:12px;border-radius:8px}
#tht-tools-app .tht-card.tht-lab .tht-lab-results,.tht-lab .tht-lab-results {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);margin:0;border:1px solid #c9dbe4;border-radius:12px;overflow:hidden}
#tht-tools-app .tht-card.tht-lab .tht-lab-results dt,#tht-tools-app .tht-card.tht-lab .tht-lab-results dd,.tht-lab-results dt,.tht-lab-results dd {margin:0!important;padding:14px 16px!important;border-bottom:1px solid #d8e4eb;overflow-wrap:anywhere;min-width:0;font-size:14px;line-height:1.6}
#tht-tools-app .tht-card.tht-lab .tht-lab-results dt,.tht-lab-results dt {font-weight:750;color:#20364d!important;background:#edf5f8!important}
#tht-tools-app .tht-card.tht-lab .tht-lab-results dd,.tht-lab-results dd {color:#20364d!important;background:#fff!important}
#tht-tools-app .tht-card.tht-lab [hidden],.tht-lab [hidden] {display:none!important}
#tht-tools-app .tht-card.tht-lab .tht-mini-note {display:none!important} /* Local-processing notice above is specific to this tool. */
.tht-lab-canvas {display:block;width:auto;max-width:100%;max-height:520px;object-fit:contain;background:repeating-conic-gradient(#c5ced8 0 25%,#f1f5f9 0 50%) 0/20px 20px;border-radius:10px;border:1px solid #c9dbe4}
#tht-tools-app:is([data-tool="image-authenticity-checker"],[data-tool="ai-text-analyzer"],[data-tool="background-remover"]) .tht-tool-hero h1 {font-size:clamp(28px,3.2vw,42px)!important;line-height:1.14!important;font-weight:800!important;letter-spacing:-.035em!important;overflow-wrap:anywhere}
#tht-tools-app:is([data-tool="image-authenticity-checker"],[data-tool="ai-text-analyzer"],[data-tool="background-remover"]) .tht-breadcrumb span {color:#455c70!important}
@media(max-width:600px){
 #tht-tools-app .tht-card.tht-lab .tht-lab-results,.tht-lab .tht-lab-results {grid-template-columns:minmax(0,1fr)}
 #tht-tools-app .tht-card.tht-lab .tht-lab-results dt {border-bottom:0;padding-bottom:6px!important}
 #tht-tools-app .tht-card.tht-lab .tht-lab-results dd {padding-top:8px!important}
 #tht-tools-app .tht-card.tht-lab .tht-actions button {flex:1 1 140px}
 #tht-tools-app .tht-card.tht-lab .tht-lab-upload {padding:18px 12px!important}
 #tht-tools-app .tht-card.tht-lab input.tht-lab-file {font-size:13px!important}
}

/* The shared workspace stylesheet is enqueued later; explicitly remove its gradients. */
#tht-tools-app .tht-tool-workspace .tht-card.tht-lab .tht-btn {background:#086b78!important;background-image:none!important;color:#fff!important}
#tht-tools-app .tht-tool-workspace .tht-card.tht-lab .tht-btn-secondary {background:#fff!important;background-image:none!important;color:#20364d!important;border:1px solid #9cb4c3!important;box-shadow:none!important}
