/* Spec 049 — Tools area styles (page-family stylesheet, versioned
   per the cache rule; the site stylesheet styles.v57.css stands).
   Brand tokens: navy #081F32, cyan #00DEF6, near-white #F7FCFF. */

.tool-shell { max-width: 860px; margin: 0 auto; }
.tool-note { color: var(--muted, #9fb6c6); font-size: 0.95rem; }
.tool-privacy {
  border: 1px solid rgba(0, 222, 246, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 26px 0 6px;
  background: rgba(0, 222, 246, 0.06);
}
.tool-privacy strong { color: #00def6; }

.tool-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .tool-cards { grid-template-columns: 1fr 1fr 1fr; } }
.tool-card {
  border: 1px solid rgba(247, 252, 255, 0.14);
  border-radius: 14px;
  padding: 20px;
  background: rgba(247, 252, 255, 0.03);
  display: flex; flex-direction: column; gap: 8px;
}
.tool-card h3 { margin: 0; font-size: 1.08rem; }
.tool-card p { margin: 0; color: var(--muted, #9fb6c6); font-size: 0.95rem; flex: 1; }
.tool-card a { color: #00def6; font-weight: 600; text-decoration: none; }
.tool-card a:hover { text-decoration: underline; }

.tool-panel {
  border: 1px solid rgba(247, 252, 255, 0.14);
  border-radius: 14px;
  padding: 22px;
  background: rgba(247, 252, 255, 0.03);
  margin-top: 26px;
}
.tool-directions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tool-directions label {
  border: 1px solid rgba(247, 252, 255, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
}
.tool-directions input { accent-color: #00def6; margin-right: 6px; }
.tool-directions label:has(input:checked) { border-color: #00def6; color: #00def6; }

.tool-search { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-search input[type="search"], .tool-search select {
  flex: 1 1 220px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(247, 252, 255, 0.25);
  background: rgba(8, 31, 50, 0.65);
  color: #f7fcff;
  font-size: 1rem;
}
.tool-search select { flex: 0 1 220px; }
.tool-search button {
  padding: 12px 22px;
  border-radius: 10px;
  border: 0;
  background: #00def6;
  color: #081f32;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.tool-legend { margin: 16px 0 0; font-size: 0.92rem; color: var(--muted, #9fb6c6); }
.tool-legend dt { display: inline; font-weight: 700; color: #f7fcff; }
.tool-legend dd { display: inline; margin: 0 14px 0 4px; }

.tool-results { margin-top: 26px; }
.tool-group { margin: 0 0 26px; }
.tool-group > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.05rem; }
.tool-group .tool-group-note { margin: 0 0 12px; color: var(--muted, #9fb6c6); font-size: 0.92rem; }
.tool-result {
  border: 1px solid rgba(247, 252, 255, 0.12);
  border-left: 4px solid rgba(247, 252, 255, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 10px;
  background: rgba(247, 252, 255, 0.02);
}
.tool-result.match-direct { border-left-color: #00def6; }
.tool-result.match-related { border-left-color: #7fb3c8; }
.tool-result.match-partial { border-left-color: #e0a458; }
.tool-result .tool-line { margin: 0 0 4px; }
.tool-result .tool-code { font-weight: 700; }
.tool-result .tool-arrow { color: #00def6; padding: 0 6px; }
.tool-result .tool-meta { margin: 6px 0 0; font-size: 0.88rem; color: var(--muted, #9fb6c6); }
.tool-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid currentColor;
}
.tool-badge.match-direct { color: #00def6; }
.tool-badge.match-related { color: #7fb3c8; }
.tool-badge.match-partial { color: #e0a458; }

.tool-empty {
  border: 1px dashed rgba(247, 252, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 26px;
}
.tool-empty h3 { margin-top: 0; }
.tool-status { margin-top: 18px; color: var(--muted, #9fb6c6); font-size: 0.92rem; }

.tool-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.95rem; }
.tool-table th, .tool-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(247, 252, 255, 0.12); }
.tool-table th { color: #00def6; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tool-table td.num, .tool-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.tool-cool { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 760px) { .tool-cool { grid-template-columns: 1fr 1fr; } }
.tool-cool-card {
  border: 1px solid rgba(247, 252, 255, 0.14);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(247, 252, 255, 0.03);
}
.tool-cool-card h4 { margin: 0 0 6px; }
.tool-cool-card p { margin: 0 0 8px; color: var(--muted, #9fb6c6); font-size: 0.92rem; }
.tool-cool-card a { color: #00def6; font-weight: 600; }
.tool-cool-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.9rem; }
