.syt-tool {
  margin-top: 0;
}

.syt-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-bottom: 10px;
}

.syt-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}

.syt-field select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6670' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 8px 36px 8px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
}

.syt-field select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(227, 78, 38, 0.12);
}

.syt-span-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 10px;
  background: var(--bg-soft);
  border-left: 3px solid var(--amber);
  font-size: 13px;
  color: var(--navy);
}

.syt-span-badge strong {
  font-weight: 500;
}

.syt-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.syt-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}

.syt-card__diagram {
  background: #fff;
  padding: 6px 8px 2px;
  line-height: 0;
}

.syt-card__diagram img {
  width: 100%;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  display: block;
}

.syt-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 5px;
  border-bottom: 1px solid var(--line);
}

.syt-card__code {
  display: inline-block;
  min-width: 24px;
  padding: 1px 6px;
  margin-bottom: 0;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
}

.syt-card--q .syt-card__code { background: #2f6fb3; }
.syt-card--f .syt-card__code { background: #c4476a; }
.syt-card--ff .syt-card__code { background: #3a8f5c; }

.syt-card__title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
}

.syt-card__body {
  padding: 6px 10px 8px;
}

.syt-metric {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #eef1f3;
  font-size: 13px;
}

.syt-metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.syt-metric span {
  color: var(--gray);
}

.syt-metric b {
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

.syt-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gray-l);
}

.syt-calc-title {
  margin-top: 28px !important;
  margin-bottom: 10px !important;
}

.syt-calc-title + .entry-text {
  margin-bottom: 10px;
}

.syt-calc-title + .entry-text p {
  margin-bottom: 0;
}

.syt-calc {
  margin-top: 0;
  padding: 14px 14px 12px;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
}

.syt-calc .syt-tool {
  margin-top: 0;
}

.syt-calc .syt-span-badge {
  background: #fff;
}

.syt-calc .syt-card {
  background: #fff;
}

.syt-calc .btn-quote {
  margin-top: 12px;
}

.syt-calc + .doc-grid {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .syt-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .syt-controls {
    grid-template-columns: 1fr;
  }
}
