/* Recent checks rail + compact check form (home strip) */

.check-btn-icon,
.check-section-icon {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}
.check-btn-icon svg,
.check-section-icon svg,
.check-sidebar-title .check-section-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.check-form {
  --check-field-h: 44px;
  margin: 0;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--dark);
  background: var(--color-photo, #f4f4f4);
  box-sizing: border-box;
}
.check-form-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.check-form input {
  flex: 1 1 14rem;
  min-height: var(--check-field-h);
  height: var(--check-field-h);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper, #fff);
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
  box-sizing: border-box;
}
.check-form .button {
  flex: 0 0 auto;
  min-height: var(--check-field-h);
  height: var(--check-field-h);
  padding: 0 1rem;
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

@media (max-width: 960px) {
  .check-form-row {
    flex-direction: column;
  }
  .check-form input,
  .check-form .button {
    width: 100%;
    flex: 1 1 auto;
  }
}

.check-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  font: var(--weight-bold) 0.95rem / 1.2 var(--font-heading);
  border: 1px solid currentColor;
  white-space: nowrap;
}
.check-trust-badge--good { color: #1a7a3a; }
.check-trust-badge--mid { color: #b8860b; }
.check-trust-badge--bad { color: #c62828; }
.check-trust-badge--sm {
  font-size: 0.8rem;
  padding: 0.1rem 0.4rem;
}

.check-sidebar {
  position: sticky;
  top: calc(var(--header-h, 4rem) + 1rem);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--paper);
  box-sizing: border-box;
}
.check-sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  font-size: var(--text-h3);
}
.check-sidebar-note {
  margin: 0 0 0.65rem;
  font-size: var(--text-footer);
  color: var(--muted);
}
.check-rail-link-wrap {
  margin: 0 0 0.85rem;
  font-size: var(--text-footer);
}
.check-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: min(70vh, 36rem);
  overflow: auto;
}
.check-recent-item { margin: 0; }
.check-recent-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.check-recent-link:hover,
.check-recent-link:focus-visible {
  background: var(--color-photo);
}
.check-recent-main {
  display: grid;
  grid-template-columns: 0.85rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: start;
  min-width: 0;
  flex: 1 1 auto;
}
.check-mine-flag {
  display: grid;
  place-items: center;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.15rem;
  color: var(--color-accent, #c62828);
  flex-shrink: 0;
}
.check-mine-flag[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}
.check-mine-flag svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}
.check-recent-domain {
  font-weight: var(--weight-bold);
  word-break: break-all;
  font-size: var(--text-footer);
  line-height: 1.3;
}
.check-recent-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex: 0 0 auto;
  min-width: 3.25rem;
}
.check-recent-when {
  font-size: 0.65rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.25;
  white-space: nowrap;
}
.check-recent-empty {
  color: var(--muted);
  font-size: var(--text-footer);
  padding: 0.5rem 0;
}

@media (max-width: 960px) {
  .check-sidebar {
    position: static;
  }
}

.check-form,
.check-form input,
.check-trust-badge,
.check-sidebar {
  border-radius: var(--radius, 10px);
}
