.ts-page {
  min-height: 100vh;
}

.ts-main {
  padding-bottom: 3rem;
}

.ts-hero {
  padding: 1.25rem 0 0.5rem;
}

.ts-hero h1 {
  margin: 0.35rem 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.ts-features {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.ts-feature-card {
  display: block;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff7ed 0%, #ffffff 55%, #eff6ff 100%);
  border: 1px solid rgba(28, 25, 23, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.ts-feature-card--soon {
  opacity: 0.88;
  cursor: default;
  pointer-events: none;
}

.ts-feature-card--soon:hover {
  transform: none;
  box-shadow: none;
}

.ts-panel {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(28, 25, 23, 0.08);
}

.ts-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ts-hint {
  margin-top: 0.35rem;
}

.ts-form {
  display: grid;
  gap: 0.75rem;
}

.ts-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.ts-form input,
.ts-form select,
.ts-form textarea {
  font: inherit;
  font-weight: 500;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.ts-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.ts-form-row label {
  min-width: 0;
}

.ts-form-row select {
  width: 100%;
  min-height: 2.55rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #71717a 50%),
    linear-gradient(135deg, #71717a 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.vt-suggest-field {
  position: relative;
}

.vt-suggestions {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #fff;
  box-shadow: 0 14px 28px rgba(9, 9, 11, 0.12);
  max-height: 260px;
  overflow: auto;
}

.vt-suggest__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
}

.vt-suggest__item:hover,
.vt-suggest__item.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.vt-suggest__pet {
  font-size: 0.82rem;
  font-weight: 500;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}

.ts-check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.ts-msg {
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-weight: 600;
}

.ts-msg--error {
  background: #fef2f2;
  color: #991b1b;
}

.ts-msg--ok {
  background: #ecfdf5;
  color: #065f46;
}

.ts-results,
.ts-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.ts-card {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
}

.ts-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ts-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.ts-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.ts-badge--prefer {
  background: #ffedd5;
  color: #9a3412;
}

.ts-card-loc,
.ts-card-notes {
  margin: 0.35rem 0 0;
}

.ts-card-yt {
  margin: 0.4rem 0 0;
}

.ts-card-yt a {
  color: #b91c1c;
  font-weight: 700;
  text-decoration: underline;
}

.ts-card-guide {
  margin: 0.55rem 0 0;
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  border: 1px dashed #d4d4d8;
}

.ts-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ts-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(560px, calc(100vw - 1.5rem));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.ts-dialog::backdrop {
  background: rgba(24, 24, 27, 0.45);
}

.ts-dialog .ts-form {
  padding: 1.1rem 1.15rem 1.2rem;
}

.ts-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

@media (max-width: 700px) {
  .ts-form-row {
    grid-template-columns: 1fr;
  }

  .ts-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
