.profile-content {
  padding: 10px 32px 36px;
}

.profile-content[hidden] { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.profile-card {
  width: min(100%, 1050px);
  overflow: hidden;
  border: 1px solid #e2e8ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(26, 46, 89, .08);
}

.profile-cover {
  position: relative;
  display: flex;
  min-height: 245px;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px 24px;
  background: #26374a url("assets/profile-library.svg") center 48% / cover no-repeat;
}

.profile-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 31, 46, .03) 28%, rgba(17, 31, 46, .58) 100%);
}

.profile-cover-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(20, 36, 49, .36);
  color: #fff;
  font: 600 11px/1 Inter, "Helvetica Neue", Arial, sans-serif;
  backdrop-filter: blur(8px);
}

.profile-cover-label i { color: #6be0eb; }

.profile-card-body { padding: 0 34px 32px; }

.profile-identity {
  position: relative;
  display: flex;
  min-height: 126px;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e9edf1;
}

.profile-photo-frame {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  flex: none;
  margin-top: -40px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8f4f6, #bdcce3);
  box-shadow: 0 4px 18px rgba(17, 41, 64, .15);
  place-items: center;
}

.profile-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.profile-identity-copy { min-width: 0; padding-top: 10px; }
.profile-identity-copy h2 { margin: 0; overflow: hidden; color: #203451; font: 700 24px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.45px; text-overflow: ellipsis; }
.profile-identity-copy p { margin: 6px 0 0; color: #7c8998; font: 500 13px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; }

.profile-member-mark {
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 1px solid #bdebf0;
  border-radius: 12px;
  background: #effbfc;
  color: #0c9eb1;
  font-size: 15px;
  place-items: center;
}

.profile-bio { padding-top: 25px; }
.profile-bio-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-eyebrow { color: #10a9bd; font: 700 9px/1 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: 1.1px; }
.profile-bio-heading-row h3 { margin: 7px 0 0; color: #203451; font: 650 17px/1.25 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-edit-button { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #dce6ea; border-radius: 9px; background: #fff; color: #3c5666; font: 600 11px/1 Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; transition: .16s ease; }
.profile-edit-button:hover { border-color: #55c6d5; background: #f2fcfd; color: #087e91; }
.profile-edit-button:focus-visible, .profile-bio-editor button:focus-visible, .profile-bio-editor textarea:focus-visible { outline: 2px solid #16c8df; outline-offset: 2px; }
.profile-bio-text { max-width: 720px; margin: 14px 0 0; color: #667689; font: 400 13px/1.7 Inter, "Helvetica Neue", Arial, sans-serif; white-space: pre-wrap; }
.profile-bio-editor { margin-top: 14px; }
.profile-bio-editor textarea { box-sizing: border-box; display: block; width: 100%; max-width: 720px; min-height: 100px; resize: vertical; padding: 12px 14px; border: 1px solid #dce5e9; border-radius: 10px; background: #fbfdfe; color: #263b50; font: 400 13px/1.6 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-bio-editor textarea:focus-visible { border-color: #45bfd0; }
.profile-bio-editor-footer { display: flex; max-width: 720px; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; color: #95a0ab; font: 500 10px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-bio-editor-footer > div { display: flex; align-items: center; gap: 8px; }
.profile-cancel-button, .profile-save-button { min-height: 34px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; font: 600 11px/1 Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.profile-cancel-button { background: transparent; color: #738293; }
.profile-cancel-button:hover { background: #f0f3f5; }
.profile-save-button { background: #12adc0; color: #fff; box-shadow: 0 3px 8px rgba(18, 173, 192, .19); }
.profile-save-button:hover { background: #0796a9; }

body[data-theme="dark"] .profile-card { border-color: #3c424a; background: #2d3137; box-shadow: 0 12px 34px rgba(0, 0, 0, .17); }
body[data-theme="dark"] .profile-identity { border-color: #41474f; }
body[data-theme="dark"] .profile-photo-frame { border-color: #2d3137; }
body[data-theme="dark"] .profile-identity-copy h2, body[data-theme="dark"] .profile-bio-heading-row h3 { color: #f0f4f7; }
body[data-theme="dark"] .profile-identity-copy p, body[data-theme="dark"] .profile-bio-text { color: #aab4bf; }
body[data-theme="dark"] .profile-member-mark { border-color: #36535b; background: #293e43; color: #69d8e4; }
body[data-theme="dark"] .profile-edit-button { border-color: #49515a; background: #30353b; color: #d2dbe2; }
body[data-theme="dark"] .profile-edit-button:hover { border-color: #4ab9c9; background: #2d3b40; color: #7ce1ec; }
body[data-theme="dark"] .profile-bio-editor textarea { border-color: #4a525c; background: #252a30; color: #e6edf2; }
body[data-theme="dark"] .profile-cancel-button:hover { background: #3a4047; }

@media (max-width: 760px) {
  .profile-content { padding: 8px 18px 30px; }
  .profile-card { border-radius: 15px; }
  .profile-cover { min-height: 190px; padding: 16px; }
  .profile-card-body { padding: 0 20px 24px; }
  .profile-identity { min-height: 105px; gap: 14px; padding-bottom: 20px; }
  .profile-photo-frame { width: 88px; height: 88px; margin-top: -31px; border-width: 4px; }
  .profile-identity-copy h2 { font-size: 20px; }
  .profile-member-mark { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
  .profile-content { padding-right: 12px; padding-left: 12px; }
  .profile-cover { min-height: 160px; }
  .profile-card-body { padding-right: 16px; padding-left: 16px; }
  .profile-identity { gap: 11px; }
  .profile-photo-frame { width: 74px; height: 74px; margin-top: -26px; }
  .profile-identity-copy h2 { font-size: 17px; }
  .profile-identity-copy p { font-size: 11px; }
  .profile-member-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 12px; }
}

/* Profile editing and platform links */
.profile-content { padding-top: 5px; }
.profile-card { margin-inline: auto; }
.profile-primary-edit {
  display: inline-flex;
  min-height: 38px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid rgba(45, 162, 181, .32);
  border-radius: 10px;
  background: linear-gradient(135deg, #13afc2, #1687bb);
  color: #fff;
  box-shadow: 0 5px 14px rgba(12, 142, 167, .18), inset 0 1px 0 rgba(255, 255, 255, .2);
  cursor: pointer;
  font: 650 11px/1 Inter, "Helvetica Neue", Arial, sans-serif;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.profile-primary-edit:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 8px 18px rgba(12, 142, 167, .24), inset 0 1px 0 rgba(255,255,255,.24); }
.profile-primary-edit:focus-visible,.profile-platform-add:focus-visible,.profile-custom-link-action:focus-visible { outline: 2px solid #55c9d9; outline-offset: 2px; }
.profile-platforms {
  box-sizing: border-box;
  width: min(100%, 1050px);
  margin: 17px auto 0;
  padding: 22px;
  border: 1px solid #e2e8ee;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 46, 89, .055);
}
.profile-platforms-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.profile-platforms-heading h2 { margin: 7px 0 0; color: #203451; font: 700 19px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.3px; }
.profile-platforms-heading p { margin: 6px 0 0; color: #778595; font: 400 11px/1.45 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-platforms-count { flex: none; padding: 7px 10px; border: 1px solid #e2e9ed; border-radius: 999px; background: #f7fafb; color: #687987; font: 600 9px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.profile-platform-card {
  --brand-color: #1689e8;
  --brand-text: #fff;
  position: relative;
  box-sizing: border-box;
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 40px minmax(0,1fr) auto 27px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 10px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-color) 16%, #e1e8ed);
  border-radius: 13px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand-color) 5%, #fff), #fff 62%);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.profile-platform-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand-color) 38%, #dce5e9); box-shadow: 0 7px 18px rgba(26,46,89,.07); }
.profile-platform-card.is-connected { border-color: color-mix(in srgb, var(--brand-color) 38%, #dce5e9); }
.profile-platform-card.is-kick { --brand-color: #53fc18; --brand-text: #111; }
.profile-platform-card.is-youtube { --brand-color: #ff0033; }
.profile-platform-card.is-twitch { --brand-color: #9146ff; }
.profile-platform-card.is-tiktok { --brand-color: #121212; }
.profile-platform-card.is-kwai { --brand-color: #f27a24; }
.profile-platform-card.is-custom { --brand-color: #1689e8; }
.profile-platform-icon { display: grid; width: 38px; height: 38px; grid-row: 1 / span 2; border: 1px solid color-mix(in srgb, var(--brand-color) 26%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--brand-color) 11%, transparent); color: var(--brand-color); font-size: 17px; place-items: center; }
.profile-platform-icon img { display: block; width: 66%; height: 66%; object-fit: contain; background: transparent; }
.profile-platform-copy { display: grid; min-width: 0; gap: 4px; grid-column: 2; grid-row: 1; }
.profile-platform-copy strong { overflow: hidden; color: #2d3d4c; font: 650 11px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.profile-platform-copy small { overflow: hidden; color: #84919c; font: 400 9px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.profile-platform-add { display: inline-flex; min-height: 31px; grid-column: 3; grid-row: 1 / span 2; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--brand-color) 20%, transparent); border-radius: 9px; background: var(--brand-color); color: var(--brand-text); cursor: pointer; font: 650 9px/1 Inter, "Helvetica Neue", Arial, sans-serif; white-space: nowrap; box-shadow: 0 3px 8px color-mix(in srgb, var(--brand-color) 19%, transparent); transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.profile-platform-add:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 5px 12px color-mix(in srgb, var(--brand-color) 24%, transparent); }
.profile-platform-add i { font-size: 9px; }
.profile-platform-link { min-width: 0; grid-column: 2; grid-row: 2; overflow: hidden; color: #43869a; font: 550 9px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.profile-platform-link[hidden] { display: none !important; }
.profile-platform-link:hover { text-decoration: underline; }
.profile-custom-links { display: grid; gap: 7px; margin-top: 11px; }
.profile-custom-links[hidden] { display: none; }
.profile-custom-link-row { display: grid; min-width: 0; grid-template-columns: 34px minmax(0,1fr) 30px 30px; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #e4e9ed; border-radius: 11px; background: #fafcfd; }
.profile-custom-link-icon { display: grid; width: 31px; height: 31px; border-radius: 9px; background: #edf6fc; color: #2984c2; place-items: center; font-size: 12px; }
.profile-custom-link-copy { display: grid; min-width: 0; gap: 4px; }
.profile-custom-link-copy strong,.profile-custom-link-copy a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-custom-link-copy strong { color: #334657; font: 650 10px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-custom-link-copy a { color: #44859a; font: 500 9px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; text-decoration: none; }
.profile-custom-link-action { display: grid; width: 28px; height: 28px; border: 1px solid #e2e8ec; border-radius: 8px; background: #fff; color: #637782; cursor: pointer; place-items: center; font-size: 10px; }
.profile-custom-link-action:hover { border-color: #91d1dc; color: #167d91; }
.profile-custom-link-action.is-remove:hover { border-color: #efb7ba; color: #bb4d53; }

.profile-modal-scrim[hidden] { display: none !important; }
.profile-modal-scrim { position: fixed; z-index: 4000; inset: 0; display: grid; box-sizing: border-box; padding: 20px; background: rgba(12, 20, 30, .58); place-items: center; backdrop-filter: blur(7px); animation: profile-scrim-in .16s ease both; }
@keyframes profile-scrim-in { from { opacity: 0; } to { opacity: 1; } }
.profile-dialog { --dialog-accent: #148fce; --dialog-accent-text: #fff; position: relative; box-sizing: border-box; width: min(100%, 460px); max-height: min(90vh, 720px); overflow-y: auto; padding: 29px; border: 1px solid #dce5ea; border-radius: 20px; background: #fff; color: #263746; box-shadow: 0 28px 90px rgba(0, 0, 0, .28); animation: profile-dialog-in .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes profile-dialog-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.profile-dialog-close { position: absolute; top: 14px; right: 14px; display: grid; width: 31px; height: 31px; border: 1px solid #e3e9ed; border-radius: 9px; background: #f7f9fa; color: #687986; cursor: pointer; place-items: center; }
.profile-dialog-close:hover { background: #edf4f6; color: #263746; }
.profile-dialog-mark,.profile-connect-brand { display: grid; width: 48px; height: 48px; margin: 0 0 17px; border: 1px solid rgba(18, 159, 183, .17); border-radius: 15px; background: #eaf8fa; color: #168ba0; font-size: 19px; place-items: center; }
.profile-connect-illustration { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.profile-connect-illustration .profile-connect-brand { margin: 0; }
.profile-connect-link-mark { display: grid; width: 28px; height: 28px; border: 1px dashed #a9c2c9; border-radius: 50%; color: #7c9ca6; place-items: center; font-size: 10px; }
.profile-connect-stream-mark { display: grid; width: 48px; height: 48px; border: 1px solid #dce8eb; border-radius: 15px; background: #f7fbfc; place-items: center; }
.profile-connect-stream-mark img { width: 25px; height: 29px; object-fit: contain; }
.profile-connect-brand img { display: block; width: 31px; height: 31px; object-fit: contain; }
.profile-dialog > .profile-eyebrow { display: block; }
.profile-dialog h2 { margin: 8px 35px 0 0; color: #203451; font: 750 21px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.4px; }
.profile-dialog-copy { margin: 10px 0 0; color: #667686; font: 400 12px/1.6 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-dialog-form { display: grid; gap: 8px; margin-top: 18px; }
.profile-dialog-form[hidden] { display: none; }
.profile-dialog-form label { margin-top: 3px; color: #415563; font: 650 10px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-dialog-form input,.profile-dialog-form textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #dce5e9; border-radius: 10px; outline: 0; background: #fbfdfe; color: #263b50; font: 450 12px/1.45 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-dialog-form textarea { min-height: 98px; resize: vertical; }
.profile-dialog-form input:focus,.profile-dialog-form textarea:focus { border-color: #50bdcc; box-shadow: 0 0 0 3px rgba(38, 168, 185, .11); }
.profile-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.profile-dialog-actions[hidden] { display: none !important; }
.profile-dialog-primary,.profile-dialog-cancel,.profile-dialog-more-button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font: 650 11px/1 Inter, "Helvetica Neue", Arial, sans-serif; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.profile-dialog-primary { background: var(--dialog-accent); color: var(--dialog-accent-text); box-shadow: 0 4px 11px color-mix(in srgb, var(--dialog-accent) 22%, transparent); }
.profile-dialog-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.profile-dialog-cancel,.profile-dialog-more-button { border-color: #e1e7eb; background: #f6f8f9; color: #61717d; }
.profile-dialog-cancel:hover,.profile-dialog-more-button:hover { background: #eef3f5; color: #344a59; }
.profile-dialog-more-button { margin-right: auto; }
.profile-connect-more { margin-top: 14px; padding: 12px 13px; border: 1px solid #dcebef; border-radius: 11px; background: #f2f9fa; color: #536c76; font: 450 10px/1.55 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-connect-error { margin: 0; color: #b5414a; font: 550 10px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-connect-error[hidden] { display: none; }
.profile-modal-scrim.is-kick .profile-dialog { --dialog-accent: #53fc18; --dialog-accent-text: #101510; }
.profile-modal-scrim.is-youtube .profile-dialog { --dialog-accent: #ff0033; --dialog-accent-text: #fff; }
.profile-modal-scrim.is-twitch .profile-dialog { --dialog-accent: #9146ff; --dialog-accent-text: #fff; }
.profile-modal-scrim.is-tiktok .profile-dialog { --dialog-accent: #111; --dialog-accent-text: #fff; }
.profile-modal-scrim.is-kwai .profile-dialog { --dialog-accent: #f27a24; --dialog-accent-text: #fff; }
.profile-connect-brand { background: color-mix(in srgb, var(--dialog-accent) 12%, #fff); border-color: color-mix(in srgb, var(--dialog-accent) 28%, #e1e8ed); color: var(--dialog-accent); }
.profile-modal-scrim.is-kick .profile-connect-brand { color: #2a9c10; }
.profile-modal-open { overflow: hidden; }

body[data-theme="dark"] .profile-platforms { border-color: rgba(255,255,255,0.08); background: #111114; box-shadow: 0 12px 34px rgba(0,0,0,.22); }
body[data-theme="dark"] .profile-platforms-heading h2 { color: #f4f4f5; }
body[data-theme="dark"] .profile-platforms-heading p { color: #a1a1aa; }
body[data-theme="dark"] .profile-platforms-count { border-color: rgba(255,255,255,0.1); background: #18181c; color: #d4d4d8; }
body[data-theme="dark"] .profile-platform-card { border-color: rgba(255,255,255,0.08); background: #18181c; }
body[data-theme="dark"] .profile-platform-card:hover { border-color: color-mix(in srgb, var(--brand-color) 48%, rgba(255,255,255,0.14)); box-shadow: 0 8px 19px rgba(0,0,0,.26); }
body[data-theme="dark"] .profile-platform-icon { background: color-mix(in srgb, var(--brand-color) 13%, #111114); border-color: color-mix(in srgb, var(--brand-color) 32%, transparent); }
body[data-theme="dark"] .profile-platform-copy strong { color: #e4edf1; }
body[data-theme="dark"] .profile-platform-copy small { color: #9aa8b0; }
body[data-theme="dark"] .profile-platform-link,body[data-theme="dark"] .profile-custom-link-copy a { color: #85c6d5; }
body[data-theme="dark"] .profile-custom-link-row { border-color: #414b53; background: #2d3339; }
body[data-theme="dark"] .profile-custom-link-icon { background: #263b47; color: #7fc8e1; }
body[data-theme="dark"] .profile-custom-link-copy strong { color: #e0e8ed; }
body[data-theme="dark"] .profile-custom-link-action { border-color: #465159; background: #333a40; color: #afbdc4; }
body[data-theme="dark"] .profile-custom-link-action:hover { border-color: #528d98; color: #a4e4eb; }
body[data-theme="dark"] .profile-dialog { border-color: #414b53; background: #252b31; color: #e2eaf0; box-shadow: 0 28px 90px rgba(0,0,0,.55); }
body[data-theme="dark"] .profile-dialog-close { border-color: #414b53; background: #30373d; color: #b8c4ca; }
body[data-theme="dark"] .profile-connect-link-mark { border-color: #526a72; color: #9bb8c0; }
body[data-theme="dark"] .profile-connect-stream-mark { border-color: #3e4d54; background: #31383e; }
body[data-theme="dark"] .profile-dialog h2 { color: #f0f5f7; }
body[data-theme="dark"] .profile-dialog-copy { color: #a8b5bd; }
body[data-theme="dark"] .profile-dialog-form label { color: #c5d0d5; }
body[data-theme="dark"] .profile-dialog-form input,body[data-theme="dark"] .profile-dialog-form textarea { border-color: #46525a; background: #1e2429; color: #e8eff3; }
body[data-theme="dark"] .profile-dialog-cancel,body[data-theme="dark"] .profile-dialog-more-button { border-color: #46515a; background: #30373d; color: #c2cdd3; }
body[data-theme="dark"] .profile-dialog-cancel:hover,body[data-theme="dark"] .profile-dialog-more-button:hover { background: #39434a; color: #f0f6f8; }
body[data-theme="dark"] .profile-connect-more { border-color: #3c535c; background: #29383d; color: #c1d4d9; }
body[data-theme="dark"] .profile-primary-edit { border-color: rgba(75, 199, 212, .35); background: linear-gradient(135deg, #13899a, #16698e); }

@media (max-width: 760px) {
  .profile-content { padding-top: 5px; }
  .profile-platforms { margin-top: 13px; padding: 17px; border-radius: 15px; }
  .profile-platform-grid { gap: 8px; }
  .profile-platform-card { min-height: 66px; grid-template-columns: 34px minmax(0,1fr) auto 24px; gap: 1px 7px; padding: 9px; }
  .profile-platform-icon { width: 33px; height: 33px; border-radius: 10px; font-size: 14px; }
  .profile-platform-add { min-height: 29px; gap: 5px; padding-inline: 8px; font-size: 8px; }
  .profile-dialog { padding: 25px 21px 21px; border-radius: 17px; }
}
@media (max-width: 560px) {
  .profile-identity { flex-wrap: wrap; }
  .profile-primary-edit { min-height: 34px; margin-left: auto; padding-inline: 11px; font-size: 10px; }
  .profile-platforms { padding: 15px 12px; }
  .profile-platforms-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .profile-platform-grid { grid-template-columns: minmax(0,1fr); }
  .profile-modal-scrim { padding: 12px; }
  .profile-dialog { padding: 23px 17px 17px; }
  .profile-dialog-actions { flex-wrap: wrap; }
  .profile-dialog-primary,.profile-dialog-cancel { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-modal-scrim,.profile-dialog,.profile-platform-card,.profile-platform-add,.profile-primary-edit { animation: none !important; transition: none !important; }
}

/* Account visibility and edit/delete actions */
.profile-platform-card { grid-template-columns: 40px minmax(0,1fr) auto; }
.profile-platform-visibility { min-width: 0; grid-column: 2; grid-row: 2; overflow: hidden; color: #8b6e33; font: 600 9px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.profile-platform-visibility[hidden],.profile-custom-link-visibility[hidden] { display: none !important; }
.profile-custom-link-row { grid-template-columns: 34px minmax(0,1fr) auto; }
.profile-custom-link-copy small { color: #8b6e33; font: 600 9px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-custom-link-action { gap: 7px; width: auto; min-width: 72px; padding: 0 9px; font: 650 9px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-connect-form-actions .profile-dialog-danger { margin-right: auto; }
.profile-dialog-danger { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid #f0c8cb; border-radius: 10px; background: #fff5f5; color: #b43f49; cursor: pointer; font: 650 11px/1 Inter, "Helvetica Neue", Arial, sans-serif; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.profile-dialog-danger:hover { transform: translateY(-1px); border-color: #e7a3a9; background: #ffe9ea; }
.profile-dialog-danger[hidden] { display: none !important; }
.profile-dialog-form select { box-sizing: border-box; width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #dce5e9; border-radius: 10px; outline: 0; background: #fbfdfe; color: #263b50; font: 500 12px/1.2 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-dialog-form select:focus-visible { border-color: #50bdcc; box-shadow: 0 0 0 3px rgba(38,168,185,.11); }
.profile-visibility-hint { margin-top: -4px; color: #83909a; font: 450 9px/1.4 Inter, "Helvetica Neue", Arial, sans-serif; }
.profile-delete-scrim { z-index: 4010; }
.profile-delete-mark { display: grid; width: 45px; height: 45px; margin-bottom: 17px; border: 1px solid #f0d2d4; border-radius: 14px; background: #fff2f3; color: #c64d57; place-items: center; font-size: 16px; }
.profile-delete-dialog .profile-dialog-actions { justify-content: flex-end; }
body[data-theme="dark"] .profile-platform-visibility,body[data-theme="dark"] .profile-custom-link-copy small { color: #ddbf79; }
body[data-theme="dark"] .profile-dialog-form select { border-color: #46525a; background: #1e2429; color: #e8eff3; }
body[data-theme="dark"] .profile-visibility-hint { color: #a1adb5; }
body[data-theme="dark"] .profile-dialog-danger { border-color: #654349; background: #3a2b2e; color: #ffb7bc; }
body[data-theme="dark"] .profile-dialog-danger:hover { border-color: #95545c; background: #4b3034; }
body[data-theme="dark"] .profile-delete-mark { border-color: #634248; background: #3a2b30; color: #ffadb5; }
@media (max-width: 760px) {
  .profile-platform-card { grid-template-columns: 34px minmax(0,1fr) auto; }
  .profile-dialog-danger { min-height: 38px; }
}
.profile-custom-link-icon { color: var(--custom-brand, #3d8eb7); background: color-mix(in srgb, var(--custom-brand, #3d8eb7) 13%, #edf6fc); overflow: hidden; }
.profile-custom-link-icon img { width: 19px; height: 19px; object-fit: contain; border-radius: 4px; }
body[data-theme="dark"] .profile-custom-link-icon { background: color-mix(in srgb, var(--custom-brand, #3d8eb7) 22%, #26343d); }
.chat-profile-accounts { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid #dfe7eb; border-radius: 14px; background: #f8fbfc; }
.chat-profile-accounts-heading { display: flex; align-items: center; justify-content: space-between; color: #344957; font-size: 13px; }
.chat-profile-accounts-heading span { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: #e7f2f5; color: #438496; text-align: center; font-size: 11px; }
.chat-profile-account-edit { display: grid; gap: 6px; padding: 9px; border: 1px solid #e3eaed; border-radius: 11px; background: #fff; }
.chat-profile-account-edit label { color: #526975; font-size: 11px; font-weight: 650; }
.chat-profile-account-edit input,.chat-profile-account-edit select { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #d9e2e6; border-radius: 8px; background: #fff; color: #283943; font: inherit; font-size: 12px; }
.chat-profile-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chat-profile-account-actions button { min-height: 31px; padding: 6px 9px; border: 0; border-radius: 8px; background: #16899d; color: white; cursor: pointer; font: 650 11px/1.2 Inter, Arial, sans-serif; }
.chat-profile-account-actions button.is-remove { background: #f0eeee; color: #88474a; }
.chat-profile-account-actions select { width: auto; flex: 1; }
.chat-profile-accounts-empty { margin: 0; color: #71838c; font-size: 12px; }
body[data-theme="dark"] .chat-profile-accounts { border-color: #414b52; background: #292f34; }
body[data-theme="dark"] .chat-profile-accounts-heading { color: #e1e9ec; }
body[data-theme="dark"] .chat-profile-account-edit { border-color: #414a50; background: #30363b; }
body[data-theme="dark"] .chat-profile-account-edit label { color: #bbc9ce; }
body[data-theme="dark"] .chat-profile-account-edit input,body[data-theme="dark"] .chat-profile-account-edit select { border-color: #4b575e; background: #272d32; color: #e2e9ed; }
body[data-theme="dark"] .chat-profile-account-actions button.is-remove { background: #463638; color: #f2c9ca; }
body[data-theme="dark"] .chat-profile-accounts-empty { color: #a3b2b8; }
