/* sailboss boat search modal */
.sb-search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  animation: sbFadeIn 120ms ease-out;
}
@keyframes sbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sb-search-card {
  background: #11161d;
  border: 1px solid #2c333d;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  width: min(640px, 100%);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sb-search-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #2c333d;
  color: #e6ebf2;
  font: 15px/1.4 system-ui, -apple-system, sans-serif;
  padding: 14px 16px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.sb-search-input::placeholder { color: #6f7886; }

.sb-search-list {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.sb-search-row {
  background: transparent;
  border: 0;
  color: #cfd6df;
  font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 8px 16px;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 12px;
  cursor: pointer;
  border-left: 2px solid transparent;
}
.sb-search-row:hover,
.sb-search-row.active {
  background: #1b232d;
  border-left-color: #f1c40f;
  color: #f5f7fb;
}
.sb-search-row.selected {
  background: #1f2a18;
  border-left-color: #6cbf3f;
}
.sb-search-row.selected.active {
  background: #233217;
}

.sb-search-sail {
  color: #f1c40f;
  font-weight: 600;
}
.sb-search-row.selected .sb-search-sail {
  color: #aef087;
}
.sb-search-name {
  color: #cfd6df;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-search-owner {
  color: #8b94a3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-search-empty {
  color: #6f7886;
  padding: 24px 16px;
  text-align: center;
  font: 13px/1.4 system-ui, -apple-system, sans-serif;
}

.sb-search-hint {
  border-top: 1px solid #2c333d;
  padding: 8px 16px;
  font: 11px/1.5 system-ui, -apple-system, sans-serif;
  color: #6f7886;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.sb-kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid #2c333d;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #161c24;
  color: #cfd6df;
  font: 10px/1.2 ui-monospace, monospace;
}

@media (max-width: 600px) {
  .sb-search-backdrop { padding: 6vh 8px 8px; }
  .sb-search-row {
    grid-template-columns: 56px 1fr;
    gap: 8px;
  }
  .sb-search-owner { display: none; }
}
