.lnus-user-search {
  max-width: 1120px;
  margin: 0 auto;
}

.lnus-search-form {
  background: #fff;
  border: 1px solid #dde8ee;
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 20px;
  box-shadow: 0 3px 12px rgba(25, 48, 66, 0.04);
}

.lnus-search-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lnus-search-row-main {
  align-items: flex-end;
}

.lnus-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 360px;
}

.lnus-label {
  font-size: 13px;
  font-weight: 700;
  color: #34454f;
}

.lnus-field input[type="search"],
.lnus-tag-text {
  width: 100%;
  border: 1px solid #d7e4eb;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
}

.lnus-checkbox,
.lnus-tag-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.lnus-creator-only {
  border: 1px solid #d7e4eb;
  border-radius: 999px;
  padding: 10px 14px;
  background: #f8fbfc;
  font-weight: 700;
  color: #34454f;
}

.lnus-tag-filter {
  align-items: flex-start;
}

.lnus-tag-filter > .lnus-label {
  width: 100%;
}

.lnus-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lnus-tag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lnus-tag-option span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2f5f6;
  border: 1px solid #e2e9ed;
  color: #4b5b63;
  font-size: 13px;
  line-height: 1;
}

.lnus-tag-option input:checked + span {
  background: #22c7a9;
  border-color: #22c7a9;
  color: #fff;
  font-weight: 700;
}

.lnus-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.lnus-submit {
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  background: #22c7a9;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.lnus-reset {
  color: #60727c;
  text-decoration: none;
  font-size: 13px;
}

.lnus-result-summary {
  margin: 10px 2px 16px;
  color: #53666f;
  font-weight: 700;
}

.lnus-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lnus-user-card {
  background: #fff;
  border: 1px solid #dde8ee;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(25, 48, 66, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
}

.lnus-card-main {
  display: flex;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.lnus-avatar img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #dbe8ee;
}

.lnus-card-body {
  min-width: 0;
  flex: 1;
}

.lnus-name {
  margin: 2px 0 7px;
  font-size: 18px;
  line-height: 1.3;
  color: #26343b;
}

.lnus-short-profile {
  margin: 0;
  color: #4e6069;
  font-size: 13px;
  line-height: 1.65;
}

.lnus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lnus-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #f0f2f3;
  color: #596a72;
  font-size: 12px;
  line-height: 1;
}

.lnus-connection-panel {
  margin-top: auto;
  border: 1px solid #d6e5ec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.lnus-connection-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  text-decoration: none;
  color: #2c3e47;
  border-bottom: 1px solid #e8f0f4;
}

.lnus-connection-row:last-child {
  border-bottom: 0;
}

.lnus-connection-row .linknote-connection-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7d86;
  min-width: 48px;
}

.lnus-connection-row .linknote-connection-value {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}

.lnus-connection-row .linknote-connection-arrow {
  color: #8da0aa;
  font-size: 18px;
}

.lnus-connection-row.linknote-connection-store .linknote-connection-value i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 999px;
  background: #22c7a9;
}

.lnus-connection-row.linknote-request-status-closed .linknote-connection-value i {
  background: #aeb9bf;
}

.lnus-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  flex-wrap: wrap;
}

.lnus-page {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d7e4eb;
  background: #fff;
  color: #34454f;
  text-decoration: none;
  font-weight: 700;
}

.lnus-page.is-current {
  background: #22c7a9;
  border-color: #22c7a9;
  color: #fff;
}

@media (max-width: 960px) {
  .lnus-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .lnus-card-main {
    align-items: flex-start;
  }

  .lnus-avatar img {
    width: 68px;
    height: 68px;
  }
}

/* v1.0.1: tags are direct links to the matching user-search result. */
a.lnus-tag {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

a.lnus-tag:hover,
a.lnus-tag:focus-visible {
	text-decoration: none;
	filter: brightness(0.96);
}

/* 1.0.5: directory-first layout, scoped to this shortcode. */
.lnus-directory { display:grid; grid-template-columns:240px minmax(0,1fr); gap:24px; align-items:start; }
.lnus-directory .lnus-sidebar,.lnus-directory .lnus-results { min-width:0; }
.lnus-directory .lnus-search-form { padding:16px; margin:0; }
.lnus-directory .lnus-search-row { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
.lnus-directory .lnus-field { flex:0 1 auto; min-width:0; }
.lnus-directory .lnus-creator-only { font-size:12px; border-radius:10px; padding:10px; align-items:flex-start; }
.lnus-directory .lnus-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.lnus-directory .lnus-filter-toggle { display:none; }
.lnus-directory .lnus-name,.lnus-directory .lnus-short-profile { overflow-wrap:anywhere; }
.lnus-directory .lnus-tag-option input:focus-visible + span { outline:2px solid #168d78; outline-offset:2px; }
@media(max-width:767px) {
 .lnus-directory { grid-template-columns:minmax(0,1fr); gap:14px; }
 .lnus-directory .lnus-enhanced .lnus-filter-toggle { display:block; width:100%; padding:12px 16px; border:1px solid #dde8ee; border-radius:12px; background:#fff; color:#34454f; font-size:14px; font-weight:700; cursor:pointer; text-align:left; }
 .lnus-directory .lnus-enhanced:not(.is-open) .lnus-filter-panel { display:none; }
 .lnus-directory .is-open .lnus-filter-panel { margin-top:10px; }
 .lnus-directory .lnus-card-grid { grid-template-columns:minmax(0,1fr); }
 .lnus-directory .lnus-result-summary { margin-top:0; }
}
