
:root {
  color-scheme: dark;
  --ink: #050505;
  --panel: #111214;
  --paper: #f5f5f3;
  --quiet: #b8babd;
  --line: rgba(245, 245, 243, 0.16);
  --glass: rgba(255, 255, 255, 0.07);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.registration-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
  min-height: 100svh;
}

.identity {
  position: relative;
  display: flex;
  min-height: 720px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 64px);
  background: #070707;
  isolation: isolate;
}

.identity::before,
.identity::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.identity::before {
  width: min(72vw, 760px);
  height: min(72vw, 760px);
  top: 36%;
  left: -25%;
  border: 1px solid rgba(245, 245, 243, 0.12);
  border-radius: 46% 54% 42% 58%;
  transform: rotate(37deg);
}

.identity::after {
  width: 45%;
  aspect-ratio: 0.55;
  right: -11%;
  bottom: -9%;
  background: linear-gradient(125deg, rgba(245, 245, 243, 0.12), transparent 62%);
  clip-path: polygon(22% 0, 100% 0, 77% 100%, 0 100%);
}

.identity__grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.27;
  background-image: radial-gradient(rgba(255, 255, 255, 0.48) 0.6px, transparent 0.7px);
  background-size: 7px 7px;
  mask-image: linear-gradient(110deg, transparent 0%, black 42%, transparent 87%);
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.07em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 11px;
}

.identity__content { max-width: 590px; margin: auto 0; padding: 96px 0 42px; }
.identity__tag, .eyebrow {
  margin: 0 0 19px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.identity h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(52px, 6.6vw, 100px);
  font-weight: 730;
  letter-spacing: -0.082em;
  line-height: 0.89;
}

.identity__description {
  max-width: 43ch;
  margin: 31px 0 0;
  color: rgba(245, 245, 243, 0.67);
  font-size: 15px;
  line-height: 1.55;
}

.identity__signature {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: clamp(52px, 9vw, 116px);
  display: flex;
  align-items: baseline;
  color: rgba(245, 245, 243, 0.09);
  font-size: clamp(118px, 20vw, 300px);
  font-weight: 800;
  letter-spacing: -0.25em;
  line-height: 0.7;
  transform: skewX(-14deg);
}

.identity__signature span:last-child { transform: translateY(-15%); }
.identity__footer { margin: 32px 0 0; color: rgba(245, 245, 243, 0.4); font-size: 12px; }

.form-area {
  position: relative;
  display: flex;
  min-height: 720px;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 5.5vw, 88px);
  background: var(--paper);
  color: var(--panel);
}

.form-area::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 9px;
  content: "";
  background: repeating-linear-gradient(111deg, var(--ink) 0 15px, transparent 15px 23px);
  opacity: 0.94;
}

.form-area__topline {
  position: absolute;
  top: clamp(27px, 4vw, 64px);
  right: clamp(26px, 5.5vw, 88px);
  display: flex;
  align-items: center;
  gap: 13px;
  color: #66686a;
  font-size: 13px;
}

.text-button {
  display: inline-block;
  padding: 8px 11px;
  border: 1px solid rgba(17, 18, 20, 0.15);
  border-radius: 999px;
  color: var(--panel);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7), 0 5px 15px rgba(17, 18, 20, 0.04);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.text-button:hover { border-color: rgba(17, 18, 20, 0.35); background: rgba(17, 18, 20, 0.08); }
.text-button:active { background: rgba(17, 18, 20, 0.16); transform: translateY(1px); }

.registration-card { width: min(100%, 500px); }
.registration-card__intro { margin-bottom: 34px; }
.registration-card__intro h2 {
  margin: 0;
  font-size: clamp(43px, 4vw, 65px);
  font-weight: 730;
  letter-spacing: -0.078em;
  line-height: 0.91;
}
.registration-card__intro > p:last-child { margin: 18px 0 0; color: #6e7073; font-size: 15px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field { display: grid; gap: 8px; color: #303134; font-size: 12px; font-weight: 600; }
.field--wide { grid-column: 1 / -1; }
.field input {
  width: 100%;
  min-height: 51px;
  padding: 0 15px;
  border: 1px solid #d1d2d0;
  border-radius: 13px;
  outline: none;
  color: var(--panel);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 1px rgba(17, 18, 20, 0.025);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder { color: #9c9d9d; }
.field input:hover { border-color: #a5a6a4; background: rgba(255, 255, 255, 0.7); }
.field input:focus { border-color: #343538; box-shadow: 0 0 0 3px rgba(17, 18, 20, 0.1); background: #fff; }
.field__input-wrap { position: relative; display: flex; align-items: center; }
.field__input-wrap > b { position: absolute; z-index: 1; left: 15px; color: #888a8a; font-size: 16px; font-weight: 400; }
.field__input-wrap > b + input { padding-left: 31px; }
.password-toggle {
  position: absolute;
  right: 7px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: #5e6061;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  transition: background-color 150ms ease, color 150ms ease;
}
.password-toggle:hover { color: var(--panel); background: rgba(17, 18, 20, 0.08); }

.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 22px 0 0; color: #6b6d6e; font-size: 12px; line-height: 1.45; cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.consent__box { width: 18px; height: 18px; margin-top: 1px; border: 1px solid #aaa; border-radius: 5px; background: rgba(255, 255, 255, 0.55); transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.consent input:checked + .consent__box { border-color: var(--panel); background: var(--panel); box-shadow: inset 0 0 0 4px var(--paper); }
.consent input:focus-visible + .consent__box { outline: 3px solid rgba(17, 18, 20, 0.18); outline-offset: 2px; }
.consent a { color: #303134; text-underline-offset: 3px; }
.form-status { min-height: 20px; margin: 15px 0 0; color: #7a2929; font-size: 12px; line-height: 1.4; }
.form-status[data-state="success"] { color: #285d46; }

.submit-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 0 19px 0 22px;
  border: 1px solid var(--panel);
  border-radius: 14px;
  color: var(--paper);
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(17, 18, 20, 0.11);
  font-size: 14px;
  font-weight: 650;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.submit-button:hover { background: #2d2f32; box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 5px 14px rgba(17, 18, 20, 0.16); }
.submit-button:active { background: #050505; transform: translateY(1px); box-shadow: inset 0 1px rgba(0, 0, 0, 0.28); }
.submit-button:disabled { cursor: wait; opacity: 0.62; }
.registration-card__note { margin: 20px 0 0; color: #858687; font-size: 11px; line-height: 1.45; }

.workspace-body { min-height: 100vh; color: var(--paper); background: #080909; }
.workspace { display: grid; min-height: 100vh; grid-template-columns: 244px minmax(0, 1fr); }
.workspace-nav { display: flex; min-height: 100vh; flex-direction: column; padding: 28px 18px 20px; border-right: 1px solid rgba(245, 245, 243, 0.12); background: #050505; }
.workspace-brand { display: inline-flex; align-items: center; gap: 9px; padding: 0 9px; color: var(--paper); text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: -0.07em; }
.workspace-brand img { width: 31px; height: 31px; border-radius: 9px; }
.workspace-nav__links { display: grid; gap: 5px; margin-top: 54px; }
.workspace-nav__link { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 0 11px; border: 1px solid transparent; border-radius: 12px; color: rgba(245, 245, 243, 0.62); text-decoration: none; font-size: 14px; font-weight: 570; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.workspace-nav__link:hover { color: var(--paper); background: rgba(255, 255, 255, 0.065); }
.workspace-nav__link.is-active { border-color: rgba(245, 245, 243, 0.13); color: var(--paper); background: rgba(245, 245, 243, 0.1); }
.nav-icon { display: grid; width: 23px; height: 23px; place-items: center; font-size: 22px; font-weight: 400; line-height: 1; }
.nav-icon--search, .workspace-search-icon, .search-panel__loupe { position: relative; width: 19px; height: 19px; border: 2px solid currentColor; border-radius: 50%; }
.nav-icon--search::after, .workspace-search-icon::after, .search-panel__loupe::after { position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; content: ""; border-radius: 99px; background: currentColor; transform: rotate(47deg); }
.nav-avatar, .header-profile, .profile-editor__avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #090a0a; background: var(--paper); font-weight: 760; }
.nav-avatar { width: 24px; height: 24px; font-size: 11px; }
.workspace-account { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px; border: 1px solid rgba(245, 245, 243, 0.1); border-radius: 13px; color: var(--paper); text-decoration: none; background: rgba(255, 255, 255, 0.045); transition: background-color 150ms ease, border-color 150ms ease; }
.workspace-account:hover { border-color: rgba(245, 245, 243, 0.25); background: rgba(255, 255, 255, 0.1); }
.workspace-account > span:last-child { min-width: 0; }
.workspace-account b, .workspace-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-account b { font-size: 12px; }
.workspace-account small { margin-top: 2px; color: rgba(245, 245, 243, 0.5); font-size: 11px; }
.workspace-main { min-width: 0; padding: clamp(28px, 5vw, 76px); background: #111214; }
.workspace-header { display: flex; align-items: flex-start; justify-content: space-between; max-width: 1040px; margin: 0 auto; }
.workspace-kicker { margin: 0 0 8px; color: rgba(245, 245, 243, 0.5); font-size: 12px; font-weight: 600; }
.workspace-header h1 { margin: 0; font-size: clamp(36px, 4vw, 58px); letter-spacing: -0.075em; line-height: 0.9; }
.header-profile { width: 42px; height: 42px; margin-top: 2px; font-size: 15px; text-decoration: none; }
.home-empty, .search-panel, .profile-editor { position: relative; max-width: 1040px; min-height: 490px; margin: 48px auto 0; overflow: hidden; padding: clamp(30px, 5vw, 72px); border: 1px solid rgba(245, 245, 243, 0.14); border-radius: 22px; background: linear-gradient(132deg, rgba(245, 245, 243, 0.09), rgba(245, 245, 243, 0.025) 47%, transparent 48%); }
.home-empty::before { position: absolute; inset: 0; content: ""; opacity: 0.32; background-image: radial-gradient(rgba(245, 245, 243, 0.5) 0.55px, transparent 0.75px); background-size: 8px 8px; mask-image: linear-gradient(90deg, black, transparent 75%); pointer-events: none; }
.home-empty > * { position: relative; }
.home-empty__mark { position: absolute; right: clamp(24px, 7vw, 106px); bottom: -11%; display: flex; align-items: baseline; color: rgba(245, 245, 243, 0.06); font-size: clamp(170px, 28vw, 430px); font-weight: 800; letter-spacing: -0.25em; line-height: 0.7; transform: skewX(-14deg); }
.home-empty__mark span:last-child { transform: translateY(-15%); }
.home-empty h2, .search-panel h2, .profile-editor h2 { max-width: 10ch; margin: 0; font-size: clamp(40px, 5.3vw, 74px); letter-spacing: -0.08em; line-height: 0.9; }
.home-empty > p:not(.eyebrow) { max-width: 45ch; margin: 24px 0 0; color: rgba(245, 245, 243, 0.62); font-size: 15px; line-height: 1.55; }
.home-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.workspace-button { display: inline-flex; min-height: 42px; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid rgba(245, 245, 243, 0.18); border-radius: 12px; color: var(--paper); background: rgba(245, 245, 243, 0.07); text-decoration: none; font-size: 13px; font-weight: 620; transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.workspace-button:hover { border-color: rgba(245, 245, 243, 0.35); background: rgba(245, 245, 243, 0.13); }
.workspace-button:active { transform: translateY(1px); background: rgba(245, 245, 243, 0.2); }
.workspace-button--dark { border-color: var(--paper); color: #080909; background: var(--paper); }
.workspace-button--dark:hover { background: #d9d9d7; }
.workspace-search-icon { display: inline-block; width: 14px; height: 14px; border-width: 1.5px; }
.profile-editor { display: grid; grid-template-columns: minmax(210px, 0.65fr) minmax(310px, 1fr); min-height: 0; gap: clamp(32px, 7vw, 104px); align-items: start; }
.profile-editor__identity { display: grid; gap: 20px; }
.profile-editor__avatar { width: 72px; height: 72px; font-size: 27px; }
.profile-editor__identity h2 { font-size: clamp(33px, 3vw, 48px); }
.profile-editor__identity > div > p:last-child { margin: 10px 0 0; color: rgba(245, 245, 243, 0.52); font-size: 14px; }
.profile-form { padding-top: 3px; }
.profile-form .field { color: rgba(245, 245, 243, 0.72); }
.profile-form .field input { border-color: rgba(245, 245, 243, 0.19); color: var(--paper); background: rgba(245, 245, 243, 0.055); }
.profile-form .field input:hover { border-color: rgba(245, 245, 243, 0.38); background: rgba(245, 245, 243, 0.09); }
.profile-form .field input:focus { border-color: var(--paper); background: rgba(245, 245, 243, 0.1); box-shadow: 0 0 0 3px rgba(245, 245, 243, 0.13); }
.profile-form .field__input-wrap > b { color: rgba(245, 245, 243, 0.48); }
.profile-form .submit-button { color: #090a0a; background: var(--paper); }
.profile-form .submit-button:hover { background: #d8d8d6; }
.profile-editor__note { grid-column: 2; margin: -12px 0 0; color: rgba(245, 245, 243, 0.42); font-size: 11px; line-height: 1.5; }
.search-panel { min-height: 520px; }
.search-panel__top { display: flex; align-items: flex-start; justify-content: space-between; }
.search-panel__loupe { width: clamp(54px, 8vw, 94px); height: clamp(54px, 8vw, 94px); border-width: 6px; color: rgba(245, 245, 243, 0.2); }
.search-panel__loupe::after { right: -22px; bottom: -11px; width: 32px; height: 7px; }
.search-field { display: flex; align-items: center; gap: 12px; max-width: 620px; min-height: 58px; margin-top: 38px; padding: 0 16px; border: 1px solid rgba(245, 245, 243, 0.18); border-radius: 15px; color: rgba(245, 245, 243, 0.58); background: rgba(245, 245, 243, 0.06); }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--paper); background: transparent; }
.search-field input::placeholder { color: rgba(245, 245, 243, 0.36); }
.search-clear { padding: 3px 7px; border: 0; border-radius: 7px; color: rgba(245, 245, 243, 0.54); background: transparent; font-size: 21px; line-height: 1; }
.search-clear:hover { color: var(--paper); background: rgba(245, 245, 243, 0.12); }
.search-empty { max-width: 390px; margin: 78px auto 0; text-align: center; }
.search-empty > span { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 auto 17px; border: 1px solid rgba(245, 245, 243, 0.18); border-radius: 50%; color: rgba(245, 245, 243, 0.66); font-size: 22px; }
.search-empty h3 { margin: 0; font-size: 21px; letter-spacing: -0.04em; }
.search-empty p { margin: 12px 0 20px; color: rgba(245, 245, 243, 0.52); font-size: 13px; line-height: 1.52; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.profile-page { max-width: 1040px; margin: 48px auto 0; }
.profile-hero { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 0 34px; border-bottom: 1px solid rgba(245, 245, 243, 0.15); }
.profile-hero__avatar { display: grid; width: 116px; height: 116px; place-items: center; overflow: hidden; border-radius: 50%; color: #090a0a; background: var(--paper); font-size: 40px; font-weight: 780; }
.profile-hero__avatar img, .nav-avatar--media img, .header-profile--media img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar--media, .header-profile--media { overflow: hidden; }
.profile-hero__identity h2 { margin: 0; font-size: clamp(34px, 4vw, 55px); letter-spacing: -0.075em; line-height: 0.92; }
.profile-handle { margin: 9px 0 0; color: rgba(245, 245, 243, 0.52); font-size: 14px; }
.profile-bio { max-width: 55ch; margin: 17px 0 0; color: rgba(245, 245, 243, 0.76); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.profile-stat { min-width: 90px; text-align: center; }
.profile-stat b, .profile-stat span { display: block; }
.profile-stat b { font-size: 28px; letter-spacing: -0.06em; }
.profile-stat span { margin-top: 2px; color: rgba(245, 245, 243, 0.5); font-size: 11px; }
.avatar-form { padding-top: 25px; }
.avatar-form input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.avatar-change { display: grid; gap: 7px; justify-items: start; cursor: pointer; }
.avatar-change__icon { display: grid; width: 47px; height: 47px; place-items: center; border: 1px solid rgba(245, 245, 243, 0.28); border-radius: 14px; color: var(--paper); background: rgba(245, 245, 243, 0.08); font-size: 22px; transition: background-color 150ms ease, transform 150ms ease; }
.avatar-change:hover .avatar-change__icon { background: rgba(245, 245, 243, 0.17); transform: translateY(-1px); }
.avatar-change > span:not(.avatar-change__icon) { font-size: 13px; font-weight: 650; }
.avatar-change small, .upload-status { color: rgba(245, 245, 243, 0.46); font-size: 11px; line-height: 1.45; }
.upload-status { min-height: 17px; margin: 11px 0 0; }
.upload-status[data-state="success"] { color: #bce8ce; }
.profile-form { min-width: 0; padding-top: 24px; }
.profile-form textarea, .composer-form textarea { width: 100%; min-height: 94px; padding: 13px 15px; border: 1px solid rgba(245, 245, 243, 0.19); border-radius: 13px; outline: 0; resize: vertical; color: var(--paper); background: rgba(245, 245, 243, 0.055); line-height: 1.45; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.profile-form textarea:focus, .composer-form textarea:focus { border-color: var(--paper); background: rgba(245, 245, 243, 0.1); box-shadow: 0 0 0 3px rgba(245, 245, 243, 0.13); }
.field-counter { display: block; margin-top: 6px; color: rgba(245, 245, 243, 0.4); font-size: 11px; font-weight: 500; text-align: right; }
.profile-posts { margin-top: 60px; }
.profile-posts__heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.profile-posts h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.07em; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.posts-empty { display: grid; min-height: 310px; grid-column: 1 / -1; place-items: center; align-content: center; padding: 32px; border: 1px dashed rgba(245, 245, 243, 0.2); border-radius: 18px; text-align: center; }
.posts-empty > span { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 14px; border: 1px solid rgba(245, 245, 243, 0.28); border-radius: 50%; font-size: 26px; }
.posts-empty h3 { margin: 0; font-size: 21px; letter-spacing: -0.04em; }
.posts-empty p { max-width: 37ch; margin: 9px 0 19px; color: rgba(245, 245, 243, 0.5); font-size: 13px; line-height: 1.5; }
.post-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(245, 245, 243, 0.13); border-radius: 14px; background: #070707; }
.post-card::before { display: none; }
.post-card video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-player { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.video-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; cursor: pointer; }
.video-player.is-landscape video { object-fit: contain; }
.player-flash, .player-heart { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; border-radius: 50%; color: #fff; opacity: 0; pointer-events: none; }
.player-flash { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); }
.player-flash svg { width: 34px; height: 34px; fill: currentColor; }
.player-heart { width: 120px; height: 120px; margin: -60px 0 0 -60px; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4)); }
.player-heart svg { width: 100%; height: 100%; fill: #fff; }
.player-flash.is-visible { animation: player-flash 0.6s ease-out; }
.player-heart.is-visible { animation: player-heart 0.85s ease-out; }
@keyframes player-flash { 0% { opacity: 0; transform: scale(0.7); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes player-heart { 0% { opacity: 0; transform: scale(0.4); } 20% { opacity: 1; transform: scale(1.1); } 40% { transform: scale(0.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25) translateY(-14px); } }
.player-sound { position: absolute; right: 12px; bottom: 20px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); transition: background-color 160ms ease, transform 160ms ease; }
.player-sound:hover { background: rgba(0, 0, 0, 0.75); }
.player-sound:active { transform: scale(0.92); }
.player-sound svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player-sound svg .sound-speaker { fill: currentColor; stroke: none; }
.player-sound[aria-pressed="true"] .sound-waves { display: none; }
.player-sound[aria-pressed="false"] .sound-muted { display: none; }
.player-seek { position: absolute; right: 0; bottom: 0; left: 0; display: block; width: 100%; height: 14px; margin: 0; padding: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; transform: translateY(5.5px); }
.player-seek:disabled { cursor: default; }
.player-seek:focus { outline: 0; }
.player-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 0; background: linear-gradient(to right, #fff var(--progress, 0%), rgba(255, 255, 255, 0.32) var(--progress, 0%)); }
.player-seek::-webkit-slider-thumb { width: 0; height: 0; margin-top: 0; border: 0; background: #fff; -webkit-appearance: none; appearance: none; }
.player-seek::-moz-range-track { height: 3px; background: rgba(255, 255, 255, 0.32); }
.player-seek::-moz-range-progress { height: 3px; background: #fff; }
.player-seek::-moz-range-thumb { width: 0; height: 0; border: 0; background: #fff; }
.video-player:hover .player-seek:not(:disabled)::-webkit-slider-thumb, .player-seek:active::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; }
.video-player:hover .player-seek:not(:disabled)::-moz-range-thumb, .player-seek:active::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; }
.video-player:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.post-actions { display: flex; align-items: center; justify-content: flex-start; gap: 2px; padding: 9px 12px 0; }
.like-button { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 6px; border: 0; border-radius: 9px; color: var(--paper); background: transparent; font-size: 13px; font-weight: 600; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.like-button svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.like-button:hover { background: rgba(255,255,255,.07); }
.like-button:active svg { transform: scale(0.85); }
.like-button[aria-pressed="true"] { color: #ff3040; }
.like-button[aria-pressed="true"] svg { fill: currentColor; animation: like-pop 0.35s ease-out; }
@keyframes like-pop { 0% { transform: scale(0.6); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }
.like-button:disabled { cursor: wait; opacity: .6; }
.post-format { color: rgba(245,245,243,.4); font-size: 11px; }
.post-card .post-status { min-height: 0; padding: 0 15px 12px; color: #ffb5be; font-size: 11px; }
.post-card .post-status:empty { display: none; }
.like-button:focus-visible, .player-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .player-flash.is-visible, .player-heart.is-visible, .like-button[aria-pressed="true"] svg { animation: none; }
  .player-sound, .like-button { transition: none; }
}
.post-card__type { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border: 1px solid rgba(245, 245, 243, 0.22); border-radius: 99px; color: var(--paper); background: rgba(5, 5, 5, 0.72); font-size: 10px; font-weight: 650; backdrop-filter: blur(8px); }
.post-card p { min-height: 42px; margin: 0; padding: 11px 13px 12px 17px; color: rgba(245, 245, 243, 0.74); font-size: 12px; line-height: 1.4; }
.composer { display: grid; max-width: 1040px; min-height: 470px; grid-template-columns: minmax(250px, 0.8fr) minmax(320px, 1fr); gap: clamp(36px, 8vw, 115px); margin: 48px auto 0; padding: clamp(28px, 5vw, 64px); border: 1px solid rgba(245, 245, 243, 0.15); border-radius: 22px; background: linear-gradient(126deg, rgba(245,245,243,0.1), rgba(245,245,243,0.03) 49%, transparent 50%); }
.composer__aside h2 { margin: 0; font-size: clamp(39px, 5vw, 68px); letter-spacing: -0.08em; line-height: 0.9; }
.composer__aside > p:last-child { max-width: 30ch; margin: 22px 0 0; color: rgba(245, 245, 243, 0.58); font-size: 14px; line-height: 1.55; }
.composer-form { display: grid; align-content: start; gap: 18px; }
.composer-form .field { color: rgba(245, 245, 243, 0.72); }
.composer-form .form-status { color: #ffb5be; }
.composer-form .submit-button { color: #090a0a; background: var(--paper); }
.composer-form .submit-button:hover { background: #d8d8d6; }
.drop-field { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 8px; padding: 18px; border: 1px dashed rgba(245, 245, 243, 0.26); border-radius: 16px; text-align: center; cursor: pointer; background: rgba(245, 245, 243, 0.035); transition: background-color 150ms ease, border-color 150ms ease; }
.drop-field:hover { border-color: rgba(245, 245, 243, 0.52); background: rgba(245, 245, 243, 0.08); }
.drop-field input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.drop-field__icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(245, 245, 243, 0.26); border-radius: 13px; padding-left: 2px; }
.drop-field b { font-size: 14px; }
.drop-field small, .drop-field output { color: rgba(245, 245, 243, 0.46); font-size: 11px; }
.drop-field output { max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-create-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #090a0a; background: var(--paper); font-size: 18px; font-weight: 500; line-height: 1; }
.workspace-nav__create { color: var(--paper); }

@media (max-width: 900px) {
  .registration-shell { grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr); }
  .identity { min-height: 640px; }
  .identity__content { padding-top: 50px; }
  .identity h1 { font-size: clamp(45px, 6vw, 70px); }
}

@media (max-width: 720px) {
  .registration-shell { display: block; }
  .identity { min-height: 376px; padding: 24px; justify-content: flex-start; }
  .identity .brand { position: absolute; top: 24px; left: 24px; z-index: 1; }
  .identity__content { margin: 0; padding: 96px 0 0; }
  .identity h1 { max-width: 12ch; font-size: clamp(43px, 12vw, 64px); }
  .identity__description, .identity__footer { display: none; }
  .identity__signature { right: 27px; bottom: 21px; font-size: 145px; }
  .form-area { min-height: auto; padding: 92px 24px 38px; }
  .form-area__topline { top: 26px; right: 24px; }
}

@media (max-width: 430px) {
  .form-area { padding-right: 18px; padding-left: 18px; }
  .form-area__topline { right: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .registration-card__intro { margin-bottom: 29px; }
}

@media (max-width: 720px) {
  .workspace { display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .workspace-nav { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: grid; min-height: calc(76px + env(safe-area-inset-bottom)); grid-template-columns: 1fr; padding: 8px 13px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(245, 245, 243, 0.14); border-right: 0; background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(18px); }
  .workspace-brand, .workspace-account { display: none; }
  .workspace-nav__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0; }
  .workspace-nav__link { min-height: 52px; flex-direction: column; justify-content: center; gap: 3px; padding: 4px; border-radius: 10px; font-size: 10px; }
  .workspace-nav__link .nav-avatar { width: 21px; height: 21px; font-size: 9px; }
  .workspace-nav__create .nav-create-icon { width: 30px; height: 30px; margin-top: -14px; border: 4px solid #050505; border-radius: 10px; box-shadow: 0 2px 9px rgba(0,0,0,0.34); }
  .workspace-main { min-height: 100svh; padding: 29px 18px 34px; }
  .workspace-header h1 { font-size: 39px; }
  .home-empty, .search-panel, .profile-editor { min-height: 0; margin-top: 30px; padding: 28px 20px; border-radius: 18px; }
  .home-empty { min-height: 484px; }
  .home-empty h2, .search-panel h2 { font-size: clamp(38px, 11vw, 50px); }
  .home-empty__mark { right: 22px; font-size: 190px; }
  .profile-editor { grid-template-columns: 1fr; gap: 35px; }
  .profile-editor__note { grid-column: auto; margin: -16px 0 0; }
  .search-panel__loupe { width: 50px; height: 50px; border-width: 4px; }
  .search-panel__loupe::after { right: -14px; bottom: -7px; width: 21px; height: 5px; }
  .search-empty { margin-top: 60px; }
  .profile-hero { grid-template-columns: 86px minmax(0, 1fr); gap: 17px; padding: 8px 0 27px; }
  .profile-hero__avatar { width: 82px; height: 82px; font-size: 30px; }
  .profile-hero__identity h2 { font-size: 31px; }
  .profile-bio { grid-column: 1 / -1; margin-top: 4px; }
  .profile-stat { grid-column: 1 / -1; display: flex; gap: 7px; align-items: baseline; text-align: left; }
  .profile-stat b { font-size: 21px; }
  .composer { grid-template-columns: 1fr; gap: 24px; }
  .avatar-form { padding-top: 18px; }
  .profile-form { padding-top: 0; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card { border-radius: 11px; }
  .post-card p { min-height: 0; font-size: 11px; }
  .profile-posts { margin-top: 44px; }
  .profile-posts__heading { align-items: center; }
  .composer { min-height: 0; margin-top: 30px; padding: 28px 20px; border-radius: 18px; }
}

@media (max-width: 430px) {
  .workspace-main { padding-right: 14px; padding-left: 14px; }
  .workspace-header { align-items: center; }
  .workspace-header h1 { font-size: 35px; }
  .header-profile { width: 38px; height: 38px; }
  .home-empty, .search-panel, .profile-editor { padding: 24px 17px; }
  .home-empty__actions { display: grid; }
  .workspace-button { justify-content: center; }
  .search-field { margin-top: 30px; }
}
.profile-edit-button { margin-top: 18px; }
body:has(.profile-dialog[open]) { overflow: hidden; }
.profile-dialog { width: min(560px, calc(100% - 32px)); max-height: min(720px, calc(100dvh - 48px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(245, 245, 243, 0.16); border-radius: 22px; color: var(--paper); background: #111214; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.profile-dialog[open] { display: flex; flex-direction: column; animation: dialog-in 220ms ease-out; }
.profile-dialog::backdrop { background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(6px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
.profile-dialog__head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid rgba(245, 245, 243, 0.1); }
.profile-dialog__head h2 { margin: 0; font-size: 20px; letter-spacing: -0.04em; }
.profile-dialog__close { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--paper); background: rgba(245, 245, 243, 0.08); font-size: 22px; line-height: 1; transition: background-color 150ms ease; }
.profile-dialog__close:hover { background: rgba(245, 245, 243, 0.18); }
.profile-dialog__close:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.profile-dialog__body { display: grid; gap: 22px; padding: 22px 24px 26px; overflow-y: auto; overscroll-behavior: contain; }
.profile-dialog .avatar-form { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; align-items: center; padding: 0; }
.profile-dialog__avatar { grid-row: 1; grid-column: 1; display: grid; width: 64px; height: 64px; place-items: center; overflow: hidden; border-radius: 50%; color: #090a0a; background: var(--paper); font-size: 24px; font-weight: 780; }
.profile-dialog__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-dialog .avatar-change { grid-row: 1; grid-column: 2; gap: 3px; }
.profile-dialog .avatar-change__icon { display: none; }
.profile-dialog .avatar-change > span:not(.avatar-change__icon) { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245, 245, 243, 0.35); }
.profile-dialog .upload-status { grid-column: 1 / -1; min-height: 0; margin: 12px 0 0; }
.profile-dialog .upload-status:empty, .profile-dialog .form-status:empty { display: none; }
.profile-dialog .profile-form { padding: 0; }
.profile-dialog .form-status { min-height: 0; margin: 14px 0 0; color: #ffb5be; }
.profile-dialog .form-status[data-state="success"] { color: #bce8ce; }
.profile-dialog .submit-button { margin-top: 18px; }
.profile-dialog .field-grid { gap: 16px 14px; }
@media (max-width: 720px) {
  .profile-dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 22px 22px 0 0; }
  .profile-dialog[open] { animation: sheet-in 260ms ease-out; }
  .profile-dialog__head { padding: 18px 18px 14px; }
  .profile-dialog__body { padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 430px) {
  .profile-dialog .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-dialog[open] { animation: none; }
}

.workspace-main--feed { padding: 0 clamp(12px, 3vw, 40px) 60px; }
.workspace-main--feed .workspace-header { display: none; }
.home-layout { display: grid; grid-template-columns: minmax(0, 470px) 300px; justify-content: center; gap: clamp(30px, 6vw, 90px); }
.home-main { min-width: 0; }
.stories { display: flex; gap: 14px; margin: 22px 0 6px; padding: 4px 0 10px; overflow-x: auto; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { display: grid; flex: none; width: 68px; justify-items: center; gap: 6px; text-decoration: none; }
.story__ring { display: grid; width: 62px; height: 62px; place-items: center; overflow: hidden; border: 3px solid #111214; border-radius: 50%; background: #2a2b2e; box-shadow: 0 0 0 2px rgba(245,245,243,.18); font-weight: 700; }
.story.has-story .story__ring { box-shadow: 0 0 0 2px #e1306c; }
.story__ring img, .suggest__avatar img { width: 100%; height: 100%; object-fit: cover; }
.story small { max-width: 68px; overflow: hidden; color: var(--quiet); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.feed { max-width: none; gap: 0; margin: 8px 0 0; }
.feed .post-card { border: 0; border-bottom: 1px solid rgba(245,245,243,.13); border-radius: 0; padding-bottom: 14px; margin-bottom: 18px; background: transparent; }
.feed .post-author { padding: 8px 2px 10px; }
.feed .post-author time { margin-left: 8px; color: var(--quiet); font-size: 12px; }
.feed .post-author time::before { content: "• "; }
.feed .post-author > span:last-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.feed .post-author br { display: none; }
.feed .post-author small { display: none; }
.feed .video-player, .feed .photo-frame { overflow: hidden; border: 1px solid rgba(245,245,243,.1); border-radius: 6px; }
.feed .video-player { aspect-ratio: 4 / 5; }
.feed .post-actions { justify-content: flex-start; gap: 2px; padding: 8px 0 0; }
.feed .like-button { padding: 4px; }
.share-button { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 9px; color: var(--paper); background: transparent; }
.share-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.share-button:hover { background: rgba(255,255,255,.07); }
.share-button.is-done { color: #7be495; }
.post-likes { min-height: 0 !important; padding: 2px 0 0 !important; margin: 0; font-size: 14px !important; font-weight: 650; color: var(--paper) !important; }
.feed .post-caption { min-height: 0 !important; padding: 4px 0 0 !important; font-size: 14px !important; color: var(--paper) !important; }
.feed .post-caption a { text-decoration: none; }
.post-ago { min-height: 0 !important; padding: 6px 0 0 !important; margin: 0; color: var(--quiet) !important; font-size: 11px !important; text-transform: uppercase; letter-spacing: .03em; }
.home-aside { position: sticky; top: 28px; align-self: start; display: grid; gap: 14px; margin-top: 30px; }
.home-aside__title { margin: 8px 0 0; color: var(--quiet); font-size: 14px; font-weight: 650; }
.home-aside__more { color: #8ab4ff; font-size: 13px; text-decoration: none; }
.suggest { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.suggest__avatar { display: grid; width: 44px; height: 44px; flex: none; place-items: center; overflow: hidden; border-radius: 50%; background: rgba(245,245,243,.14); font-weight: 700; }
.suggest b { display: block; font-size: 14px; }
.suggest small { color: var(--quiet); font-size: 12px; }
.suggest--me .suggest__avatar { width: 56px; height: 56px; }
.suggest--me .suggest__avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .home-layout { grid-template-columns: minmax(0, 470px); } .home-aside { display: none; } }
@media (max-width: 700px) { .workspace-main--feed { padding: 0 0 70px; } .home-main { padding: 0 12px; } .feed .video-player, .feed .photo-frame { border-radius: 0; border-left: 0; border-right: 0; } }
.post-author { display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-decoration: none; }
.post-author__avatar { display: grid; width: 34px; height: 34px; flex: none; place-items: center; overflow: hidden; border-radius: 50%; background: rgba(245,245,243,.14); font-size: 14px; font-weight: 700; }
.post-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author b { font-size: 13px; letter-spacing: -0.02em; }
.post-author small { color: var(--quiet); font-size: 11px; }
.photo-frame { position: relative; display: block; width: 100%; background: #000; }
.photo-frame img { display: block; width: 100%; max-height: 640px; object-fit: contain; }
.post-card--photo .player-heart { z-index: 2; }
.search-results { margin-top: 34px; }
.search-section { margin: 0 0 30px; }
.search-section > h3 { margin: 0 0 12px; color: var(--quiet); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.people-list { display: grid; gap: 8px; max-width: 620px; }
.person { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border: 1px solid rgba(245,245,243,.12); border-radius: 14px; text-decoration: none; background: rgba(245,245,243,.04); transition: background .15s; }
.person:hover, .person:focus-visible { background: rgba(245,245,243,.11); outline: 0; }
.person__avatar { display: grid; width: 44px; height: 44px; flex: none; place-items: center; overflow: hidden; border-radius: 50%; background: rgba(245,245,243,.14); font-weight: 700; }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__text { min-width: 0; }
.person__text b { display: block; font-size: 14px; }
.person__text small { display: block; overflow: hidden; color: var(--quiet); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.thumb { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: 12px; background: #000; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb span { position: absolute; right: 0; bottom: 0; left: 0; padding: 18px 9px 8px; overflow: hidden; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.thumb__badge { top: 7px; right: 7px; bottom: auto !important; left: auto !important; padding: 3px 7px !important; border-radius: 99px; background: rgba(0,0,0,.65) !important; font-size: 10px !important; }
.search-hint { max-width: 620px; margin: 14px 0 0; color: rgba(245,245,243,.45); font-size: 12px; }
.user-head { display: flex; align-items: center; gap: 22px; margin: 36px 0 28px; }
.user-head .profile-hero__avatar { flex: none; }

.stories { gap: 18px; margin: 20px 0 8px; padding: 6px 2px 12px; }
.st-item { position: relative; flex: none; width: 84px; }
.st-open { display: grid; width: 100%; justify-items: center; gap: 7px; padding: 0; border: 0; color: var(--paper); background: transparent; }
.st-ring { display: grid; width: 82px; height: 82px; place-items: center; border-radius: 50%; background: rgba(245,245,243,.2); }
.st-ring.has { background: linear-gradient(45deg, #fbbf24, #f97316 30%, #ec4899 62%, #a21caf); }
.st-ring.seen { background: rgba(245,245,243,.28); }
.st-avatar { display: grid; width: 74px; height: 74px; place-items: center; overflow: hidden; border: 3px solid #0b0d10; border-radius: 50%; background: #2a2b2e; font-size: 24px; font-weight: 700; }
.st-avatar img { width: 100%; height: 100%; object-fit: cover; }
.st-name { max-width: 84px; overflow: hidden; color: var(--quiet); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.st-badge { position: absolute; top: 54px; right: 4px; display: grid; width: 26px; height: 26px; place-items: center; padding: 0; border: 3px solid #0b0d10; border-radius: 50%; color: #fff; background: #3b82f6; font-size: 16px; font-weight: 700; line-height: 1; }
.st-toast { position: fixed; z-index: 1200; bottom: 26px; left: 50%; max-width: 90vw; padding: 11px 18px; border-radius: 99px; color: #050505; background: #f5f5f3; font-size: 13px; font-weight: 600; transform: translateX(-50%); }
.sv { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.94); }
.sv__stage { position: relative; width: min(100vw, calc(100svh * 9 / 16)); height: min(100svh, 880px); max-height: 100svh; overflow: hidden; border-radius: 12px; background: #000; user-select: none; -webkit-user-select: none; }
.sv__media { position: absolute; inset: 0; }
.sv__media img, .sv__media video { width: 100%; height: 100%; object-fit: contain; }
.sv__bars { position: absolute; z-index: 3; top: 10px; right: 10px; left: 10px; display: flex; gap: 4px; }
.sv__bar { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.35); }
.sv__bar span { display: block; width: 0; height: 100%; background: #fff; }
.sv__head { position: absolute; z-index: 3; top: 22px; right: 10px; left: 10px; display: flex; align-items: center; gap: 10px; padding-top: 4px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.sv__head .st-avatar { width: 36px; height: 36px; border: 0; font-size: 14px; }
.sv__who { flex: 1; min-width: 0; font-size: 13px; font-weight: 650; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sv__who small { margin-left: 6px; color: rgba(255,255,255,.75); font-weight: 400; }
.sv__btn { padding: 6px 9px; border: 0; border-radius: 8px; color: #fff; background: transparent; font-size: 22px; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sv__btn:hover { background: rgba(255,255,255,.15); }
.sv__zone { position: absolute; z-index: 2; top: 70px; bottom: 0; border: 0; background: transparent; }
.sv__zone--prev { left: 0; width: 35%; }
.sv__zone--next { right: 0; width: 65%; }
@media (max-width: 700px) { .sv__stage { width: 100vw; height: 100svh; border-radius: 0; } .st-ring { width: 72px; height: 72px; } .st-avatar { width: 64px; height: 64px; } .st-item { width: 74px; } .st-badge { top: 46px; } }

.follow-stats { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 14px 0 4px; font-size: 14px; color: var(--quiet); }
.follow-stats b { color: var(--paper); font-weight: 700; }
.stat-link { padding: 0; border: 0; color: var(--quiet); background: transparent; font-size: 14px; }
.stat-link:hover { color: var(--paper); }
.follow-btn { min-height: 36px; padding: 0 20px; border: 0; border-radius: 10px; color: #fff; background: #3b82f6; font-size: 14px; font-weight: 650; transition: background-color .15s; }
.follow-btn:hover { background: #2f6fdb; }
.follow-btn.is-following { color: var(--paper); background: rgba(245,245,243,.14); }
.follow-btn.is-following:hover { background: rgba(245,245,243,.22); }
.follow-btn:disabled { opacity: .6; cursor: wait; }
.follow-btn--text { min-height: 0; padding: 4px 6px; color: #60a5fa; background: transparent; font-size: 13px; }
.follow-btn--text:hover { color: #93c5fd; background: transparent; }
.follow-btn--text.is-following { color: var(--quiet); background: transparent; }
.profile-hero__identity > .follow-btn { margin-top: 12px; }
.feed-tabs { display: flex; gap: 6px; margin: 4px 0 14px; }
.feed-tab { padding: 7px 14px; border-radius: 99px; color: var(--quiet); font-size: 13px; font-weight: 600; text-decoration: none; }
.feed-tab.is-active { color: #050505; background: var(--paper); }
.suggest { justify-content: space-between; }
.suggest__link { display: flex; min-width: 0; align-items: center; gap: 12px; text-decoration: none; }
.person .follow-btn { margin-left: auto; }
.follow-dialog { width: min(400px, 92vw); max-height: 70svh; padding: 0; border: 1px solid rgba(245,245,243,.16); border-radius: 16px; color: var(--paper); background: #15171a; }
.follow-dialog::backdrop { background: rgba(0,0,0,.6); }
.follow-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(245,245,243,.12); font-weight: 650; }
.follow-dialog__head button { padding: 2px 8px; border: 0; color: var(--paper); background: transparent; font-size: 22px; }
.follow-dialog__body { display: grid; gap: 4px; max-height: calc(70svh - 56px); overflow-y: auto; padding: 10px; }
.follow-dialog__empty { margin: 26px 0; color: var(--quiet); font-size: 14px; text-align: center; }

.nav-badge { display: inline-grid; min-width: 18px; height: 18px; place-items: center; margin-left: auto; padding: 0 5px; border-radius: 9px; color: #fff; background: #ef4444; font-size: 11px; font-style: normal; font-weight: 700; }
.nav-badge[hidden] { display: none; }
.workspace-nav__link { position: relative; }
.workspace-main--chat { padding: 0; }
.workspace-main--chat .workspace-header { display: none; }
.chat-app { display: grid; grid-template-columns: 350px minmax(0, 1fr); height: 100svh; }
.chat-list { display: flex; min-height: 0; flex-direction: column; border-right: 1px solid rgba(245,245,243,.12); }
.chat-list__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 18px 12px; }
.chat-list__head h2 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
.chat-new { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; color: var(--paper); background: rgba(245,245,243,.1); font-size: 18px; }
.chat-new:hover { background: rgba(245,245,243,.2); }
.chat-search { padding: 0 14px 10px; }
.chat-search input { width: 100%; min-height: 40px; padding: 0 14px; border: 1px solid rgba(245,245,243,.16); border-radius: 12px; outline: 0; color: var(--paper); background: rgba(245,245,243,.06); }
.chat-rows { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 12px; }
.chat-row { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 14px; color: var(--paper); background: transparent; text-align: left; }
.chat-row:hover, .chat-row.is-active { background: rgba(245,245,243,.09); }
.chat-ava { display: grid; width: 50px; height: 50px; flex: none; place-items: center; overflow: hidden; border-radius: 50%; background: rgba(245,245,243,.14); font-weight: 700; }
.chat-ava img { width: 100%; height: 100%; object-fit: cover; }
.chat-row__text { min-width: 0; flex: 1; }
.chat-row__name { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 650; }
.chat-row__prev { display: block; overflow: hidden; color: var(--quiet); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.chat-row.has-unread .chat-row__prev { color: var(--paper); font-weight: 600; }
.chat-row__meta { display: grid; justify-items: end; gap: 5px; color: var(--quiet); font-size: 11px; }
.official-badge { display: inline-grid; width: 15px; height: 15px; flex: none; place-items: center; border-radius: 50%; color: #fff; background: #3b82f6; font-size: 10px; font-weight: 800; }
.chat-thread { display: flex; min-height: 0; min-width: 0; flex-direction: column; }
.chat-thread__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(245,245,243,.12); }
.chat-thread__head .chat-ava { width: 40px; height: 40px; }
.chat-thread__head a { color: var(--paper); text-decoration: none; }
.chat-thread__head small { display: block; color: var(--quiet); font-size: 12px; }
.chat-back { display: none; padding: 4px 8px; border: 0; color: var(--paper); background: transparent; font-size: 22px; }
.chat-msgs { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 5px; overflow-y: auto; padding: 18px; }
.msg { max-width: min(70%, 520px); padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--me { align-self: flex-end; color: #fff; background: #3b82f6; border-bottom-right-radius: 6px; }
.msg--them { align-self: flex-start; background: rgba(245,245,243,.12); border-bottom-left-radius: 6px; }
.msg time { display: block; margin-top: 3px; font-size: 10px; opacity: .65; }
.msg-read { align-self: flex-end; margin: -2px 4px 4px; color: var(--quiet); font-size: 11px; }
.chat-compose { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(245,245,243,.12); }
.chat-compose textarea { flex: 1; max-height: 130px; min-height: 42px; padding: 10px 14px; border: 1px solid rgba(245,245,243,.16); border-radius: 21px; outline: 0; color: var(--paper); background: rgba(245,245,243,.06); font: inherit; font-size: 14px; resize: none; }
.chat-compose button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 21px; color: #fff; background: #3b82f6; font-weight: 650; }
.chat-compose button:disabled { opacity: .5; }
.chat-readonly { padding: 14px; border-top: 1px solid rgba(245,245,243,.12); color: var(--quiet); font-size: 13px; text-align: center; }
.chat-placeholder { display: grid; flex: 1; place-content: center; justify-items: center; gap: 8px; padding: 30px; color: var(--quiet); text-align: center; }
.chat-placeholder b { color: var(--paper); font-size: 20px; letter-spacing: -0.03em; }
@media (max-width: 800px) {
  .workspace-nav__links { grid-template-columns: repeat(5, 1fr); }
  .chat-app { grid-template-columns: 1fr; height: calc(100svh - 76px - env(safe-area-inset-bottom)); }
  .chat-app .chat-thread { display: none; }
  .chat-app.is-thread .chat-list { display: none; }
  .chat-app.is-thread .chat-thread { display: flex; }
  .chat-back { display: inline-block; }
  .msg { max-width: 85%; }
}

/* ── Обновления и панель официального аккаунта ── */
.lbl-short { display: none; }
.updates-page, .official-panel { max-width: 1040px; margin: 48px auto 0; }
.updates-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; padding-bottom: 30px; border-bottom: 1px solid rgba(245, 245, 243, 0.15); }
.updates-hero h2 { margin: 0; font-size: clamp(38px, 5vw, 66px); letter-spacing: -0.08em; line-height: 0.92; }
.updates-hero p:not(.eyebrow) { max-width: 44ch; margin: 18px 0 0; color: rgba(245, 245, 243, 0.58); font-size: 14px; line-height: 1.55; }
.updates-list { display: grid; gap: 16px; margin-top: 30px; }
.update-card { padding: 22px 24px; border: 1px solid rgba(245, 245, 243, 0.15); border-radius: 18px; background: rgba(245, 245, 243, 0.04); }
.update-card__head { display: flex; align-items: center; gap: 9px; color: var(--quiet); font-size: 12px; }
.update-card__head b { color: var(--paper); font-size: 13px; }
.update-card__head .chat-ava { width: 32px; height: 32px; font-size: 13px; }
.update-card__head time { margin-left: 4px; }
.update-card h3 { margin: 16px 0 0; font-size: 21px; letter-spacing: -0.04em; line-height: 1.2; }
.update-card p { margin: 10px 0 0; color: rgba(245, 245, 243, 0.78); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.update-delete { margin-left: auto; padding: 6px 12px; border: 1px solid rgba(255, 120, 130, 0.35); border-radius: 9px; color: #ffb5be; background: transparent; font-size: 12px; }
.update-delete:hover { background: rgba(255, 120, 130, 0.12); }
.update-delete:disabled { opacity: 0.5; cursor: wait; }
.official-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.official-stat { padding: 18px; border: 1px solid rgba(245, 245, 243, 0.14); border-radius: 16px; background: rgba(245, 245, 243, 0.04); }
.official-stat b, .official-stat span { display: block; }
.official-stat b { font-size: 30px; letter-spacing: -0.06em; }
.official-stat span { margin-top: 3px; color: rgba(245, 245, 243, 0.5); font-size: 12px; }
.official-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.official-card { min-width: 0; margin-top: 0; padding: 24px; border: 1px solid rgba(245, 245, 243, 0.15); border-radius: 20px; background: rgba(245, 245, 243, 0.035); }
.official-card--wide { margin-top: 16px; }
.official-card h2 { margin: 0 0 18px; font-size: 24px; letter-spacing: -0.05em; }
.official-card__lead { margin: -6px 0 14px; color: var(--quiet); font-size: 13px; }
.official-form { display: grid; gap: 16px; }
.official-form .field { color: rgba(245, 245, 243, 0.72); }
.official-form .field input, .official-form .field textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(245, 245, 243, 0.19); border-radius: 13px; outline: 0; color: var(--paper); background: rgba(245, 245, 243, 0.055); font: inherit; font-size: 14px; line-height: 1.45; }
.official-form .field input { min-height: 48px; padding-top: 0; padding-bottom: 0; }
.official-form .field textarea { min-height: 150px; resize: vertical; }
.official-form .field input::placeholder, .official-form .field textarea::placeholder { color: rgba(245, 245, 243, 0.35); }
.official-form .field input:focus, .official-form .field textarea:focus { border-color: var(--paper); background: rgba(245, 245, 243, 0.1); box-shadow: 0 0 0 3px rgba(245, 245, 243, 0.13); }
.official-check { display: flex; align-items: flex-start; gap: 10px; color: rgba(245, 245, 243, 0.72); font-size: 13px; line-height: 1.4; }
.official-check input { margin-top: 2px; }
.official-form .form-status { margin: 0; color: #ffb5be; }
.official-form .form-status[data-state="success"] { color: #bce8ce; }
.official-form .submit-button { color: #090a0a; background: var(--paper); }
.official-form .submit-button:hover { background: #d8d8d6; }
.official-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.official-updates { display: grid; gap: 14px; }
.inbox { display: grid; gap: 4px; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; color: var(--paper); text-decoration: none; }
.inbox-row:hover { background: rgba(245, 245, 243, 0.08); }
.inbox-row .chat-ava { width: 40px; height: 40px; }
.inbox-row__text { min-width: 0; flex: 1; }
.inbox-row__text b, .inbox-row__text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row__text b { font-size: 13px; }
.inbox-row__text span { color: var(--quiet); font-size: 12px; }
@media (max-width: 800px) {
  .workspace-nav__links { grid-template-columns: repeat(6, 1fr); }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .official-stats { grid-template-columns: repeat(2, 1fr); }
  .official-grid { grid-template-columns: 1fr; }
  .updates-page, .official-panel { margin-top: 30px; }
}

/* ── Комментарии ── */
.comment-button { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border: 0; border-radius: 9px; color: var(--paper); background: transparent; font-size: 13px; font-weight: 600; }
.comment-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.comment-button:hover { background: rgba(255,255,255,.07); }
.comment-count:empty { display: none; }
.comments-dialog { width: min(540px, 94vw); height: min(700px, 88svh); padding: 0; border: 1px solid rgba(245,245,243,.16); border-radius: 18px; color: var(--paper); background: #15171a; overflow: hidden; }
.comments-dialog[open] { display: flex; flex-direction: column; }
.comments-dialog::backdrop { background: rgba(0,0,0,.65); }
.cmt-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(245,245,243,.12); font-weight: 650; }
.cmt-head button { padding: 2px 8px; border: 0; color: var(--paper); background: transparent; font-size: 22px; }
.cmt-list { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; }
.cmt-empty { margin: 40px 0; color: var(--quiet); font-size: 14px; text-align: center; }
.cmt { display: flex; gap: 10px; margin-bottom: 16px; }
.cmt--reply { margin: 12px 0 0 42px; }
.cmt-ava { display: grid; width: 34px; height: 34px; flex: none; place-items: center; overflow: hidden; border-radius: 50%; background: rgba(245,245,243,.14); font-size: 13px; font-weight: 700; }
.cmt-ava img { width: 100%; height: 100%; object-fit: cover; }
.cmt-main { min-width: 0; flex: 1; }
.cmt-text { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-text a { color: var(--paper); font-weight: 650; text-decoration: none; }
.cmt-text .official-badge { margin-left: 4px; vertical-align: middle; }
.cmt-media { display: block; margin-top: 7px; border-radius: 12px; object-fit: contain; }
.cmt-media--sticker { max-width: 150px; max-height: 150px; }
.cmt-media--gif { max-width: min(240px, 100%); max-height: 240px; }
.cmt-meta { display: flex; gap: 12px; margin-top: 5px; color: var(--quiet); font-size: 12px; }
.cmt-meta button { padding: 0; border: 0; color: var(--quiet); background: transparent; font-size: 12px; font-weight: 600; }
.cmt-meta button:hover { color: var(--paper); }
.cmt-replybar, .cmt-preview { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; border-top: 1px solid rgba(245,245,243,.1); background: rgba(245,245,243,.05); color: var(--quiet); font-size: 12px; }
.cmt-replybar[hidden], .cmt-preview[hidden], .cmt-gifs[hidden] { display: none; }
.cmt-replybar button, .cmt-preview button { border: 0; color: var(--paper); background: transparent; font-size: 18px; }
.cmt-preview img { max-width: 90px; max-height: 70px; border-radius: 9px; object-fit: contain; }
.cmt-gifs { max-height: 250px; overflow-y: auto; padding: 10px 12px; border-top: 1px solid rgba(245,245,243,.12); }
.cmt-gifs input { width: 100%; min-height: 38px; margin-bottom: 8px; padding: 0 12px; border: 1px solid rgba(245,245,243,.18); border-radius: 10px; outline: 0; color: var(--paper); background: rgba(245,245,243,.06); font: inherit; font-size: 13px; }
.cmt-gifs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cmt-gifs__grid button { aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: rgba(245,245,243,.08); }
.cmt-gifs__grid img { width: 100%; height: 100%; object-fit: cover; }
.cmt-gifs__note { grid-column: 1 / -1; margin: 6px 0; color: var(--quiet); font-size: 12px; line-height: 1.45; }
.cmt-gifs__link { grid-column: 1 / -1; min-height: 38px; border: 1px solid rgba(245,245,243,.2); border-radius: 10px; color: var(--paper); background: rgba(245,245,243,.08); font-size: 13px; }
.cmt-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(245,245,243,.12); }
.cmt-form textarea { flex: 1; min-width: 0; max-height: 110px; min-height: 40px; padding: 9px 13px; border: 1px solid rgba(245,245,243,.16); border-radius: 20px; outline: 0; color: var(--paper); background: rgba(245,245,243,.06); font: inherit; font-size: 14px; resize: none; }
.cmt-tool { display: inline-grid; min-width: 40px; height: 40px; flex: none; place-items: center; padding: 0 9px; border: 1px solid rgba(245,245,243,.16); border-radius: 20px; color: var(--paper); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.cmt-tool:hover, .cmt-tool.is-on { background: rgba(245,245,243,.12); }
.cmt-tool input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cmt-send { min-height: 40px; flex: none; padding: 0 16px; border: 0; border-radius: 20px; color: #fff; background: #3b82f6; font-weight: 650; }
.cmt-send:disabled { opacity: .5; }
.cmt-status { min-height: 0; margin: 0; padding: 0 16px 8px; color: #ffb5be; font-size: 12px; }
.cmt-status:empty { display: none; }

.delete-post-button { display: inline-grid; width: 40px; height: 40px; margin-left: auto; place-items: center; border: 0; border-radius: 9px; color: rgba(245,245,243,.6); background: transparent; }
.delete-post-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.delete-post-button:hover { color: #ff6b78; background: rgba(255,80,95,.12); }
.delete-post-button:disabled { opacity: .5; cursor: wait; }

/* ── Экран загрузки ── */
.splash { position: fixed; inset: 0; z-index: 9999; overflow: hidden; background: #000; animation: splash-failsafe 0.4s ease 20s forwards; }
.splash.is-leaving { opacity: 0; pointer-events: none; transition: opacity 0.45s ease; }
.splash__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #000; }
.splash__skip, .splash__sound { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); padding: 9px 16px; border: 1px solid rgba(245, 245, 243, 0.3); border-radius: 99px; color: #f5f5f3; background: rgba(0, 0, 0, 0.55); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }
.splash__skip { right: 22px; }
.splash__sound { left: 22px; }
.splash__sound[hidden] { display: none; }
.splash__skip:hover, .splash__sound:hover { background: rgba(245, 245, 243, 0.18); }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .splash { display: none; } }

/* ── Реклама ── */
.ad-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid rgba(245,245,243,.14); border-radius: 16px; color: var(--paper); background: linear-gradient(160deg, rgba(245,245,243,.07), rgba(245,245,243,.025)); text-decoration: none; }
a.ad-card:hover { border-color: rgba(245,245,243,.32); background: linear-gradient(160deg, rgba(245,245,243,.1), rgba(245,245,243,.04)); }
.ad-card__label { align-self: flex-start; padding: 3px 9px; border: 1px solid rgba(245,245,243,.22); border-radius: 99px; color: var(--quiet); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ad-card__image { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 11px; object-fit: cover; background: rgba(245,245,243,.08); }
.ad-card__title { font-size: 15px; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.ad-card__text { color: rgba(245,245,243,.7); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ad-card__button { align-self: flex-start; margin-top: 4px; padding: 8px 15px; border-radius: 99px; color: #090a0a; background: var(--paper); font-size: 13px; font-weight: 650; }
.ad-card--feed { display: none; margin-bottom: 18px; }
.ad-card--feed .ad-card__image { aspect-ratio: 16 / 10; }
@media (max-width: 1100px) { .ad-card--feed { display: flex; } }
.ad-list { display: grid; gap: 10px; margin-top: 22px; }
.ad-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(245,245,243,.12); border-radius: 14px; background: rgba(245,245,243,.03); }
.ad-row.is-paused { opacity: .6; }
.ad-row__thumb { display: grid; width: 52px; height: 52px; flex: none; place-items: center; overflow: hidden; border-radius: 10px; color: var(--quiet); background: rgba(245,245,243,.08); font-size: 11px; font-weight: 700; }
.ad-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-row__text { min-width: 0; flex: 1; }
.ad-row__text b, .ad-row__text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-row__text b { font-size: 14px; }
.ad-row__text small { margin-top: 2px; color: var(--quiet); font-size: 12px; }
.ad-row .update-delete { margin-left: 0; flex: none; }
.ad-row .ad-row__btn { border-color: rgba(245,245,243,.28); color: var(--paper); }
.ad-row .ad-row__btn:hover { background: rgba(245,245,243,.1); }
@media (max-width: 800px) { .ad-row { flex-wrap: wrap; } .ad-row__text { flex-basis: calc(100% - 70px); } }

/* ── Ark ── */
.workspace-main--ark { padding: 0; background: #000; }
.workspace-main--ark .workspace-header { display: none; }
.ark-feed { height: 100svh; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.ark-feed::-webkit-scrollbar { display: none; }
.ark-item { position: relative; display: flex; height: 100svh; align-items: flex-end; justify-content: center; gap: 16px; padding: 14px 0; scroll-snap-align: start; scroll-snap-stop: always; }
.ark-stage { position: relative; height: calc(100svh - 28px); width: calc((100svh - 28px) * 9 / 16); max-width: 100%; overflow: hidden; border-radius: 14px; background: #000; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.ark-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; cursor: pointer; }
.ark-stage.is-landscape .ark-video { object-fit: contain; }
.ark-stage .player-sound { top: 14px; right: 14px; bottom: auto; z-index: 3; }
.ark-stage .player-seek { z-index: 3; }
.ark-info { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: grid; gap: 9px; padding: 70px 16px 22px; background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; }
.ark-info a, .ark-info button { pointer-events: auto; }
.ark-author { display: flex; align-items: center; gap: 10px; }
.ark-author__link { display: flex; min-width: 0; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ark-avatar { display: grid; width: 36px; height: 36px; flex: none; place-items: center; overflow: hidden; border: 1.5px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(245,245,243,.2); font-size: 14px; font-weight: 700; }
.ark-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ark-author .follow-btn { min-height: 28px; padding: 0 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 8px; color: #fff; background: transparent; font-size: 12px; }
.ark-author .follow-btn.is-following { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.75); }
.ark-caption { margin: 0; color: #fff; font-size: 13px; line-height: 1.4; text-shadow: 0 1px 3px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ark-rail { display: flex; flex: none; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 8px; }
.ark-act { display: grid; justify-items: center; gap: 2px; color: var(--paper); font-size: 12px; font-weight: 650; }
.ark-act .like-button, .ark-act .comment-button, .ark-act .share-button, .ark-act .delete-post-button { width: 48px; height: 48px; min-height: 0; margin: 0; justify-content: center; padding: 0; border-radius: 50%; background: rgba(245,245,243,.1); }
.ark-act .like-button:hover, .ark-act .comment-button:hover, .ark-act .share-button:hover { background: rgba(245,245,243,.2); }
.ark-act .comment-count { display: none; }
.ark-empty { display: grid; height: 100svh; place-items: center; align-content: center; padding: 32px; text-align: center; }
.ark-empty h3 { margin: 0; font-size: 24px; letter-spacing: -0.04em; }
.ark-empty p { max-width: 36ch; margin: 10px 0 20px; color: rgba(245,245,243,.55); font-size: 14px; line-height: 1.5; }
@media (max-width: 800px) { .workspace-nav__links { grid-template-columns: repeat(7, 1fr); } }
@media (max-width: 720px) {
  .workspace-main--ark { min-height: 0; padding: 0; }
  .ark-feed { height: calc(100svh - 76px - env(safe-area-inset-bottom)); }
  .ark-empty { height: calc(100svh - 76px - env(safe-area-inset-bottom)); }
  .ark-item { height: calc(100svh - 76px - env(safe-area-inset-bottom)); padding: 0; }
  .ark-stage { width: 100%; height: 100%; border-radius: 0; }
  .ark-info { padding-right: 76px; }
  .ark-rail { position: absolute; z-index: 4; right: 8px; bottom: 76px; padding: 0; gap: 10px; }
  .ark-act { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .ark-act .like-button, .ark-act .comment-button, .ark-act .share-button, .ark-act .delete-post-button { width: 44px; height: 44px; background: rgba(0,0,0,.35); }
}
