/* VitalTap Local Tracker Editor — drop-in page for editing browser-local shortcuts */

.vte-shell {
  grid-template-columns: minmax(0, 1fr) 330px;
  max-width: 1320px;
}

.vte-card {
  padding: 0;
  overflow: hidden;
}

.vte-hero {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border2);
}

.vte-searchbar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.vte-searchbox {
  flex: 1;
  position: relative;
}

.vte-searchicon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: .72;
  pointer-events: none;
}

.vte-searchinput {
  padding-left: 42px;
  min-height: 50px;
  font-size: 16px;
}

.vte-toolbar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vte-inline-note {
  margin-top: 12px;
  border: 1px solid rgba(37,99,235,.14);
  background: rgba(37,99,235,.06);
  color: var(--muted);
  font-weight: 800;
  border-radius: 14px;
  padding: 10px 12px;
}

.vte-lanes {
  padding: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vte-lane {
  min-width: 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.93));
}

.vte-lanehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.vte-lanetitle {
  font-weight: 1000;
  font-size: 1.02rem;
  line-height: 1.15;
}

.vte-lanebadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.10);
  color: #1d4ed8;
  font-weight: 1000;
  font-size: .9rem;
  padding: 0 10px;
}

.vte-dropzone {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
  border-radius: 18px;
  transition: box-shadow .14s ease, background .14s ease, border-color .14s ease;
}

.vte-dropzone.is-over {
  box-shadow: 0 0 0 3px rgba(37,99,235,.14) inset;
  background: rgba(37,99,235,.04);
}

.vte-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
  background: rgba(17,24,39,.02);
}

.vte-itemcard {
  position: relative;
  min-height: 208px;
  padding: 16px 12px 12px;
  border-radius: 18px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease, opacity .14s ease;
  user-select: none;
}

.vte-itemcard:hover {
  transform: translateY(-1px);
}

.vte-itemcard.is-over {
  border-color: rgba(37,99,235,.48);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12), var(--shadow);
}

.vte-itemcard.is-dragging {
  opacity: .45;
}

.vte-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(220,38,38,.22);
  background: rgba(220,38,38,.08);
  color: #b91c1c;
  font-weight: 1000;
  cursor: pointer;
}

.vte-remove:hover {
  background: rgba(220,38,38,.14);
}

.vte-draghint {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: 1px;
}

.vte-icon {
  font-size: 34px;
  line-height: 1;
  margin-top: 16px;
}

.vte-label {
  margin-top: 12px;
  font-weight: 1000;
  font-size: 1rem;
  line-height: 1.18;
  padding-right: 40px;
}

.vte-sub {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
}

.vte-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vte-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17,24,39,.04);
  color: var(--text);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.vte-badge.muted {
  color: var(--muted);
}

.vte-cardactions {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.vte-stepper {
  display: flex;
  gap: 6px;
}

.vte-mini {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  min-width: 42px;
}

.vte-move {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  min-width: 96px;
}

.vte-moveselect,
.vte-moveselect:focus {
  min-height: 38px;
  font-size: 13px;
  padding: 8px 10px;
}

.vte-sidecard + .vte-sidecard {
  margin-top: 14px;
}

.vte-stats {
  display: grid;
  gap: 8px;
}

.vte-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: rgba(17,24,39,.02);
}

.vte-stat .k {
  color: var(--muted);
  font-weight: 800;
}

.vte-stat .v {
  font-weight: 1000;
}

.vte-stat.total {
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.06);
}

.vte-previewrow {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vte-previewchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.82);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.vte-previewchip .i {
  font-size: 15px;
}

.vte-smallnote {
  margin-top: 12px;
}

.vte-bullets {
  margin-top: 6px;
}

.vte-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 90;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(17,24,39,.94);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 950;
  box-shadow: var(--shadow);
}

.vte-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1120px) {
  .vte-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .vte-lanes {
    grid-template-columns: 1fr;
  }

  .ea-right {
    position: static;
  }
}

@media (max-width: 760px) {
  .vte-hero {
    padding: 14px;
  }

  .vte-searchbar {
    flex-direction: column;
    align-items: stretch;
  }

  .vte-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vte-toolbar .ea-btn,
  .vte-toolbar a.ea-btn {
    justify-content: center;
    text-align: center;
  }

  .vte-lanes {
    padding: 14px;
    gap: 12px;
  }

  .vte-dropzone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vte-itemcard {
    min-height: 196px;
  }
}

@media (max-width: 460px) {
  .vte-toolbar {
    grid-template-columns: 1fr;
  }

  .vte-dropzone {
    grid-template-columns: 1fr 1fr;
  }

  .vte-cardactions {
    flex-direction: column;
    align-items: stretch;
  }

  .vte-stepper {
    justify-content: flex-start;
  }

  .vte-move {
    min-width: 0;
  }
}
