
/* SYNDICATE ID — isolated component styles */
.sid-app,
.sid-app * {
  box-sizing: border-box;
}

.sid-app {
  --sid-bg: #0a0a0c;
  --sid-panel: #121215;
  --sid-border: #2b2b30;
  --sid-red: #ed343d;
  --sid-text: #f5f5f6;
  --sid-muted: #92929b;

  min-height: 100vh;
  padding: 24px clamp(16px, 4vw, 56px);
  background: var(--sid-bg);
  color: var(--sid-text);
  font-family: Arial, Helvetica, sans-serif;
}

.sid-app a {
  color: inherit;
  text-decoration: none;
}

.sid-nav,
.sid-brand,
.sid-card-brand,
.sid-card-top,
.sid-card-footer,
.sid-section-heading,
.sid-level-row,
.sid-card-actions,
.sid-admin-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sid-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sid-border);
}

.sid-brand {
  justify-content: flex-start;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.sid-brand b {
  display: block;
  margin-top: 4px;
}

.sid-logo,
.sid-card-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--sid-red);
  color: white;
  font-weight: 900;
  letter-spacing: -1px;
}

.sid-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 18px;
}

.sid-back {
  color: var(--sid-muted) !important;
  font-size: 10px;
  letter-spacing: 1px;
}

.sid-back:hover,
.sid-admin-toggle:hover {
  color: var(--sid-red) !important;
}

.sid-hero {
  max-width: 1100px;
  margin: 78px auto 58px;
  text-align: center;
}

.sid-eyebrow {
  color: var(--sid-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.sid-hero h1 {
  margin: 18px 0;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -4px;
}

.sid-hero h1 span,
.sid-section-heading h2 span,
.sid-admin-panel h2 span {
  color: var(--sid-red);
}

.sid-subtitle {
  max-width: 480px;
  margin: 0 auto;
  color: var(--sid-muted);
  font-size: 13px;
  line-height: 1.8;
}

.sid-search-section,
.sid-profile-section,
.sid-admin {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.sid-search-section > label,
.sid-admin-panel label {
  display: block;
  margin: 0 0 10px;
  color: #c8c8cf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.sid-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #34343a;
  border-radius: 10px;
  background: #111114;
}

.sid-search:focus-within {
  border-color: var(--sid-red);
}

.sid-search > span {
  color: var(--sid-red);
  font-size: 30px;
}

.sid-search input {
  width: 100%;
  min-width: 0;
  padding: 18px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 13px;
}

.sid-muted {
  color: var(--sid-muted);
  font-size: 12px;
  line-height: 1.7;
}

.sid-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sid-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--sid-border);
  border-radius: 9px;
  background: var(--sid-panel);
  color: white;
  text-align: left;
  cursor: pointer;
}

.sid-result:hover,
.sid-result[aria-pressed="true"] {
  border-color: var(--sid-red);
}

.sid-result img {
  width: 42px;
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
}

.sid-result-info {
  flex: 1;
  min-width: 0;
}

.sid-result-info strong,
.sid-result-info small {
  display: block;
  overflow-wrap: anywhere;
}

.sid-result-info small {
  margin-top: 5px;
  color: var(--sid-muted);
  font-size: 10px;
}

.sid-result-rank {
  color: var(--sid-red);
  font-size: 10px;
  font-weight: 800;
}

.sid-profile-section {
  margin-top: 68px;
}

.sid-section-heading {
  margin-bottom: 20px;
}

.sid-section-heading h2,
.sid-admin-panel h2 {
  margin: 9px 0 0;
  font-size: 27px;
  letter-spacing: -1px;
}

.sid-live-dot {
  color: #b8b8c0;
  font-size: 9px;
  letter-spacing: 1px;
}

.sid-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid #3b2529;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0%, #542027 0%, transparent 45%),
    linear-gradient(135deg, #19191d 0%, #101012 58%, #1a1012 100%);
  box-shadow: 0 20px 70px #0007;
  isolation: isolate;
}

.sid-card::before {
  position: absolute;
  z-index: -1;
  top: -100px;
  right: -100px;
  width: 260px;
  height: 260px;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 35px #ffffff04, 0 0 0 70px #ffffff03;
}

.sid-card-top {
  position: relative;
  padding-bottom: 22px;
  border-bottom: 1px solid #ffffff1a;
}

.sid-card-brand {
  justify-content: flex-start;
}

.sid-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  font-size: 17px;
}

.sid-card-brand strong,
.sid-card-brand small {
  display: block;
}

.sid-card-brand strong {
  font-size: 11px;
  letter-spacing: 1.5px;
}

.sid-card-brand small {
  margin-top: 5px;
  color: #aaaab3;
  font-size: 8px;
  letter-spacing: 1px;
}

.sid-card-index {
  color: #9999a2;
  font-size: 9px;
  letter-spacing: 1px;
}

.sid-card-index b {
  color: white;
}

.sid-card-main {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(14px, 3vw, 28px);
  padding: 25px 0;
}

.sid-avatar-wrap {
  position: relative;
  min-width: 0;
  align-self: start;
  overflow: hidden;
  border: 1px solid #ffffff25;
  border-radius: 9px;
  background: #202024;
}

.sid-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sid-avatar-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px 4px;
  background: #000b;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
}

.sid-member-info {
  min-width: 0;
  align-self: center;
}

.sid-card-label {
  display: block;
  color: #aaaab3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.sid-member-info h3 {
  margin: 8px 0 5px;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 4vw, 30px);
  line-height: 1.1;
  letter-spacing: -1px;
}

.sid-handle {
  margin: 0 0 20px;
  color: #9999a2;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.sid-rank-block {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.sid-rank-block strong {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid #ed343d70;
  border-radius: 4px;
  background: #ed343d18;
  color: #ff6870;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.sid-level-row {
  justify-content: flex-start;
  gap: 28px;
}

.sid-level-row > div {
  display: grid;
  gap: 6px;
}

.sid-level-row strong {
  font-size: 22px;
}

.sid-xp-total strong {
  font-size: 16px;
}

.sid-xp-track {
  height: 5px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff20;
}

.sid-xp-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--sid-red);
  transition: width 250ms ease;
}

.sid-xp-caption {
  margin: 8px 0 0;
  color: #aaaab3;
  font-size: 8px;
  letter-spacing: 0.8px;
}

.sid-card-footer {
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #ffffff1a;
  color: #a5a5ae;
  font-size: 8px;
  letter-spacing: 0.8px;
}

.sid-verified {
  color: #ff686f;
}

.sid-card-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--sid-red);
}

.sid-card-actions {
  margin-top: 16px;
}

.sid-btn {
  min-height: 46px;
  padding: 13px 16px;
  border: 1px solid var(--sid-border);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.sid-btn-primary {
  border-color: var(--sid-red);
  background: var(--sid-red);
  color: white;
}

.sid-btn-primary:hover {
  background: #cf202a;
}

.sid-btn-secondary {
  background: #17171a;
  color: #e7e7eb;
}

.sid-btn-secondary:hover {
  border-color: #777780;
}

.sid-card-actions .sid-btn {
  flex: 1;
}

.sid-notice {
  min-height: 16px;
  color: #c6c6cd;
  font-size: 11px;
  line-height: 1.6;
}

.sid-admin {
  margin-top: 62px;
  padding-top: 20px;
  border-top: 1px solid var(--sid-border);
}

.sid-admin-toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #bdbdc5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  cursor: pointer;
}

.sid-admin-panel {
  padding: 24px 0;
}

.sid-admin-panel h2 {
  margin-bottom: 10px;
}

.sid-admin-login {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.sid-admin-panel input:not([type="file"]),
.sid-admin-panel select {
  width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  padding: 13px;
  border: 1px solid #34343a;
  border-radius: 7px;
  outline: none;
  background: #141417;
  color: white;
  font: inherit;
  font-size: 13px;
}

.sid-admin-panel input:focus,
.sid-admin-panel select:focus {
  border-color: var(--sid-red);
}

.sid-admin-panel input[type="file"] {
  display: block;
  max-width: 100%;
  margin: 0 0 10px;
  color: #bdbdc5;
  font-size: 12px;
}

.sid-admin-panel form > label {
  margin-top: 12px;
}

.sid-admin-buttons {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 20px 0;
}

.sid-admin-members {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.sid-admin-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--sid-border);
  border-radius: 8px;
  background: var(--sid-panel);
}

.sid-admin-member > div {
  flex: 1;
  min-width: 0;
}

.sid-admin-member strong,
.sid-admin-member small {
  display: block;
  overflow-wrap: anywhere;
}

.sid-admin-member small {
  margin-top: 4px;
  color: var(--sid-muted);
}

.sid-admin-member button {
  padding: 8px;
  border: 1px solid var(--sid-border);
  border-radius: 5px;
  background: transparent;
  color: white;
  cursor: pointer;
}

.sid-import-label {
  margin-top: 20px !important;
}

#sidImportData {
  display: block;
  max-width: 100%;
  color: var(--sid-muted);
  font-size: 12px;
}

.sid-footer {
  display: flex;
  max-width: 1100px;
  justify-content: space-between;
  gap: 12px;
  margin: 75px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--sid-border);
  color: var(--sid-muted);
  font-size: 9px;
  letter-spacing: 1px;
}

@media (max-width: 520px) {
  .sid-app {
    padding: 18px 14px;
  }

  .sid-hero {
    margin: 56px auto 42px;
  }

  .sid-hero h1 {
    letter-spacing: -2px;
  }

  .sid-back {
    font-size: 8px;
  }

  .sid-card {
    padding: 18px 14px;
    border-radius: 11px;
  }

  .sid-card-main {
    grid-template-columns: minmax(86px, 0.75fr) minmax(0, 1.4fr);
    gap: 13px;
  }

  .sid-card-brand strong {
    font-size: 9px;
  }

  .sid-card-brand small {
    font-size: 7px;
  }

  .sid-card-index {
    font-size: 8px;
  }

  .sid-member-info h3 {
    font-size: 19px;
  }

  .sid-level-row {
    gap: 14px;
  }

  .sid-level-row strong {
    font-size: 19px;
  }

  .sid-xp-total strong {
    font-size: 14px;
  }

  .sid-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sid-card-actions .sid-btn {
    width: 100%;
  }

  .sid-footer {
    flex-direction: column;
    line-height: 1.6;
  }
}