/* Shared URL tools UI */
.ut-hero {
  padding: 48px 0 20px;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}
.ut-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.ut-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #10172f;
  letter-spacing: -0.02em;
}
.ut-hero p {
  margin: 0 auto;
  max-width: 700px;
  color: #5c6478;
  font-size: 17px;
  line-height: 1.7;
}
.ut-wrap { padding: 24px 0 64px; background: #f7f8fc; }
.ut-card {
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(17, 24, 47, 0.06);
  box-sizing: border-box;
}
.ut-privacy, .ut-cors {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.ut-privacy { background: #e8f5e9; border: 1px solid #c8e6c9; color: #1b5e20; }
.ut-cors { background: #fff8e1; border: 1px solid #ffe082; color: #f57f17; }
.ut-privacy strong, .ut-cors strong { font-weight: 800; }
.ut-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #10172f;
  margin-bottom: 8px;
}
.ut-textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  height: 180px;
  resize: vertical;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #18213a;
  border: 2px solid #d8deea;
  border-radius: 12px;
  outline: none;
  background: #fafbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-sizing: border-box;
}
.ut-textarea:focus {
  border-color: #E53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
  background: #fff;
}
.ut-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.ut-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  color: #fff !important;
  line-height: 1.2;
  transition: opacity .2s, transform .2s;
}
.ut-btn:hover { opacity: .92; transform: translateY(-1px); }
.ut-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ut-btn-primary { background: linear-gradient(135deg, #ef5350, #c62828); box-shadow: 0 8px 18px rgba(229,57,53,.22); }
.ut-btn-green { background: #2e7d32; }
.ut-btn-blue { background: #1565c0; }
.ut-btn-gray { background: #455a64; }
.ut-btn-dark { background: #10172f; }
.ut-btn-outline {
  background: #fff;
  color: #10172f !important;
  border: 1.5px solid #cfd5e6;
}
.ut-section { margin-top: 20px; }
.ut-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #10172f;
}
.ut-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ut-stat {
  background: #f7f8fc;
  border: 1px solid #e8ebf5;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 100px;
}
.ut-stat b { display: block; font-size: 18px; color: #E53935; line-height: 1.2; }
.ut-stat span { font-size: 12px; color: #5c6478; font-weight: 600; }
.ut-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ut-field { margin-bottom: 12px; }
.ut-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #384057;
  margin-bottom: 6px;
}
.ut-field select,
.ut-field input[type="text"],
.ut-field input[type="number"],
.ut-field input[type="url"],
.ut-field input[type="range"] {
  width: 100%;
  border: 1.5px solid #d8deea;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #18213a;
  background: #fff;
  box-sizing: border-box;
}
.ut-field input[type="range"] { padding: 0; height: 28px; }
.ut-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
}
.ut-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #18213a;
  cursor: pointer;
}
.ut-results {
  margin-top: 12px;
  border: 1px solid #e8ebf5;
  border-radius: 12px;
  background: #fafbff;
  max-height: 420px;
  overflow: auto;
}
.ut-results pre,
.ut-result-text {
  margin: 0;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #18213a;
}
.ut-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ut-table th,
.ut-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f8;
  vertical-align: top;
  word-break: break-word;
}
.ut-table th { background: #fff; color: #5c6478; font-weight: 700; position: sticky; top: 0; }
.ut-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
.ut-badge.ok { background: #e8f5e9; color: #2e7d32; }
.ut-badge.bad { background: #ffebee; color: #c62828; }
.ut-badge.warn { background: #fff8e1; color: #f57f17; }
.ut-badge.info { background: #e3f2fd; color: #1565c0; }
.ut-progress {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f8fc;
  border: 1px solid #e8ebf5;
}
.ut-progress.is-visible { display: block; }
.ut-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e8ebf5;
  overflow: hidden;
}
.ut-progress-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #ef5350, #c62828);
  transition: width .2s;
}
.ut-progress-text {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #384057;
}
.ut-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #10172f;
  min-height: 22px;
}
.ut-status b { color: #E53935; }
.ut-drop-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #5c6478;
  font-weight: 600;
}
.ut-code {
  background: #10172f;
  color: #e8ebf5;
  border-radius: 12px;
  padding: 14px;
  max-height: 420px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ut-seo-excellent { color: #2e7d32; font-weight: 800; }
.ut-seo-good { color: #f57f17; font-weight: 800; }
.ut-seo-long { color: #c62828; font-weight: 800; }
@media (max-width: 991px) {
  .ut-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .ut-card { padding: 16px; }
  .ut-options-grid { grid-template-columns: 1fr; }
  .ut-btn { width: 100%; }
}
