@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800;900&display=swap");

* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --social-bg: #050b14;
  --social-panel: rgba(10, 21, 36, 0.82);
  --social-panel-strong: rgba(12, 26, 45, 0.96);
  --social-border: rgba(126, 200, 255, 0.16);
  --social-border-hot: rgba(84, 190, 255, 0.42);
  --social-text: #edf7ff;
  --social-muted: #94abc0;
  --social-blue: #42a9ff;
  --social-cyan: #55e1e8;
  --social-green: #65e0ab;
  --social-danger: #ff8197;
  --social-shadow: 0 28px 80px rgba(0, 5, 16, 0.5);
}

html[data-theme="light"] {
  color-scheme: light;
  --social-bg: #edf6fd;
  --social-panel: rgba(255, 255, 255, 0.86);
  --social-panel-strong: rgba(255, 255, 255, 0.98);
  --social-border: rgba(32, 113, 170, 0.17);
  --social-border-hot: rgba(21, 126, 202, 0.38);
  --social-text: #10253a;
  --social-muted: #526b80;
  --social-blue: #147ed0;
  --social-cyan: #079ca7;
  --social-green: #18885d;
  --social-danger: #c93655;
  --social-shadow: 0 24px 64px rgba(38, 90, 125, 0.16);
}

html, body { min-height: 100%; width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Heebo", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--social-text);
  background: var(--social-bg);
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(85, 225, 232, 0.82);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.social-abyss {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(25, 132, 233, 0.23), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(32, 209, 223, 0.13), transparent 28%),
    radial-gradient(circle at 50% 115%, rgba(40, 92, 176, 0.24), transparent 45%),
    linear-gradient(155deg, #050b14 0%, #071524 48%, #050a12 100%);
}
html[data-theme="light"] .social-abyss { background: linear-gradient(155deg, #eef7ff, #f8fcff 52%, #eaf4fc); }
.social-abyss span { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .65; }
.social-abyss span:nth-child(1) { width: 34vw; height: 34vw; top: -20vw; left: 32vw; border: 1px solid rgba(82, 190, 255, .16); box-shadow: 0 0 120px rgba(47, 155, 255, .12); }
.social-abyss span:nth-child(2) { width: 18vw; height: 18vw; right: -8vw; top: 48%; background: rgba(49, 185, 211, .05); }
.social-abyss span:nth-child(3) { width: 24vw; height: 24vw; left: -14vw; bottom: -10vw; background: rgba(24, 94, 189, .08); }

.social-shell { position: relative; z-index: 1; width: min(1500px, calc(100% - 28px)); margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom)); }
.social-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border: 1px solid var(--social-border);
  border-radius: 22px;
  background: rgba(6, 15, 27, .72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0, 8, 22, .24);
}
html[data-theme="light"] .social-topbar { background: rgba(255,255,255,.76); }
.social-brand { color: transparent; background: linear-gradient(95deg, #fff, #88cbff 50%, #5be1df); background-clip: text; font-size: 25px; font-weight: 900; letter-spacing: -.04em; text-decoration: none; justify-self: start; }
html[data-theme="light"] .social-brand { background-image: linear-gradient(95deg, #173553, #147ed0, #087c88); }
.social-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(127, 200, 255, .07); }
.social-tab { position: relative; min-height: 42px; padding: 8px 18px; border: 0; border-radius: 12px; color: var(--social-muted); background: transparent; cursor: pointer; font-weight: 800; transition: color .2s ease, background .2s ease, transform .2s ease; }
.social-tab:hover { color: var(--social-text); }
.social-tab.is-active { color: #fff; background: linear-gradient(135deg, rgba(36, 135, 226, .78), rgba(31, 175, 200, .62)); box-shadow: 0 8px 25px rgba(22, 126, 209, .22); }
.unread-badge { display: inline-grid; place-items: center; min-width: 19px; min-height: 19px; padding: 0 5px; margin-inline-start: 4px; border-radius: 999px; color: #062031; background: #76ecf0; font-size: 11px; }
.social-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.back-link, .icon-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--social-border); border-radius: 12px; color: var(--social-text); background: rgba(127, 200, 255, .05); text-decoration: none; font-weight: 800; cursor: pointer; }
.back-link { padding: 7px 13px; }
.icon-button { min-width: 40px; padding: 7px; }
.back-link:hover, .icon-button:hover { border-color: var(--social-border-hot); background: rgba(68, 169, 255, .1); }

.identity-gate { min-height: calc(100vh - 125px); display: grid; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); align-items: center; gap: clamp(30px, 8vw, 100px); max-width: 980px; margin: 0 auto; padding: 60px 28px; }
.identity-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(92, 194, 255, .22); border-radius: 50%; background: radial-gradient(circle, rgba(62, 170, 255, .25), rgba(15, 61, 112, .1) 52%, transparent 53%); box-shadow: inset 0 0 80px rgba(43, 175, 255, .1), 0 0 80px rgba(34, 126, 217, .12); }
.identity-art::before, .identity-art::after { content: ""; position: absolute; inset: 10%; border: 1px solid rgba(82, 211, 230, .24); border-radius: 42% 58% 54% 46%; transform: rotate(18deg); }
.identity-art::after { inset: 24%; transform: rotate(-24deg); }
.identity-art span { font-size: clamp(72px, 11vw, 150px); font-weight: 900; color: #c8eeff; text-shadow: 0 0 34px rgba(70, 187, 255, .5); }
.identity-gate h1, .view-hero h1 { margin: 7px 0 10px; font-size: clamp(34px, 5vw, 62px); line-height: .98; letter-spacing: -.045em; }
.identity-gate p, .view-hero p { color: var(--social-muted); line-height: 1.65; }
.eyebrow { color: var(--social-cyan); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.identity-form { display: grid; gap: 11px; margin-top: 26px; }
.identity-form > label:not(.privacy-toggle), .share-form > label { font-weight: 800; }
.username-field { display: flex; align-items: center; min-height: 54px; padding: 0 15px; border: 1px solid var(--social-border); border-radius: 15px; background: rgba(2, 9, 17, .46); }
html[data-theme="light"] .username-field { background: rgba(255,255,255,.8); }
.username-field span { color: var(--social-cyan); font-size: 20px; font-weight: 900; }
.username-field input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--social-text); background: transparent; font-size: 18px; }
.identity-form small { color: var(--social-muted); }
.privacy-toggle { display: flex; align-items: center; gap: 10px; margin: 8px 0; color: var(--social-muted); }
.primary-button, .secondary-button { min-height: 48px; padding: 10px 18px; border-radius: 14px; font-weight: 900; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.primary-button { border: 1px solid rgba(99, 218, 236, .42); color: #fff; background: linear-gradient(135deg, #1f7fd0, #169eb0); box-shadow: 0 14px 34px rgba(18, 126, 196, .25); }
.secondary-button { border: 1px solid var(--social-border-hot); color: var(--social-text); background: rgba(52, 155, 225, .09); }
.primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled) { transform: translateY(-2px); }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: wait; }
.form-error { min-height: 1.4em; margin: 0; color: var(--social-danger); font-weight: 700; }

.social-app { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: calc(100vh - 112px); margin-top: 14px; border: 1px solid var(--social-border); border-radius: 26px; overflow: hidden; background: rgba(5, 13, 24, .52); box-shadow: var(--social-shadow); backdrop-filter: blur(20px); }
html[data-theme="light"] .social-app { background: rgba(255,255,255,.42); }
.conversation-rail { min-width: 0; padding: 20px 14px; border-inline-end: 1px solid var(--social-border); background: rgba(5, 14, 26, .58); }
html[data-theme="light"] .conversation-rail { background: rgba(240,248,255,.7); }
.rail-heading, .section-heading, .chat-header, .preview-sticky-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rail-heading h2, .section-heading h2 { margin: 3px 0 0; }
.conversation-list { display: grid; gap: 7px; margin-top: 18px; }
.conversation-card { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid transparent; border-radius: 15px; color: var(--social-text); background: transparent; text-align: start; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.conversation-card:hover, .conversation-card.is-active { background: rgba(54, 151, 224, .1); border-color: var(--social-border); transform: translateX(2px); }
[dir="rtl"] .conversation-card:hover, [dir="rtl"] .conversation-card.is-active { transform: translateX(-2px); }
.conversation-copy { min-width: 0; }
.conversation-copy strong, .conversation-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy span { color: var(--social-muted); font-size: 12px; }
.conversation-meta { display: grid; justify-items: end; gap: 5px; color: var(--social-muted); font-size: 10px; }
.conversation-meta b { min-width: 18px; min-height: 18px; display: grid; place-items: center; border-radius: 50%; color: #062031; background: var(--social-cyan); font-size: 10px; }
.avatar { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid rgba(108, 215, 247, .34); border-radius: 50%; color: #effcff; background: linear-gradient(145deg, rgba(39, 128, 212, .8), rgba(30, 179, 190, .55)); box-shadow: 0 0 0 4px rgba(72, 179, 228, .06), 0 8px 24px rgba(24, 102, 176, .2); font-weight: 900; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar-button { padding: 0; cursor: pointer; }
.avatar-large { width: 52px; height: 52px; }
.rail-empty { padding: 40px 18px; text-align: center; color: var(--social-muted); }
.rail-empty span { color: var(--social-cyan); font-size: 28px; }
.skeleton-list { display: grid; gap: 10px; margin-top: 20px; }
.skeleton-list span { height: 66px; border-radius: 15px; background: linear-gradient(90deg, rgba(120,180,220,.04), rgba(120,180,220,.14), rgba(120,180,220,.04)); background-size: 220% 100%; animation: shimmer 1.5s linear infinite; }

.friends-view { min-width: 0; padding: clamp(22px, 4vw, 52px); overflow: auto; }
.view-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.view-hero h1 { margin-bottom: 4px; }
.my-identity-card { min-width: 190px; display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--social-border); border-radius: 16px; background: rgba(111, 194, 245, .05); }
.my-identity-card strong, .my-identity-card span { display: block; }
.my-identity-card span { color: var(--social-muted); font-size: 12px; }
.user-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; max-width: 760px; margin: 28px 0 8px; padding: 7px 7px 7px 16px; border: 1px solid var(--social-border); border-radius: 17px; background: rgba(2, 10, 18, .44); }
[dir="rtl"] .user-search { padding: 7px 16px 7px 7px; }
html[data-theme="light"] .user-search { background: rgba(255,255,255,.74); }
.user-search input { min-width: 0; border: 0; outline: 0; color: var(--social-text); background: transparent; font-size: 17px; }
.user-search button { min-height: 42px; padding: 8px 18px; border: 0; border-radius: 12px; color: #fff; background: #187fc8; font-weight: 900; cursor: pointer; }
.section-status { min-height: 24px; color: var(--social-muted); }
.social-section { margin-top: 22px; padding: 20px; border: 1px solid var(--social-border); border-radius: 20px; background: var(--social-panel); box-shadow: 0 16px 40px rgba(0, 6, 18, .12); }
.requests-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.request-panel { min-width: 0; }
.count-pill { min-width: 26px; min-height: 26px; display: grid; place-items: center; padding: 0 7px; border-radius: 999px; color: var(--social-cyan); background: rgba(70, 197, 218, .1); font-size: 12px; font-weight: 900; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.people-list { display: grid; gap: 9px; margin-top: 12px; }
.person-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--social-border); border-radius: 16px; background: rgba(78, 155, 211, .04); animation: card-in .3s ease both; }
.person-main { min-width: 0; }
.person-main strong, .person-main > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-main > span { color: var(--social-muted); font-size: 13px; }
.profile-link { display: block; max-width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: start; cursor: pointer; }
.profile-link strong, .profile-link span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link span { color: var(--social-muted); font-size: 13px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.profile-badge { display: inline-flex; align-items: center; min-height: 21px; padding: 2px 7px; border: 1px solid rgba(154, 190, 212, .3); border-radius: 999px; color: #d7e9f4; background: rgba(106, 145, 170, .14); font-size: 10px; font-weight: 900; letter-spacing: .02em; }
.profile-badge[data-badge="pro"] { border-color: rgba(241, 190, 98, .42); color: #ffe3a2; background: rgba(200, 145, 37, .14); }
.profile-badge[data-badge="coach"] { border-color: rgba(91, 224, 177, .42); color: #b5ffdf; background: rgba(39, 168, 121, .14); }
.profile-badge[data-badge="developer"] { border-color: rgba(170, 139, 255, .42); color: #d9cfff; background: rgba(111, 77, 205, .17); }
.person-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.person-actions button { min-height: 36px; padding: 6px 11px; border: 1px solid var(--social-border); border-radius: 10px; color: var(--social-text); background: rgba(68, 169, 255, .06); font-weight: 800; cursor: pointer; }
.person-actions button[data-action="accept"], .person-actions button[data-action="message"], .person-actions button[data-action="request"] { border-color: rgba(83, 218, 187, .28); background: rgba(61, 190, 150, .1); }
.person-actions button[data-action="block"], .person-actions button[data-action="remove"] { color: #ffc3cd; }
.empty-state { padding: 46px 18px 34px; text-align: center; }
.empty-state h3 { margin: 18px 0 5px; }
.empty-state p { margin: 0; color: var(--social-muted); }
.empty-orbit { position: relative; width: 72px; height: 72px; margin: 0 auto; border: 1px solid rgba(77, 194, 235, .22); border-radius: 50%; }
.empty-orbit::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(77, 194, 235, .32); border-radius: 50%; }
.empty-orbit span { position: absolute; width: 10px; height: 10px; top: 4px; left: 29px; border-radius: 50%; background: var(--social-cyan); box-shadow: 0 0 18px var(--social-cyan); }
.blocked-section summary { cursor: pointer; color: var(--social-muted); font-weight: 800; }

.messages-view { position: relative; min-width: 0; min-height: 0; height: calc(100vh - 112px); background: radial-gradient(circle at 70% 12%, rgba(31, 141, 213, .1), transparent 34%); }
.chat-empty { height: 100%; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; }
.chat-empty h1 { margin: 20px 0 4px; }
.chat-empty p { max-width: 480px; color: var(--social-muted); }
.chat-empty-art { position: relative; width: 150px; height: 150px; display: grid; place-items: center; border: 1px solid rgba(83, 203, 236, .16); border-radius: 50%; box-shadow: inset 0 0 50px rgba(52, 164, 220, .08); }
.chat-empty-art span { color: var(--social-cyan); font-size: 44px; text-shadow: 0 0 24px rgba(81, 218, 232, .62); }
.chat-empty-art i { position: absolute; width: 16px; height: 16px; border: 1px solid rgba(101, 206, 240, .32); border-radius: 50%; }
.chat-empty-art i:nth-of-type(1) { top: 12px; left: 25px; }.chat-empty-art i:nth-of-type(2) { right: 12px; top: 65px; }.chat-empty-art i:nth-of-type(3) { left: 42px; bottom: 7px; }
.chat-panel { height: 100%; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.chat-header { position: sticky; top: 0; z-index: 4; min-height: 80px; padding: 12px 20px; border-bottom: 1px solid var(--social-border); background: rgba(7, 17, 30, .82); backdrop-filter: blur(20px); }
html[data-theme="light"] .chat-header { background: rgba(250,253,255,.88); }
.chat-person { flex: 1; min-width: 0; }
.chat-person h1, .chat-person p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-person h1 { font-size: 19px; }.chat-person p { color: var(--social-muted); font-size: 13px; }
.message-scroller { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px clamp(14px, 4vw, 56px); scroll-behavior: smooth; }
.load-older { display: block; margin: 0 auto 18px; padding: 7px 13px; border: 1px solid var(--social-border); border-radius: 999px; color: var(--social-muted); background: rgba(45, 129, 192, .06); cursor: pointer; }
.message-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.message-row { max-width: min(76%, 680px); display: grid; justify-items: start; gap: 4px; animation: message-in .22s ease both; }
.message-row.is-sent { margin-inline-start: auto; justify-items: end; }
.message-bubble { position: relative; max-width: 100%; padding: 10px 13px; border: 1px solid rgba(116, 194, 247, .14); border-radius: 7px 17px 17px 17px; color: var(--social-text); background: rgba(18, 36, 58, .9); box-shadow: 0 8px 28px rgba(0, 6, 17, .16); white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.is-sent .message-bubble { border-radius: 17px 7px 17px 17px; border-color: rgba(76, 194, 224, .2); background: linear-gradient(135deg, rgba(25, 105, 179, .95), rgba(17, 136, 155, .9)); }
html[data-theme="light"] .message-bubble { background: #f4f9fd; } html[data-theme="light"] .is-sent .message-bubble { color: #fff; }
.message-meta { display: flex; gap: 7px; padding: 0 5px; color: var(--social-muted); font-size: 10px; }
.message-delete { border: 0; color: inherit; background: transparent; text-decoration: underline; cursor: pointer; }
.message-failed { display: flex; gap: 8px; align-items: center; color: var(--social-danger); font-size: 12px; }
.message-failed button { border: 0; color: inherit; background: transparent; text-decoration: underline; cursor: pointer; }
.message-skeletons { display: grid; gap: 10px; }
.message-skeletons span { width: 45%; height: 48px; border-radius: 16px; background: rgba(108,185,232,.08); animation: shimmer 1.5s linear infinite; }.message-skeletons span:nth-child(even) { margin-inline-start: auto; width: 56%; }
.typing-indicator { min-height: 25px; margin: 0; padding: 0 22px 4px; color: var(--social-muted); font-size: 12px; }
.typing-indicator span { display: inline-flex; gap: 3px; margin-inline-start: 4px; vertical-align: middle; }
.typing-indicator i { width: 4px; height: 4px; border-radius: 50%; background: var(--social-cyan); animation: typing-dot 1.2s ease-in-out 999; }
.typing-indicator i:nth-child(2) { animation-delay: .15s; }.typing-indicator i:nth-child(3) { animation-delay: .3s; }

.artifact-card { width: min(100%, 520px); overflow: hidden; border: 1px solid rgba(94, 208, 236, .25); border-radius: 20px; background: linear-gradient(145deg, rgba(15, 40, 68, .96), rgba(9, 27, 47, .96)); box-shadow: 0 18px 48px rgba(0, 8, 24, .28); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
html[data-theme="light"] .artifact-card { background: linear-gradient(145deg, #f9fcff, #edf7ff); }
.artifact-card:hover, .artifact-card:focus-within { transform: translateY(-2px); border-color: rgba(96, 224, 236, .48); box-shadow: 0 22px 54px rgba(4, 44, 83, .28); }
.artifact-visual { min-height: 90px; display: flex; align-items: flex-end; padding: 18px; background: radial-gradient(circle at 80% 15%, rgba(81, 221, 232, .24), transparent 35%), linear-gradient(130deg, rgba(31, 116, 201, .42), rgba(12, 45, 78, .24)); }
.artifact-visual span { color: #a9f7ff; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.artifact-body { padding: 16px; }.artifact-body h3 { margin: 0 0 4px; font-size: 20px; }.artifact-body p { margin: 0; color: var(--social-muted); }
.artifact-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.artifact-actions button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--social-border); border-radius: 11px; color: var(--social-text); background: rgba(67, 172, 232, .08); font-weight: 800; cursor: pointer; }
.artifact-actions .copy-action { color: #d9fff1; border-color: rgba(91, 225, 171, .3); background: rgba(57, 175, 132, .13); }

.composer { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: end; gap: 9px; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--social-border); background: rgba(7, 16, 28, .9); backdrop-filter: blur(22px); }
html[data-theme="light"] .composer { background: rgba(250,253,255,.92); }
.composer textarea { width: 100%; max-height: 130px; min-height: 46px; resize: none; padding: 12px 14px; border: 1px solid var(--social-border); border-radius: 15px; outline: 0; color: var(--social-text); background: rgba(91, 168, 222, .06); line-height: 1.4; unicode-bidi: plaintext; }
.composer textarea:focus { border-color: var(--social-border-hot); box-shadow: 0 0 0 3px rgba(60, 171, 229, .09); }
.composer-tool, .send-button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; cursor: pointer; }
.composer-tool { border: 1px solid var(--social-border); color: var(--social-cyan); background: rgba(66, 161, 218, .08); font-size: 25px; }
.send-button { border: 1px solid rgba(89, 223, 229, .4); color: #fff; background: linear-gradient(135deg, #238bd9, #1aa5ac); box-shadow: 0 10px 28px rgba(22, 128, 187, .28); }
.send-button.is-sending span { animation: send-pulse .5s ease; }
.message-counter { align-self: center; color: var(--social-muted); font-size: 10px; }
.share-menu { position: absolute; z-index: 8; left: 16px; bottom: calc(100% + 8px); width: 220px; display: grid; gap: 4px; padding: 8px; border: 1px solid var(--social-border); border-radius: 15px; background: var(--social-panel-strong); box-shadow: var(--social-shadow); }
[dir="rtl"] .share-menu { left: auto; right: 16px; }
.share-menu button { padding: 9px 11px; border: 0; border-radius: 9px; color: var(--social-text); background: transparent; text-align: start; cursor: pointer; }.share-menu button:hover { background: rgba(59, 166, 228, .1); }

.voice-record-button { font-size: 18px; }
.voice-record-button:disabled { cursor: not-allowed; opacity: .45; }
.voice-composer { grid-column: 1 / -1; min-width: 0; padding: 10px; border: 1px solid var(--social-border); border-radius: 16px; background: rgba(61, 149, 207, .07); }
.voice-recording-state, .voice-preview-state { min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.voice-recording-state[hidden], .voice-preview-state[hidden] { display: none; }
.recording-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #ff5d79; box-shadow: 0 0 0 5px rgba(255, 93, 121, .12); }
.voice-recording-state time { min-width: 38px; color: var(--social-muted); font-variant-numeric: tabular-nums; }
.voice-recording-state button, .voice-preview-state > button { min-height: 38px; padding: 7px 11px; border: 1px solid var(--social-border); border-radius: 11px; color: var(--social-text); background: rgba(60, 157, 218, .08); font-weight: 800; cursor: pointer; }
.voice-preview-state audio { flex: 1 1 260px; min-width: 180px; max-width: 100%; height: 40px; }
.voice-preview-state .primary-button { color: #fff; background: linear-gradient(135deg, #238bd9, #1aa5ac); }
.voice-upload-status { flex-basis: 100%; margin: 0; color: var(--social-muted); font-size: 12px; }
.voice-message { min-width: min(310px, 70vw); display: grid; grid-template-columns: auto minmax(90px, 1fr); align-items: center; gap: 8px 10px; white-space: normal; }
.voice-play-button { width: 36px; height: 36px; grid-row: 1 / 3; display: grid; place-items: center; border: 1px solid rgba(164, 230, 244, .3); border-radius: 50%; color: inherit; background: rgba(255, 255, 255, .08); cursor: pointer; }
.voice-play-button span { font-size: 12px; }
.voice-seek { width: 100%; min-width: 0; accent-color: var(--social-cyan); cursor: pointer; }
.voice-time { color: rgba(220, 239, 248, .75); font-size: 10px; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .voice-time { color: var(--social-muted); }
.voice-unavailable { color: var(--social-muted); }

.social-dialog { width: min(650px, calc(100% - 24px)); max-height: calc(100vh - 30px); overflow: auto; padding: 24px; border: 1px solid var(--social-border-hot); border-radius: 24px; color: var(--social-text); background: var(--social-panel-strong); box-shadow: 0 36px 120px rgba(0, 5, 18, .7); }
.profile-preview-head { display: flex; align-items: center; gap: 14px; }.profile-preview-head h2 { margin: 4px 0; }.profile-preview-head p { margin: 0; color: var(--social-muted); }.profile-preview-bio { min-height: 1.5em; margin: 20px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }.profile-preview-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.social-dialog::backdrop { background: rgba(1, 7, 14, .76); backdrop-filter: blur(7px); }
.dialog-close-row { display: flex; justify-content: flex-end; }.dialog-copy h2 { margin: 5px 0; font-size: 30px; }.dialog-copy p { color: var(--social-muted); }
.share-form { display: grid; gap: 10px; margin-top: 22px; }.share-form select { min-height: 48px; padding: 8px 12px; border: 1px solid var(--social-border); border-radius: 13px; color: var(--social-text); background: rgba(19, 40, 62, .9); }
html[data-theme="light"] .share-form select { background: #fff; }
.share-form fieldset { display: grid; gap: 8px; margin: 8px 0; padding: 15px; border: 1px solid var(--social-border); border-radius: 14px; }.share-form fieldset label { display: flex; align-items: center; gap: 9px; }
.share-summary { min-height: 64px; padding: 14px; border-radius: 13px; color: var(--social-muted); background: rgba(63, 156, 213, .07); }

.preview-dialog { width: min(980px, calc(100% - 24px)); padding: 0; }
.preview-sticky-head { position: sticky; top: 0; z-index: 3; padding: 18px 22px; border-bottom: 1px solid var(--social-border); background: var(--social-panel-strong); }.preview-sticky-head h2, .preview-sticky-head p { margin: 0; }.preview-sticky-head p { color: var(--social-muted); }
.preview-content { padding: 22px; }.preview-sticky-actions { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--social-border); background: var(--social-panel-strong); }.preview-sticky-actions p { flex: 1; margin: 0; color: var(--social-green); }
.preview-warnings { margin: 18px 22px 0; padding: 13px 15px; border: 1px solid rgba(255, 186, 86, .3); border-radius: 13px; color: #ffd9a0; background: rgba(180, 113, 21, .09); }
.preview-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 22px; }.preview-summary-grid article { padding: 14px; border: 1px solid var(--social-border); border-radius: 14px; background: rgba(70, 158, 214, .05); }.preview-summary-grid strong, .preview-summary-grid span { display: block; }.preview-summary-grid span { color: var(--social-muted); font-size: 12px; }
.preview-session, .preview-meal, .preview-record { margin-top: 12px; padding: 16px; border: 1px solid var(--social-border); border-radius: 16px; background: rgba(58, 142, 200, .05); }.preview-session h3, .preview-meal h3 { margin-top: 0; }
.preview-session-nav{position:sticky;top:87px;z-index:2;display:flex;gap:8px;overflow-x:auto;padding:10px 0;background:var(--social-panel-strong)}.preview-session-nav a{flex:0 0 auto;padding:8px 12px;border:1px solid var(--social-border);border-radius:999px;color:var(--social-text);text-decoration:none;font-weight:800}.preview-session{scroll-margin-top:145px}
.exercise-preview-row, .food-preview-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(117, 191, 232, .09); }.exercise-preview-row img, .food-preview-row img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: rgba(80,150,200,.08); }.exercise-preview-row span, .food-preview-row span { color: var(--social-muted); font-size: 12px; }
.volume-bars { display: grid; gap: 7px; margin-top: 14px; }.volume-bar { display: grid; grid-template-columns: minmax(80px, .3fr) minmax(120px, 1fr) 36px; align-items: center; gap: 10px; font-size: 12px; }.volume-bar i { height: 7px; border-radius: 999px; background: rgba(81,185,230,.1); overflow: hidden; }.volume-bar i::after { content: ""; display: block; width: var(--bar); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--social-blue), var(--social-cyan)); }
.graph-preview { padding: 16px; border: 1px solid var(--social-border); border-radius: 17px; background: rgba(36, 104, 164, .08); }.graph-preview svg { display: block; width: 100%; min-height: 260px; }.graph-line { fill: none; stroke: var(--social-cyan); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 7px rgba(71, 214, 224, .38)); }.graph-grid { stroke: rgba(121,187,225,.12); }.graph-summary { color: var(--social-muted); }
.toast-region { position: fixed; z-index: 30; right: 18px; bottom: 18px; display: grid; gap: 8px; }.toast { max-width: 340px; padding: 12px 15px; border: 1px solid var(--social-border-hot); border-radius: 13px; color: var(--social-text); background: var(--social-panel-strong); box-shadow: var(--social-shadow); animation: toast-in .25s ease both; }.toast.is-error { border-color: rgba(255, 112, 137, .4); }
.mobile-only { display: none; }

@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -40% 0; } }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes message-in { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes send-pulse { 50% { transform: translate(4px, -4px) scale(.84); opacity: .55; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .social-shell { width: min(100% - 16px, 1500px); padding-top: 8px; }
  .social-topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-inline: 10px; }.social-tabs { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; }.social-tab { flex: 1; }.back-link { display: inline-flex; min-width: 0; max-width: 42vw; padding-inline: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .identity-gate { grid-template-columns: 1fr; }.identity-art { width: min(220px, 58vw); margin: 0 auto; }
  .social-app { grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 154px); }.messages-view { height: calc(100vh - 154px); }
  .requests-grid { grid-template-columns: 1fr; }.view-hero { align-items: flex-start; flex-direction: column; }.my-identity-card { width: 100%; }
}

@media (max-width: 680px) {
  .social-topbar { border-radius: 18px; }.social-brand { font-size: 21px; }.social-top-actions { gap: 4px; }
  .social-app { position: relative; display: block; min-height: calc(100vh - 152px); border-radius: 20px; }.conversation-rail { display: none; min-height: calc(100vh - 152px); border-inline-end: 0; }.social-app.show-conversations .conversation-rail { display: block; }.social-app.show-conversations .friends-view, .social-app.show-conversations .messages-view { display: none !important; }
  .friends-view { padding: 22px 14px; }.view-hero h1 { font-size: 40px; }.people-grid { grid-template-columns: 1fr; }
  .messages-view { height: calc(100vh - 152px); }.mobile-only { display: inline-flex; }.chat-header { min-height: 70px; padding: 9px 10px; }.avatar-large { width: 44px; height: 44px; }.message-scroller { padding: 14px 10px; }.message-row { max-width: 92%; }.composer { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 5px; padding-inline: 7px; }.message-counter { display: none; }.composer-tool, .send-button { width: 40px; height: 40px; }.voice-record-button { width: 44px; height: 44px; }.composer textarea { min-height: 40px; padding-inline: 10px; }.voice-composer { padding: 8px; }.voice-recording-state button, .voice-preview-state > button { min-height: 44px; }.voice-message { min-width: min(280px, 78vw); }.voice-preview-state audio { flex-basis: 100%; }.share-menu { left: 7px; }.site-feedback-widget { bottom: 88px !important; }.social-dialog { padding: 18px; }.preview-dialog { padding: 0; }.preview-content { padding: 16px 12px; }.preview-sticky-head, .preview-sticky-actions { padding: 13px; }.preview-sticky-actions { align-items: stretch; flex-direction: column; }.exercise-preview-row, .food-preview-row { grid-template-columns: 42px minmax(0, 1fr); }.exercise-preview-row > :last-child, .food-preview-row > :last-child { grid-column: 2; }
  body.voice-composer-active .site-feedback-widget { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
