/* Zorva Tools — scoped styles. Every selector starts with .zt- so nothing leaks into the theme. */
.zt-tool { box-sizing: border-box; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; margin: 1.5em 0; font-size: 16px; line-height: 1.6; color: #1e293b; }
.zt-tool *, .zt-tool *::before, .zt-tool *::after { box-sizing: border-box; }
.zt-label { display: block; font-weight: 600; margin: 0 0 14px; }
.zt-input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400; color: #1e293b; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; }
.zt-input:focus { outline: 2px solid #1d4ed8; border-color: #1d4ed8; background: #ffffff; }
.zt-btn { display: inline-block; margin: 4px 6px 14px 0; padding: 10px 20px; font: inherit; font-weight: 600; color: #ffffff; background: #13294b; border: 0; border-radius: 8px; cursor: pointer; }
.zt-btn:hover, .zt-btn:focus { background: #1d4ed8; }
.zt-note { font-size: 14px; color: #64748b; margin: 0 0 14px; }
.zt-count { font-size: 14px; color: #64748b; margin: -8px 0 14px; }
.zt-results { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.zt-stat { flex: 1 1 140px; background: #f1f5f9; border-radius: 10px; padding: 14px; text-align: center; }
.zt-stat-num { display: block; font-size: 24px; font-weight: 700; color: #13294b; }
.zt-stat-label { display: block; font-size: 13px; color: #64748b; margin-top: 2px; }
.zt-score-wrap { font-size: 28px; font-weight: 700; color: #13294b; }
.zt-score-max { font-size: 16px; color: #64748b; }
.zt-grade { font-size: 16px; margin-left: 10px; color: #1d4ed8; }
.zt-bar { height: 12px; background: #e2e8f0; border-radius: 6px; overflow: hidden; margin: 10px 0; }
.zt-bar-fill { height: 100%; width: 0; background: #1d4ed8; transition: width .3s ease; }
.zt-breakdown { margin: 10px 0 0; padding-left: 20px; }
.zt-breakdown li { margin: 4px 0; }
.zt-serp { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; background: #ffffff; }
.zt-serp-url { font-size: 13px; color: #006621; word-break: break-all; }
.zt-serp-title { font-size: 19px; color: #1558d6; line-height: 1.3; word-break: break-word; }
.zt-serp-title:hover { text-decoration: underline; }
.zt-serp-desc { font-size: 14px; color: #4d5156; word-break: break-word; }
.zt-output { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; min-height: 44px; word-break: break-word; }
.zt-hash-block { margin: 18px 0; }
.zt-hash-title { margin: 0 0 6px; font-size: 18px; }
.zt-copy-msg { font-size: 14px; color: #15803d; min-height: 20px; }
.zt-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.zt-table th, .zt-table td { padding: 8px; text-align: left; vertical-align: middle; }
.zt-table th { font-size: 14px; color: #475569; border-bottom: 2px solid #e2e8f0; }
.zt-table td { border-bottom: 1px solid #f1f5f9; }
.zt-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.zt-hub-card { display: block; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; text-decoration: none !important; color: #1e293b !important; background: #f8fafc; }
.zt-hub-card:hover { border-color: #1d4ed8; background: #ffffff; }
.zt-hub-title { display: block; font-weight: 700; color: #13294b; }
.zt-hub-desc { display: block; font-size: 14px; color: #64748b; margin-top: 4px; }
/* Batch A additions (v1.1.0): keyword density, case converter, image compressor. */
/* Batch B additions (v1.2.0): UTM builder, QR generator, color palette. */
.zt-utm-builder .zt-output { background: #f1f5f9; }
.zt-utm-builder .zt-error { color: #b91c1c; }
.zt-utm-builder input[type="color"].zt-input,
.zt-qr-generator input[type="color"].zt-input,
.zt-color-palette input[type="color"].zt-input { padding: 4px; height: 44px; cursor: pointer; }
.zt-qr-wrap { text-align: center; margin: 16px 0; }
.zt-qr-canvas { max-width: 100%; height: auto; border: 1px solid #e2e8f0; border-radius: 10px; }
.zt-qr-generator .zt-download-wrap { text-align: center; }
.zt-qr-generator .zt-download { text-decoration: none; }
.zt-swatches { display: flex; gap: 10px; margin: 16px 0; }
.zt-swatch { flex: 1 1 0; min-height: 110px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 4px; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.zt-swatch .zt-hex { font-size: 13px; font-weight: 700; color: #ffffff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); word-break: break-all; }
@media (max-width: 640px) {
  .zt-swatches { flex-wrap: wrap; }
  .zt-swatch { flex: 1 1 45%; min-height: 84px; }
}
.zt-btn-row { margin-bottom: 6px; }
.zt-density-table td:first-child { font-weight: 600; }
.zt-status { font-size: 14px; color: #475569; min-height: 22px; margin: 0 0 8px; }
.zt-preview-wrap { margin-top: 16px; }
.zt-preview { max-width: 100%; height: auto; border: 1px solid #e2e8f0; border-radius: 10px; display: block; margin-bottom: 12px; }
.zt-image-compressor input[type="range"].zt-input { padding: 0; background: transparent; border: 0; }
.zt-image-compressor .zt-download { text-decoration: none; }
@media (max-width: 640px) {
  .zt-tool { padding: 16px; font-size: 15px; }
  .zt-stat { flex: 1 1 100%; }
  .zt-hub-grid { grid-template-columns: 1fr; }
  .zt-table, .zt-table tbody, .zt-table tr, .zt-table td { display: block; width: 100%; }
  .zt-table thead { display: none; }
  .zt-table td { border-bottom: 0; padding: 4px 0; }
  .zt-table tr { border-bottom: 1px solid #e2e8f0; padding: 8px 0; }
  .zt-serp-title { font-size: 17px; }
}
