/* YourTechTool — unit converter styles. Loaded only by unit-converter.php, after site.css and tool-page.css.
   Moved from the original inline <style>; page-wide and chrome rules were removed (now shared). */
.intro-hero {
  text-align: center;
  padding: 64px 0 26px;
}
.intro-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 18px 0 12px;
}
.subtitle {
  max-width: 720px;
  margin: auto;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0 12px;
}
.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 18px;
  box-shadow: 0 22px 70px var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.monitor {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border-bottom: 1px solid #222d39;
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px var(--accent);
  animation: blink 1.6s infinite;
}
.monitor small {
  color: #7f8b9b;
  white-space: nowrap;
  margin-left: auto;
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px 6px;
}
.cat-tab {
  border: 1px solid #2d3947;
  border-radius: 999px;
  background: #151e29;
  color: #c6ceda;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.cat-tab:hover {
  border-color: #4b5c70;
}
.cat-tab.active {
  background: linear-gradient(145deg, #198475, #135b58);
  border-color: #4de1c0;
  color: #fff;
  box-shadow: 0 0 14px rgba(56, 214, 162, 0.22);
}
.converter {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
  padding: 14px 20px 8px;
}
.conv-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.conv-field label {
  font-size: 10.5px;
  color: #7f8b9b;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}
.conv-field input[type="number"] {
  width: 100%;
  background: #0d121a;
  border: 1px solid #2d3947;
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 22px;
  font-weight: 750;
  font-family: inherit;
  min-width: 0;
}
.conv-field input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
}
.conv-field select {
  width: 100%;
  background: #151e29;
  border: 1px solid #2d3947;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  font-family: inherit;
}
.swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #2d3947;
  background: #151e29;
  color: var(--accent);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 6px;
  flex: none;
}
.swap-btn:hover {
  border-color: var(--accent);
  background: #1b2735;
}
.result-line {
  padding: 4px 20px 24px;
  color: #9aa6b6;
  font-size: 13.5px;
  text-align: center;
}
.result-line strong {
  color: var(--text);
  font-weight: 800;
}
.bottom {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  margin: 14px 0 28px;
}
.card {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 15px;
  padding: 18px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  color: #7f8b9b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.card p {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.55;
  margin: 11px 0 14px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
button.btn {
  border: 1px solid #2d3947;
  border-radius: 9px;
  background: #151e29;
  color: #e7edf5;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
button.btn:hover {
  background: #1b2735;
  border-color: #4b5c70;
}
button.btn.primary {
  background: #174f47;
  border-color: #286b60;
}
@media (max-width: 700px) {
  .converter {
    grid-template-columns: 1fr;
  }
  .swap-btn {
    justify-self: center;
    transform: rotate(90deg);
  }
}
@media (max-width: 560px) {
  .stat strong {
    font-size: 20px;
  }
  .card {
    padding: 15px;
  }
}
.result-line:empty {
  display: none;
}
