.crcp-profile {
  --crcp-orange: #ff6a00;
  --crcp-orange-light: #ff9a3c;
  --crcp-ink: #090909;
  --crcp-panel: #121212;
  --crcp-panel-soft: #1a1a1a;
  --crcp-line: rgba(255, 255, 255, 0.11);
  --crcp-text: #f7f7f7;
  --crcp-muted: #aaa;
  width: min(1180px, calc(100% - 28px));
  margin: 32px auto;
  color: var(--crcp-text);
  font-family: inherit;
  line-height: 1.55;
  color-scheme: dark;
}

.crcp-profile *,
.crcp-profile *::before,
.crcp-profile *::after {
  box-sizing: border-box;
}

.crcp-profile a {
  color: inherit;
  text-decoration: none;
}

.crcp-hero,
.crcp-card,
.crcp-editor {
  background: var(--crcp-panel);
  border: 1px solid var(--crcp-line);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.crcp-banner {
  position: relative;
  min-height: 310px;
  background:
    linear-gradient(115deg, rgba(255, 106, 0, 0.96), rgba(124, 37, 0, 0.45) 42%, rgba(9, 9, 9, 0.9) 76%),
    repeating-linear-gradient(135deg, transparent 0 42px, rgba(255, 255, 255, 0.08) 42px 44px),
    #171717;
  background-position: center;
  background-size: cover;
}

.crcp-banner::before {
  content: "CLAPROCKER";
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 24px;
  color: rgba(255, 255, 255, 0.10);
  font-size: clamp(44px, 9vw, 118px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.crcp-banner--image::before {
  display: none;
}

.crcp-banner-glow {
  position: absolute;
  inset: auto auto -100px -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--crcp-orange);
  filter: blur(110px);
  opacity: 0.42;
}

.crcp-identity {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 140px;
  padding: 28px 34px 28px 220px;
  background: linear-gradient(180deg, #151515, #0d0d0d);
}

.crcp-avatar-wrap {
  position: absolute;
  left: 38px;
  top: -76px;
  width: 158px;
  height: 158px;
}

.crcp-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px solid var(--crcp-panel);
  border-radius: 50%;
  background: #252525;
  box-shadow: 0 0 0 3px var(--crcp-orange), 0 16px 36px rgba(0, 0, 0, 0.42);
}

.crcp-presence {
  position: absolute;
  right: 6px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border: 4px solid var(--crcp-panel);
  border-radius: 50%;
  background: #666;
}

.crcp-presence.is-online {
  background: #3ee089;
  box-shadow: 0 0 14px rgba(62, 224, 137, 0.65);
}

.crcp-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crcp-name-row h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.crcp-verified {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #0b0b0b;
  background: var(--crcp-orange);
  font-size: 15px;
  font-weight: 900;
}

.crcp-handle {
  margin: 4px 0 14px;
  color: var(--crcp-muted);
  font-size: 14px;
}

.crcp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crcp-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 106, 0, 0.42);
  border-radius: 999px;
  color: #ffd1b0;
  background: rgba(255, 106, 0, 0.12);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.crcp-badge--team,
.crcp-badge--moderator,
.crcp-badge--founder,
.crcp-badge--featured {
  color: #101010;
  background: linear-gradient(135deg, var(--crcp-orange-light), var(--crcp-orange));
}

.crcp-badge--level {
  color: #ffe3ce;
  border-color: rgba(255, 154, 60, 0.55);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.2), rgba(255, 154, 60, 0.08));
}

.crcp-level-mini {
  width: min(310px, 100%);
  margin-top: 14px;
}

.crcp-level-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #f3f3f3;
  font-size: 11px;
}

.crcp-level-copy span {
  color: var(--crcp-muted);
}

.crcp-level-track {
  height: 7px;
  border-radius: 999px;
  background: #292929;
  overflow: hidden;
}

.crcp-level-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--crcp-orange), var(--crcp-orange-light));
  box-shadow: 0 0 14px rgba(255, 106, 0, 0.55);
}

.crcp-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  min-width: 190px;
}

.crcp-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

.crcp-inline-form {
  display: inline-flex;
  margin: 0;
}

.crcp-action-button,
.crcp-messages-jump,
.crcp-mini-link,
.crcp-message-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 106, 0, 0.38);
  border-radius: 10px;
  color: #111 !important;
  background: linear-gradient(135deg, var(--crcp-orange-light), var(--crcp-orange));
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.crcp-action-button--quiet,
.crcp-messages-jump {
  color: #ddd !important;
  border-color: var(--crcp-line);
  background: #1b1b1b;
}

.crcp-messages-jump {
  gap: 8px;
}

.crcp-messages-jump span,
.crcp-unread-total,
.crcp-inbox-item b {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  color: #101010;
  background: var(--crcp-orange);
  font-size: 10px;
  font-weight: 900;
}

[data-crcp-unread-badge][hidden] {
  display: none !important;
}

.crcp-friend-count,
.crcp-request-state {
  color: var(--crcp-muted);
  font-size: 12px;
  font-weight: 700;
}

.crcp-pending-count {
  padding: 5px 9px;
  border: 1px solid rgba(255, 106, 0, 0.36);
  border-radius: 999px;
  color: var(--crcp-orange-light) !important;
  background: rgba(255, 106, 0, 0.09);
  font-size: 10px;
  font-weight: 800;
}

.crcp-request-state--friends {
  color: #76e5a5;
}

.crcp-edit-jump,
.crcp-edit-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  color: #111 !important;
  background: linear-gradient(135deg, var(--crcp-orange-light), var(--crcp-orange));
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.21);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.crcp-edit-jump:hover,
.crcp-edit-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 106, 0, 0.32);
}

.crcp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
  gap: 24px;
  margin-top: 24px;
}

.crcp-community-hub {
  display: block;
  margin-top: 24px;
}

.cr-header-messages {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: left !important;
  cursor: pointer !important;
}

.cr-header-messages:hover,
.cr-header-messages:focus-visible {
  color: #fff !important;
  background: rgba(255, 106, 0, 0.16) !important;
  outline: none !important;
}

.cr-header-messages-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #111;
  background: #ff6a00;
  font-size: 13px;
}

.cr-header-messages-name {
  flex: 1 1 auto;
}

.cr-header-messages-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #111;
  background: #ff6a00;
  font-size: 10px;
  font-weight: 900;
}

.cr-header-messages-badge[hidden] {
  display: none !important;
}

body.crcp-modal-open {
  overflow: hidden !important;
}

.crcp-message-modal {
  --crcp-orange: #ff6a00;
  --crcp-orange-light: #ff9a3c;
  --crcp-panel: #121212;
  --crcp-line: rgba(255, 255, 255, 0.11);
  --crcp-muted: #aaa;
  position: fixed;
  inset: 0;
  z-index: 999999;
  color: #f7f7f7;
  font-family: inherit;
  color-scheme: dark;
}

.crcp-message-modal[hidden] {
  display: none !important;
}

.crcp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
}

.crcp-message-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(1080px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 28px));
  border: 1px solid rgba(255, 106, 0, 0.35);
  border-radius: 22px;
  background: #101010;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72), 0 0 50px rgba(255, 106, 0, 0.09);
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.crcp-message-dialog:focus {
  outline: none;
}

.crcp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--crcp-line);
  background: linear-gradient(100deg, rgba(255, 106, 0, 0.2), transparent 58%), #141414;
}

.crcp-modal-header span {
  display: block;
  color: var(--crcp-orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crcp-modal-header h2 {
  margin: 2px 0 0 !important;
  color: #fff !important;
  font-size: 25px !important;
  line-height: 1.1 !important;
}

.crcp-modal-close {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 1px solid var(--crcp-line) !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: #202020 !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 25px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.crcp-modal-close:hover {
  color: #111 !important;
  border-color: var(--crcp-orange) !important;
  background: var(--crcp-orange) !important;
}

.crcp-modal-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 280px) 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--crcp-line);
  background: #0c0c0c;
}

.crcp-modal-toolbar label {
  color: #ddd;
  font-size: 12px;
  font-weight: 750;
}

.crcp-modal-toolbar select {
  width: 100%;
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid var(--crcp-line);
  border-radius: 9px;
  color: #fff;
  background: #1a1a1a;
  font: inherit;
  font-size: 12px;
}

.crcp-modal-status {
  justify-self: end;
  color: var(--crcp-muted);
  font-size: 11px;
}

.crcp-modal-status.is-error {
  color: #ff9f9f;
}

.crcp-message-modal .crcp-message-layout {
  flex: 1 1 auto;
  min-height: min(540px, calc(100vh - 190px));
  border: 0;
  border-radius: 0;
}

.crcp-message-modal .crcp-inbox-item {
  width: 100%;
  border: 0;
  color: #eee !important;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.crcp-inbox-item small {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 9px;
}

.crcp-message-modal .crcp-chat-messages {
  max-height: none;
}

.crcp-message-modal .crcp-bubble p {
  white-space: pre-wrap;
}

.crcp-modal-empty {
  padding: 12px;
}

.crcp-heading-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  margin-left: 5px;
  border-radius: 9px;
  color: var(--crcp-orange-light);
  background: rgba(255, 106, 0, 0.12);
  font-size: 12px;
  vertical-align: middle;
}

.crcp-requests {
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid rgba(255, 106, 0, 0.26);
  border-radius: 14px;
  background: rgba(255, 106, 0, 0.06);
}

.crcp-requests h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
}

.crcp-request-row,
.crcp-friend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--crcp-line);
}

.crcp-request-row:last-child,
.crcp-friend-row:last-child {
  border-bottom: 0;
}

.crcp-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.crcp-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #f3f3f3 !important;
  font-size: 13px;
  font-weight: 750;
}

.crcp-user-chip img {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 106, 0, 0.48);
  border-radius: 50%;
  object-fit: cover;
}

.crcp-user-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crcp-mini-link {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 10px;
}

.crcp-message-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) minmax(0, 1.65fr);
  min-height: 420px;
  border: 1px solid var(--crcp-line);
  border-radius: 16px;
  background: #0b0b0b;
  overflow: hidden;
}

.crcp-inbox {
  max-height: 540px;
  padding: 10px;
  border-right: 1px solid var(--crcp-line);
  overflow-y: auto;
}

.crcp-inbox-item {
  position: relative;
  display: block;
  padding: 11px 34px 11px 11px;
  border-radius: 10px;
  color: #eee !important;
}

.crcp-inbox-item + .crcp-inbox-item {
  margin-top: 4px;
}

.crcp-inbox-item:hover,
.crcp-inbox-item.is-active {
  background: rgba(255, 106, 0, 0.13);
}

.crcp-inbox-item strong,
.crcp-inbox-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crcp-inbox-item strong {
  font-size: 12px;
}

.crcp-inbox-item span {
  margin-top: 3px;
  color: var(--crcp-muted);
  font-size: 10px;
}

.crcp-inbox-item b {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.crcp-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.crcp-chat-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--crcp-line);
  background: #111;
}

.crcp-chat-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  max-height: 430px;
  min-height: 275px;
  padding: 18px;
  overflow-y: auto;
}

.crcp-bubble {
  align-self: flex-start;
  max-width: min(82%, 520px);
  padding: 10px 12px 7px;
  border: 1px solid var(--crcp-line);
  border-radius: 14px 14px 14px 4px;
  color: #eee;
  background: #1b1b1b;
}

.crcp-bubble.is-own {
  align-self: flex-end;
  border-color: rgba(255, 106, 0, 0.35);
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.28), rgba(130, 46, 0, 0.32));
}

.crcp-bubble p {
  margin: 0;
  color: inherit;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.crcp-bubble time {
  display: block;
  margin-top: 4px;
  color: var(--crcp-muted);
  font-size: 9px;
  text-align: right;
}

.crcp-chat-placeholder {
  display: grid;
  place-content: center;
  flex: 1;
  min-height: 360px;
  padding: 28px;
  color: var(--crcp-muted);
  text-align: center;
}

.crcp-chat-placeholder span {
  color: var(--crcp-orange);
  font-size: 38px;
}

.crcp-chat-placeholder p {
  max-width: 330px;
  margin: 10px auto 0;
}

.crcp-message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-top: 1px solid var(--crcp-line);
  background: #111;
}

.crcp-message-form textarea {
  width: 100%;
  min-height: 62px;
  max-height: 160px;
  padding: 10px 11px;
  border: 1px solid var(--crcp-line);
  border-radius: 10px;
  color: #fff;
  background: #080808;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.crcp-profile .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.crcp-main {
  display: grid;
  gap: 24px;
}

.crcp-card {
  padding: clamp(24px, 4vw, 38px);
}

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

.crcp-section-heading .crcp-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--crcp-orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crcp-section-heading h2,
.crcp-form-section h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.crcp-bio p {
  margin: 0 0 12px;
  color: #d8d8d8;
  font-size: 16px;
}

.crcp-muted {
  color: var(--crcp-muted) !important;
}

.crcp-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.crcp-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--crcp-line);
  border-radius: 10px;
  color: #ddd;
  background: #181818;
  font-size: 13px;
  font-weight: 720;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.crcp-socials a span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #111;
  background: var(--crcp-orange);
  font-size: 9px;
  font-weight: 900;
}

.crcp-socials a:hover {
  color: #fff;
  border-color: var(--crcp-orange);
  transform: translateY(-1px);
}

.crcp-stats-card {
  position: sticky;
  top: 24px;
}

.crcp-stats {
  display: grid;
  gap: 4px;
}

.crcp-stat {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--crcp-line);
}

.crcp-stat:last-child {
  border-bottom: 0;
}

.crcp-stat-icon,
.crcp-timeline-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--crcp-orange);
  background: rgba(255, 106, 0, 0.12);
  font-size: 16px;
}

.crcp-stat strong,
.crcp-stat span {
  display: block;
}

.crcp-stat strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.crcp-stat div > span {
  margin-top: 3px;
  color: var(--crcp-muted);
  font-size: 12px;
}

.crcp-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crcp-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 0;
}

.crcp-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 54px;
  bottom: -2px;
  left: 19px;
  width: 2px;
  background: linear-gradient(var(--crcp-orange), transparent);
  opacity: 0.34;
}

.crcp-timeline a,
.crcp-activity-label,
.crcp-timeline time {
  display: block;
}

.crcp-timeline a {
  margin: 2px 0;
  color: #fff;
  font-weight: 750;
}

.crcp-timeline a:hover {
  color: var(--crcp-orange-light);
}

.crcp-activity-label,
.crcp-timeline time {
  color: var(--crcp-muted);
  font-size: 12px;
}

.crcp-notice {
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid;
  border-radius: 12px;
  font-weight: 700;
}

.crcp-notice--success {
  color: #bdf8d6;
  border-color: rgba(62, 224, 137, 0.42);
  background: rgba(62, 224, 137, 0.1);
}

.crcp-notice--error {
  color: #ffc5c5;
  border-color: rgba(255, 82, 82, 0.44);
  background: rgba(255, 82, 82, 0.1);
}

.crcp-editor {
  margin-top: 24px;
}

.crcp-editor > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.16), transparent 70%);
  font-weight: 820;
  cursor: pointer;
  list-style: none;
}

.crcp-editor > summary::-webkit-details-marker {
  display: none;
}

.crcp-editor > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 106, 0, 0.35);
  border-radius: 50%;
  color: var(--crcp-orange);
}

.crcp-editor[open] > summary::after {
  content: "−";
}

.crcp-edit-form {
  padding: clamp(22px, 4vw, 38px);
  border-top: 1px solid var(--crcp-line);
}

.crcp-form-section + .crcp-form-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--crcp-line);
}

.crcp-form-section h3 {
  margin-bottom: 18px;
  font-size: 19px;
}

.crcp-upload-grid,
.crcp-social-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.crcp-field label,
.crcp-field small {
  display: block;
}

.crcp-field > label:first-child {
  margin-bottom: 7px;
  color: #f3f3f3;
  font-size: 13px;
  font-weight: 750;
}

.crcp-field input[type="url"],
.crcp-field input[type="file"],
.crcp-field textarea {
  width: 100%;
  max-width: none;
  border: 1px solid var(--crcp-line);
  border-radius: 10px;
  color: #fff;
  background: #0c0c0c;
  font: inherit;
  font-size: 14px;
}

.crcp-field input[type="url"],
.crcp-field textarea {
  padding: 11px 12px;
}

.crcp-field input[type="file"] {
  padding: 9px;
}

.crcp-field input:focus,
.crcp-field textarea:focus,
.crcp-edit-jump:focus,
.crcp-edit-form button:focus {
  outline: 2px solid var(--crcp-orange);
  outline-offset: 2px;
}

.crcp-field small {
  margin-top: 6px;
  color: var(--crcp-muted);
  font-size: 11px;
}

.crcp-field .crcp-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: #ccc;
  font-size: 12px;
}

.crcp-preview {
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px dashed rgba(255, 106, 0, 0.38);
  border-radius: 12px;
  background: #0b0b0b;
  overflow: hidden;
}

.crcp-preview--banner {
  aspect-ratio: 16 / 5;
}

.crcp-preview--avatar {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.crcp-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crcp-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.crcp-empty {
  padding: 24px;
  border-radius: 12px;
  color: #ddd;
  background: #151515;
}

@media (max-width: 860px) {
  .crcp-banner {
    min-height: 230px;
  }

  .crcp-identity {
    grid-template-columns: 1fr auto;
    padding: 92px 24px 24px;
  }

  .crcp-avatar-wrap {
    top: -78px;
    left: 24px;
    width: 142px;
    height: 142px;
  }

  .crcp-grid {
    grid-template-columns: 1fr;
  }

  .crcp-sidebar {
    order: -1;
  }

  .crcp-stats-card {
    position: static;
  }

  .crcp-community-hub {
    grid-template-columns: 1fr;
  }

  .crcp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
}

@media (max-width: 600px) {
  .crcp-profile {
    width: min(100% - 18px, 1180px);
    margin: 18px auto;
  }

  .crcp-hero,
  .crcp-card,
  .crcp-editor {
    border-radius: 16px;
  }

  .crcp-banner {
    min-height: 180px;
  }

  .crcp-identity {
    display: block;
    padding: 80px 18px 20px;
  }

  .crcp-avatar-wrap {
    left: 18px;
    width: 124px;
    height: 124px;
  }

  .crcp-edit-jump {
    width: 100%;
    margin-top: 18px;
  }

  .crcp-hero-actions,
  .crcp-profile-actions {
    align-items: stretch;
    width: 100%;
  }

  .crcp-hero-actions {
    margin-top: 18px;
  }

  .crcp-profile-actions,
  .crcp-inline-form,
  .crcp-action-button,
  .crcp-messages-jump {
    width: 100%;
  }

  .crcp-friend-count,
  .crcp-request-state {
    text-align: center;
  }

  .crcp-grid,
  .crcp-main {
    gap: 16px;
    margin-top: 16px;
  }

  .crcp-card {
    padding: 22px 18px;
  }

  .crcp-stats,
  .crcp-upload-grid,
  .crcp-social-form-grid {
    grid-template-columns: 1fr;
  }

  .crcp-message-layout {
    grid-template-columns: 1fr;
  }

  .crcp-message-dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 15px;
  }

  .crcp-modal-header {
    padding: 14px 16px;
  }

  .crcp-modal-toolbar {
    grid-template-columns: 1fr;
    padding: 10px 14px;
  }

  .crcp-modal-status {
    justify-self: start;
  }

  .crcp-message-modal .crcp-message-layout {
    min-height: min(620px, calc(100vh - 220px));
    overflow-y: auto;
  }

  .crcp-inbox {
    max-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--crcp-line);
  }

  .crcp-chat-messages {
    min-height: 300px;
  }

  .crcp-message-form {
    grid-template-columns: 1fr;
  }

  .crcp-message-form button {
    width: 100%;
  }

  .crcp-request-row,
  .crcp-friend-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .crcp-stat {
    min-width: 0;
  }

  .crcp-edit-form {
    padding: 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crcp-profile *,
  .crcp-profile *::before,
  .crcp-profile *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
