@import url("./js/vendor/swiper.css");
.inner-page .main-area {
  --container-max-width: 1340px;
  --bg: #0b0b0b;
  --line: #292929;
  --muted: #929292;
  --text: #f5f5f3;
  --orange: #ff8a00;
  --surface: #151515;
  background: var(--bg);
  padding-bottom: 80px;
}

@media screen and (min-width: 768px) {
  .inner-page .main-area {
    padding-bottom: 120px;
  }
}

.frame {
  color: var(--text);
  line-height: normal;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
.frame,
.frame *,
.frame *::before,
.frame *::after {
  box-sizing: border-box;
}
.frame button,
.frame input,
.frame textarea,
.frame select {
  font: inherit;
}
.frame button,
.frame a,
.frame input,
.frame textarea,
.frame select {
  -webkit-tap-highlight-color: transparent;
}
.frame button,
.frame a {
  touch-action: manipulation;
}
.frame a {
  color: inherit;
  text-decoration: none;
}
.frame button {
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 24px;
  font-weight: 700;
}
.frame button:hover {
  border-color: #686868;
  background: #181818;
}
.frame button:disabled {
  opacity: 0.4;
  cursor: default;
}
.frame button.active,
.frame .primary {
  border-color: var(--orange);
  color: var(--orange);
  background: #211409;
}
.frame .primary:hover {
  background: #34200d;
}
.frame a:hover {
  color: var(--orange);
}
.frame :focus-visible {
  outline: unset;
}
.frame {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
}

.frame header {
  height: 108px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 38px;
}
.frame .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  letter-spacing: 2px;
  font-weight: 800;
  white-space: nowrap;
}
.frame .brand > span:last-child {
  font-weight: 500;
}
.frame .brandmark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-right: 6px;
  height: 28px;
}
.frame .brandmark i {
  display: block;
  width: 6px;
  background: var(--orange);
  border-radius: 3px;
  height: 12px;
}
.frame .brandmark i:nth-child(2) {
  height: 21px;
  background: #ff6800;
}
.frame .brandmark i:nth-child(3) {
  height: 29px;
  background: #ff4d00;
}
.frame .header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 15px;
  width: 310px;
}
.frame .header-search span {
  font-size: 28px;
  color: var(--muted);
}
.frame .header-search input {
  background: none;
  border: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  outline: none;
}
.frame .header-search:focus-within {
  border-color: var(--orange);
}
.frame kbd {
  color: #707070;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}
.frame .my-profile,
.frame .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #222;
  color: var(--orange);
  font-weight: 700;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}
.frame .layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
}
.frame .toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.frame .tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.frame .tabs button {
  min-width: 78px;
}
.frame .tabs button[data-action="sort"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.frame .post {
  display: flex;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 25px;
  margin-bottom: 20px;
}
.frame .post:hover {
  border-color: #3c3c3c;
}
.frame .voting {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 35px;
}
.frame .voting button {
  font-size: 27px;
  color: var(--muted);
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  line-height: 1.3;
}
.frame .voting button.active {
  color: var(--orange);
  background: none;
}
.frame .voting strong {
  font-size: 19px;
}
.frame .post-content {
  min-width: 0;
  flex: 1;
}
.frame .meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: flex;
  gap: 11px;
  align-items: center;
  flex-wrap: wrap;
}
.frame .topic-label {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.frame .meta a:not(.topic-label) {
  color: #b5b5b5;
}
.frame .post h2 {
  font-size: 23px;
  line-height: 1.38;
  letter-spacing: -0.4px;
  margin: 10px 0;
}
.frame .excerpt,
.frame .body-copy {
  color: #a3a3a3;
  line-height: 1.65;
  margin: 10px 0 16px;
  font-size: 17px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.frame .actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.frame .actions button,
.frame .actions a,
.frame .text-button {
  border: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
}
.frame .actions button:hover,
.frame .actions a:hover,
.frame .actions .active {
  color: var(--orange);
}
.frame .icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.frame .section-label {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 22px;
  font-weight: 700;
}
.frame .sidebar {
  padding-top: 7px;
}
.frame .topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #222;
  font-weight: 700;
  font-size: 18px;
}
.frame .topic-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.frame .community {
  margin-top: 35px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.frame .community p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}
.frame .community button {
  width: 100%;
  padding: 13px 7px;
  font-size: 16px;
}
.frame .sidebar-note {
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 22px;
}
.frame .media-placeholder {
  background: #191919;
  border-radius: 12px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4c4c4c;
  margin-top: 14px;
}
.frame .media-placeholder .icon {
  width: 42px;
  height: 42px;
}
.frame .post-image {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 14px;
}
.frame .breadcrumb {
  min-height: 1.6em;
  line-height: 1.6;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 27px;
  display: flex;
  gap: 9px;
}
.frame .breadcrumb span {
  color: var(--orange);
}
.frame .wide {
  width: 100%;
  max-width: none;
  margin: auto;
}
.frame .detail h1 {
  font-size: 34px;
  line-height: 1.28;
  margin: 15px 0 27px;
  letter-spacing: -0.6px;
}
.frame .detail .body-copy {
  font-size: 19px;
  line-height: 1.85;
}
.frame .reply-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 30px 0;
}
.frame .reply-box button {
  display: block;
  margin: 12px 0 0 auto;
}
.frame input,
.frame textarea,
.frame select {
  color: var(--text);
  background: #262625;
  border: 1px solid #393938;
  border-radius: 10px;
  padding: 16px 18px;
}
.frame textarea {
  width: 100%;
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}
.frame input::placeholder,
.frame textarea::placeholder {
  color: #7f7f7b;
}
.frame .comment {
  display: flex;
  gap: 15px;
  margin: 24px 0;
}
.frame .comment-content {
  flex: 1;
  min-width: 0;
}
.frame .comment p {
  color: #b5b5b5;
  line-height: 1.7;
  margin: 8px 0;
}
.frame .comment-children {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  margin-left: 20px;
}
.frame .comment-sort {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.frame .comment-sort select:not(.forum-select-native) {
  min-height: 46px;
  min-width: 145px;
  padding: 12px 16px;
}
.frame .topic-hero,
.frame .profile-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 18px;
  margin-bottom: 30px;
}
.frame .topic-hero h1,
.frame .topic-hero h2,
.frame .profile-hero h1,
.frame .profile-hero h2 {
  font-size: 31px;
  margin: 0 0 8px;
}
.frame .topic-hero p,
.frame .profile-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.frame .topic-hero button,
.frame .profile-hero button {
  margin-left: auto;
}
.frame .topic-icon {
  background: #28170e;
  color: var(--orange);
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 32px;
}
.frame .profile-hero .avatar {
  width: 88px;
  height: 88px;
  font-size: 32px;
  border: 2px solid #ff5900;
}
.frame .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.frame .stat {
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: center;
  padding: 22px;
}
.frame .stat strong {
  display: block;
  font-size: 30px;
  margin-bottom: 7px;
}
.frame .stat span {
  color: var(--muted);
}
.frame .profile-tabs {
  margin-bottom: 25px;
}
.frame .create h1 {
  font-size: 32px;
  margin: 0 0 30px;
}
.frame .type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.frame .type-tabs button {
  height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.frame .type-tabs .icon {
  width: 28px;
  height: 28px;
  color: var(--orange);
}
.frame .field {
  margin-bottom: 27px;
  display: block;
}
.frame .field > span {
  display: block;
  color: var(--muted);
  letter-spacing: 1.3px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.frame .field input {
  width: 100%;
}
.frame .field small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.frame .chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.frame .chips button {
  border-radius: 30px;
  padding: 9px 19px;
  color: var(--muted);
}
.frame .chips button.active {
  background: var(--orange);
  color: #0b0b0b;
}
.frame .create textarea {
  min-height: 190px;
}
.frame .drop-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 195px;
  border: 1px dashed #555;
  padding: 32px;
  text-align: center;
  border-radius: 13px;
  color: var(--muted);
  margin-bottom: 26px;
  cursor: pointer;
}
.frame .drop-zone > .icon {
  width: 40px;
  height: 40px;
  color: var(--orange);
  flex-shrink: 0;
  stroke-width: 2.2;
  margin-bottom: 20px;
}
.frame .drop-zone > #upload-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}
.frame .drop-zone small {
  margin-top: 10px;
  display: block;
  font-size: 14px;
  line-height: 1.5;
}
.frame .drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.frame .drop-zone:hover,
.frame .drop-zone:has(input:focus-visible) {
  border-color: var(--orange);
}
.frame .form-end {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 25px;
}
.frame .form-end:has([data-action="delete-topic"]) > a {
  margin-right: clamp(12px, 3vw, 40px);
}
.frame .search-large {
  width: 100%;
  padding: 22px;
  font-size: 24px;
  margin-bottom: 25px;
}
.frame .search-count {
  color: var(--muted);
  margin: 25px 0;
}
.frame .search-group {
  margin: 30px 0;
}
.frame .result {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin: 16px 0;
}
.frame .result.person {
  padding: 22px;
}
.frame .result.person > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.frame .result h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 8px 0;
}
.frame .result p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.6;
}
.frame mark {
  background: #63260c;
  color: #fff;
  padding: 1px 3px;
  border-radius: 2px;
}
.frame .empty-block {
  padding: 48px 25px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.frame footer {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 60px;
  padding: 28px 0;
  color: #666;
  font-size: 12px;
  border-top: 1px solid #222;
}
.frame footer a {
  letter-spacing: 1.3px;
}
.frame footer button {
  margin-left: auto;
  font-size: 12px;
  border: 0;
  color: #888;
  padding: 5px;
}
.frame dialog {
  background: #111;
  color: var(--text);
  border: 1px solid #444;
  border-radius: 18px;
  padding: 28px;
  max-width: 500px;
  width: calc(100% - 32px);
}
.frame dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.frame .dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.frame .dialog-head h2 {
  margin: 0;
}
.frame .dialog-head button {
  padding: 6px 12px;
  font-size: 22px;
}
.frame .person {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.frame .person small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.frame #toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #242321;
  border: 1px solid #685039;
  color: #fff;
  border-radius: 12px;
  padding: 14px 24px;
  transition: 0.2s;
  z-index: 10;
  max-width: 90vw;
}
.frame #toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.frame .settings {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
}
.frame .settings select {
  padding: 9px 14px;
}
.frame .link-preview {
  display: block;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  color: var(--orange);
  overflow-wrap: anywhere;
}
.frame .error {
  color: #ff976b;
}
@media (min-width: 1400px) {
  .frame .layout {
    gap: 42px;
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .frame .post {
    padding: 28px;
  }
  .frame .post h2 {
    font-size: 25px;
  }
}
@media (max-width: 1000px) {
  .frame {
    padding: 0 28px;
  }
  .frame .layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 25px;
  }
  .frame .post {
    padding: 20px;
    gap: 14px;
  }
  .frame .post h2 {
    font-size: 21px;
  }
  .frame .actions {
    gap: 14px;
  }
  .frame .toolbar button {
    padding: 12px 17px;
  }
  .frame .brand {
    font-size: 20px;
  }
}
@media (max-width: 760px) {
  .frame {
    margin: 0;
    border-radius: 0;
    padding: 0 18px;
  }
  .frame .brand {
    font-size: 17px;
    gap: 6px;
    letter-spacing: 1px;
  }
  .frame .brandmark {
    gap: 3px;
    margin: 0;
  }
  .frame .brandmark i {
    width: 4px;
  }
  .frame header {
    height: auto;
    min-height: 90px;
    gap: 14px;
    flex-wrap: wrap;
    padding: 23px 0 17px;
    margin-bottom: 24px;
  }
  .frame .header-search {
    order: 3;
    width: 100%;
    padding: 5px 12px;
  }
  .frame .my-profile {
    margin-left: auto;
    width: 35px;
    height: 35px;
  }
  .frame .layout {
    display: flex;
    flex-direction: column;
  }
  .frame .sidebar {
    order: -1;
    padding: 0;
  }
  .frame .sidebar .section-label,
  .frame .community,
  .frame .sidebar-note {
    display: none;
  }
  .frame .topic-list {
    display: flex;
    overflow: auto;
    gap: 9px;
    padding-bottom: 4px;
  }
  .frame .topic-row {
    font-size: 13px;
    white-space: nowrap;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 30px;
  }
  .frame .topic-row span {
    display: none;
  }
  .frame .toolbar {
    gap: 9px;
    margin-bottom: 18px;
  }
  .frame .tabs {
    gap: 7px;
  }
  .frame .tabs button {
    min-width: 0;
  }
  .frame .toolbar button {
    font-size: 14px;
    padding: 11px 13px;
  }
  .frame .post {
    border-radius: 13px;
    padding: 18px 14px;
    gap: 10px;
    margin-bottom: 14px;
  }
  .frame .voting {
    flex-basis: 27px;
  }
  .frame .voting strong {
    font-size: 16px;
  }
  .frame .voting button {
    font-size: 23px;
  }
  .frame .post h2 {
    font-size: 20px;
    letter-spacing: -0.3px;
  }
  .frame .meta {
    font-size: 12px;
    gap: 7px;
  }
  .frame .excerpt {
    font-size: 15px;
  }
  .frame .actions {
    gap: 13px;
  }
  .frame .actions button,
  .frame .actions a {
    font-size: 12px;
  }
  .frame .media-placeholder {
    min-height: 170px;
  }
  .frame .detail h1 {
    font-size: 26px;
  }
  .frame .detail .body-copy {
    font-size: 16px;
  }
  .frame .detail .post {
    gap: 12px;
  }
  .frame .topic-hero,
  .frame .profile-hero {
    padding: 20px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .frame .topic-hero h1,
  .frame .topic-hero h2,
  .frame .profile-hero h1,
  .frame .profile-hero h2 {
    font-size: 23px;
  }
  .frame .topic-hero p,
  .frame .profile-hero p {
    font-size: 14px;
  }
  .frame .topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .frame .topic-hero button,
  .frame .profile-hero button {
    padding: 10px 18px;
  }
  .frame .profile-hero .avatar {
    width: 60px;
    height: 60px;
    font-size: 25px;
  }
  .frame .stats {
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
  }
  .frame .stat {
    padding: 16px;
  }
  .frame .stat strong {
    font-size: 26px;
  }
  .frame .profile-tabs button {
    padding: 10px 13px;
    font-size: 14px;
  }
  .frame .type-tabs {
    gap: 10px;
  }
  .frame .type-tabs button {
    height: 88px;
    padding: 12px;
  }
  .frame .chips {
    gap: 7px;
  }
  .frame .chips button {
    padding: 9px 12px;
    font-size: 14px;
  }
  .frame .create h1 {
    font-size: 28px;
  }
  .frame .comment-children {
    padding-left: 10px;
    margin-left: 5px;
  }
  .frame .comment {
    gap: 10px;
  }
  .frame .comment .avatar {
    width: 33px;
    height: 33px;
    font-size: 12px;
  }
  .frame .comment .actions {
    gap: 12px;
  }
  .frame footer {
    flex-wrap: wrap;
    margin-top: 38px;
    gap: 15px;
  }
  .frame footer span {
    display: none;
  }
  .frame .breadcrumb {
    line-height: 1.6;
    flex-wrap: wrap;
  }
  .frame .search-large {
    font-size: 20px;
    padding: 16px;
  }
}

/* Первая загрузка: геометрия ленты до получения JSON. */
.frame .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.frame .skeleton {
  display: block;
  background: #1c1c1b;
  border-radius: 6px;
  animation: forum-skeleton-pulse 1.6s ease-in-out infinite;
}

.frame .skeleton-button {
  width: 78px;
  height: 50px;
  border-radius: 12px;
}

.frame .skeleton-new-post {
  width: 135px;
}

.frame .skeleton-voting {
  flex: 0 0 35px;
  height: 96px;
}

.frame .skeleton-meta {
  width: 42%;
  height: 14px;
  margin: 5px 0 19px;
}

.frame .skeleton-title {
  width: 90%;
  height: 27px;
  margin-bottom: 20px;
}

.frame .skeleton-line {
  width: 100%;
  height: 16px;
  margin-bottom: 12px;
}

.frame .skeleton-line-short {
  width: 73%;
}

.frame .skeleton-actions {
  width: 62%;
  height: 16px;
  margin-top: 27px;
}

.frame .skeleton-media {
  height: 220px;
  border-radius: 12px;
}

.frame .skeleton-sidebar-heading {
  width: 85px;
  height: 13px;
  margin: 3px 0 26px;
}

.frame .skeleton-topic {
  height: 20px;
  margin: 23px 0 39px;
  width: 80%;
}

.frame .skeleton-community {
  height: 155px;
  margin-top: 35px;
  border-radius: 16px;
}

@keyframes forum-skeleton-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame .skeleton {
    animation: none;
  }
}

@media (max-width: 760px) {
  .frame .skeleton-toolbar {
    gap: 9px;
  }
  .frame .skeleton-button {
    width: 55px;
    height: 42px;
  }
  .frame .skeleton-new-post {
    width: 100px;
  }
  .frame .skeleton-voting {
    flex-basis: 27px;
  }
  .frame .skeleton-title {
    height: 65px;
  }
  .frame .skeleton-meta {
    width: 70%;
  }
  .frame .skeleton-media {
    height: 170px;
  }
  .frame .skeleton-actions {
    width: 85%;
  }
  .frame .skeleton-sidebar-heading,
  .frame .skeleton-community {
    display: none;
  }
  .frame .skeleton-topic-list {
    display: flex;
    gap: 9px;
    overflow: hidden;
  }
  .frame .skeleton-topic {
    flex: 0 0 98px;
    height: 37px;
    margin: 0;
    border-radius: 30px;
  }
}

/* Одинаковая геометрия панели для коротких и длинных переводов. */
@media (max-width: 760px) {
  .frame .toolbar {
    flex-wrap: wrap;
  }
  .frame .toolbar > .tabs {
    flex-basis: 100%;
  }
  .frame .toolbar > a,
  .frame .toolbar > .skeleton-new-post {
    margin-left: auto;
  }
  .frame .toolbar button {
    white-space: nowrap;
  }
}

/* Custom select: общий компонент для языка, сортировки и причины жалобы. */
.frame .forum-select {
  display: inline-block;
  position: relative;
  min-width: 170px;
  max-width: 100%;
  vertical-align: middle;
}
.frame .forum-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}
.frame .forum-select-trigger {
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  background: #171716;
  border: 1px solid #363635;
  border-radius: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition:
    border-color 150ms,
    background 150ms;
}
.frame .forum-select-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-right: 1.5px solid #a4a4a0;
  border-bottom: 1.5px solid #a4a4a0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms;
}
.frame .forum-select-trigger:hover {
  background: #20201e;
  border-color: #68685e;
}
.frame .forum-select-trigger.is-placeholder {
  color: var(--muted);
}
.frame .forum-select-trigger[aria-invalid="true"] {
  border-color: #ff976b;
}
.frame .forum-select.is-open .forum-select-trigger {
  border-color: var(--orange);
  background: #1d1913;
}
.frame .forum-select.is-open .forum-select-trigger::after {
  transform: translateY(2px) rotate(225deg);
  border-color: var(--orange);
}
.frame .forum-select-list {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #191918;
  border: 1px solid #3b3934;
  border-radius: 12px;
  box-shadow: 0 14px 36px #0008;
}
.frame .forum-select-list[hidden] {
  display: none;
}
.frame .forum-select.opens-up .forum-select-list {
  top: auto;
  bottom: calc(100% + 8px);
}
.frame .forum-select-list [role="option"] {
  position: relative;
  padding: 12px 34px 12px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #c7c7c3;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.frame .forum-select-list [role="option"]:hover,
.frame .forum-select-list .is-focused {
  background: #292824;
  color: #fff;
}
.frame .forum-select-list [aria-selected="true"] {
  color: var(--orange);
  background: #302217;
}
.frame .forum-select-list [aria-selected="true"]::after {
  content: "✓";
  position: absolute;
  right: 12px;
  font-size: 15px;
}
.frame .forum-select-list [aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
.frame .field > .forum-select {
  width: 100%;
  letter-spacing: normal;
  margin-bottom: 0;
}
.frame .comment-sort {
  flex-wrap: wrap;
}
.frame .comment-sort .forum-select {
  min-width: 145px;
}
/* Фокус использует те же плавные декоративные переходы, что и наведение. */
.frame button,
.frame input,
.frame textarea,
.frame select,
.frame a {
  outline: 2px solid transparent;
  outline-offset: 4px;
}
.frame button:focus,
.frame input:not([type="file"]):not(.forum-select-native):focus,
.frame textarea:focus,
.frame select:not(.forum-select-native):focus {
  border-color: var(--orange);
}
.frame button:focus {
  background-color: #181818;
}
.frame button.active:focus,
.frame .primary:focus,
.frame .forum-select-trigger:focus {
  background-color: #34200d;
}
.frame button:focus-visible,
.frame input:not([type="file"]):not(.forum-select-native):focus-visible,
.frame textarea:focus-visible,
.frame select:not(.forum-select-native):focus-visible,
.frame a:focus-visible {
  outline-color: var(--orange);
}
/* Поле поиска подсвечивает общую рамку; загрузка сохраняет пунктир. */
.frame .header-search input:focus-visible {
  outline: none;
}
.frame .drop-zone:focus-within {
  border-color: var(--orange);
}

/* Плавное оформление состояний без изменения размеров элементов. */
.frame button,
.frame input,
.frame textarea,
.frame select,
.frame a,
.frame .header-search,
.frame .drop-zone,
.frame .forum-select-list [role="option"] {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    outline-color 180ms ease,
    box-shadow 180ms ease;
}

.frame .forum-select-trigger::after {
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .frame button,
  .frame input,
  .frame textarea,
  .frame select,
  .frame a,
  .frame .header-search,
  .frame .drop-zone,
  .frame .forum-select-list [role="option"],
  .frame .forum-select-trigger::after {
    transition: none;
  }
}

.frame .brand-logo,
.frame footer img {
  display: block;
  width: 69px;
  height: 39px;
  flex-shrink: 0;
}

/* Точная дата справа от метаданных детального поста. */
.frame .meta .post-published-at {
  margin-left: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .frame .meta .post-published-at {
    flex-basis: 100%;
    margin-left: 0;
  }
}

.frame #feed-loader:empty {
  display: none;
}
.frame #feed-sentinel {
  min-height: 48px;
  text-align: center;
  padding: 12px 0;
}

/* Текстовые заполнители наследуют размеры строки реального элемента. */
.frame .skeleton-text {
  display: inline-block;
  width: var(--skeleton-width, 12ch);
  max-width: 100%;
  height: 0.85em;
  margin: 0;
  vertical-align: baseline;
}
.frame .hero-copy {
  flex: 1;
  min-width: 0;
}
.frame .topic-icon {
  flex-shrink: 0;
}
.frame .skeleton-topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid transparent;
}

.frame .route-pagination {
  max-width: 1340px;
  margin: 24px auto;
}
.frame #route-loader {
  margin-top: 20px;
}
.frame .share-panel {
  display: grid;
  gap: 20px;
}
.frame .share-panel .field {
  margin: 0;
  min-width: 0;
}
.frame .share-url {
  width: 100%;
  min-width: 0;
}
.frame .share-status {
  margin: 0;
  color: var(--muted);
}
.frame .share-copy {
  justify-self: start;
}
.frame .comment {
  scroll-margin-block: 24px;
}

.frame .search-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.frame .search-score svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.frame .comment-author {
  min-height: 40px;
  gap: 10px;
}
.frame .comment-post-author {
  color: var(--orange);
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
}
.frame .comment-author > a:first-child {
  display: flex;
  flex-shrink: 0;
}
.frame .comment-sidebar {
  width: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.frame .comment-sidebar .comment-voting {
  flex: none;
}

.frame .comment-voting button {
  font-size: 22px;
}
.frame .comment-voting strong {
  font-size: 15px;
}
@media (max-width: 760px) {
  .frame .comment-voting button {
    font-size: 18px;
  }
  .frame .comment-voting strong {
    font-size: 13px;
  }
}

.frame .comment-children.comment-children-flat {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.frame .comment-delete-form p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}
.frame .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.frame .reply-box .dialog-actions button {
  margin: 0;
}

.frame .attachment-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.frame .attachment-preview {
  position: relative;
  width: 120px;
  height: 90px;
  margin: 0;
  min-width: 0;
}
.frame .attachment-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #333;
  object-fit: contain;
  border-radius: 10px;
  background: var(--surface);
}

.frame .post-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.frame .post-attachment {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 90px;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
}
.frame .post-attachment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame .post-attachment span {
  padding: 8px;
  overflow-wrap: anywhere;
}
.frame .post-attachment:hover,
.frame .post-attachment:focus-visible {
  border-color: #ff9800;
}

/* Compact subscription lists only; full profile and section headers keep their sizing. */
.frame .profile-subscription-card {
  padding: 22px;
  margin: 16px 0;
  gap: 14px;
  border-radius: 14px;
}
.frame .profile-subscription-card .avatar,
.frame .profile-subscription-card .topic-icon {
  width: 42px;
  height: 42px;
  font-size: 18px;
  border: 0;
}
.frame .profile-subscription-card .topic-icon {
  border-radius: 10px;
}
.frame .profile-subscription-card h1,
.frame .profile-subscription-card h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 4px;
}
.frame .profile-subscription-card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.frame .profile-subscription-card button {
  font-size: 14px;
  padding: 9px 14px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .frame .profile-subscription-card {
    padding: 16px;
    gap: 12px;
  }
  .frame .profile-subscription-card .hero-copy {
    flex-basis: calc(100% - 54px);
  }
  .frame .profile-subscription-card button {
    margin-left: 54px;
  }
}

.frame .actions a.has-unread-comments {
  color: var(--orange);
}

.frame .topic-row span.has-unread-topics,
.frame .profile-subscription-card .has-unread-topics {
  color: var(--orange);
}

.frame .profile-hero {
  position: relative;
}
.frame .profile-hero:has(.profile-settings-button) {
  padding-right: 76px;
}
.frame .profile-settings-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}
.frame .profile-settings-button:hover {
  color: var(--orange);
  border-color: currentColor;
}
.frame .profile-settings-button .icon {
  width: 22px;
  height: 22px;
}
.frame .profile-settings-panel {
  display: grid;
  gap: 24px;
}
.frame .notification-settings {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.frame .settings-coming-soon {
  color: var(--muted);
}

/* Let the settings dropdown extend beyond the dialog without resizing it. */
.frame .profile-settings-panel .field {
  margin-bottom: 0;
}
.frame dialog:has(.profile-settings-panel) {
  overflow: visible;
}
.frame .notification-settings > span:first-child {
  color: var(--muted);
  letter-spacing: 1.3px;
  font-weight: 700;
  font-size: 13px;
}

.frame .profile-settings-panel .notification-settings {
  display: none;
}

/* Forum-only profile editing controls. */
.frame .avatar img,
.frame .my-profile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}
.frame .profile-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.frame .profile-name h1 {
  overflow-wrap: anywhere;
}
.frame .profile-hero .profile-edit-name {
  border: 0;
  padding: 6px;
  color: var(--muted);
  background: transparent;
  flex-shrink: 0;
}
.frame .profile-hero .profile-edit-name:hover {
  color: var(--orange);
}
.frame .profile-hero .profile-avatar-button {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  flex-shrink: 0;
}
.frame .profile-hero .profile-avatar-button .avatar {
  margin: 0;
}
.frame .avatar-edit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgb(0 0 0 / 60%);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.frame .profile-hero .profile-avatar-button:hover .avatar-edit-overlay,
.frame .profile-hero .profile-avatar-button:focus-visible .avatar-edit-overlay {
  opacity: 1;
}
@media (hover: none) {
  .frame .avatar-edit-overlay {
    opacity: 1;
    background: rgb(0 0 0 / 30%);
  }
}
.frame .profile-edit-form {
  display: grid;
  gap: 20px;
}
.frame .profile-edit-form .field {
  margin: 0;
}
.frame .profile-avatar-preview {
  display: flex;
  justify-content: center;
}
.frame .profile-avatar-preview .avatar {
  width: 120px;
  height: 120px;
  font-size: 32px;
  border-radius: 50%;
}
.frame .profile-edit-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.frame .profile-edit-error {
  margin: 0;
  color: #ff8d7a;
}
.frame .profile-edit-actions {
  display: flex;
  justify-content: flex-end;
}

.frame .profile-hero .profile-avatar-button,
.frame .profile-hero .profile-edit-name {
  margin-left: 0;
}
@media (max-width: 600px) {
  .frame .profile-hero:has(.profile-avatar-button) {
    padding-right: 20px;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .frame .profile-hero:has(.profile-avatar-button) .profile-name {
    padding-right: 28px;
    gap: 6px;
    flex-wrap: wrap;
  }
}

.frame .avatar img.avatar-logo,
.frame .my-profile img.avatar-logo {
  object-fit: contain;
  padding: 6px;
}

.frame .profile-edit-actions {
  gap: 12px;
  flex-wrap: wrap;
}
.frame .profile-edit-actions .profile-remove-avatar {
  margin-right: auto;
  color: #f08075;
  border-color: #a5443b;
  background: #291310;
}
.frame .profile-edit-actions .profile-remove-avatar:hover:not(:disabled) {
  border-color: #f08075;
  background: #3b1a16;
}
.frame .profile-edit-actions button[type="submit"] {
  color: var(--orange);
  border-color: var(--orange);
  background: #211409;
}
.frame .profile-edit-actions button[type="submit"]:hover:not(:disabled) {
  background: #34200d;
}
.frame .profile-edit-actions button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Keep the image and hover overlay inside the same circular avatar bounds. */
.frame .avatar,
.frame .my-profile {
  overflow: hidden;
}
.frame .profile-hero .profile-avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
/* Contain the upload preview within its avatar bounds. */
.frame .profile-avatar-preview .avatar {
  overflow: hidden;
}
.frame .profile-avatar-preview .avatar img {
  object-fit: contain;
  border-radius: 0;
  padding: 0;
}

.frame .profile-comment-card > h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.frame .profile-comment-card > .comment {
  margin: 0;
}
.frame .profile-comment-card .comment-author {
  flex-wrap: wrap;
}
.frame .profile-comment-card .comment-content > p {
  font-size: 16px;
  line-height: 1.7;
}

.frame .profile-comment-card {
  cursor: pointer;
}

/* Lexical post composer */
.frame .post-editor {
  border: 1px solid var(--line, #333);
  border-radius: 16px;
  background: #111;
  overflow: hidden;
}
.frame .post-editor:focus-within {
  border-color: var(--orange);
}
.frame .editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid #303030;
}
.frame .editor-toolbar button {
  min-width: 38px;
  height: 38px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 17px;
}
.frame .editor-toolbar button:hover,
.frame .editor-toolbar button[aria-pressed="true"] {
  background: #33220f;
  color: var(--orange);
}
.frame .editor-surface {
  position: relative;
}
.frame .editor-input,
.frame .editor-placeholder {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.65;
}
.frame .editor-input {
  min-height: 220px;
  padding: 18px;
  outline: none;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.frame .editor-placeholder {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  color: var(--muted);
  pointer-events: none;
  display: none;
}
.frame .editor-empty .editor-placeholder {
  display: block;
}
.frame .editor-paragraph {
  font: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0 0 12px;
}
.frame .editor-bold {
  font-weight: 700;
}
.frame .editor-italic {
  font-style: italic;
}
.frame .editor-strike {
  text-decoration: line-through;
}
.frame .editor-underline {
  text-decoration: underline;
}
.frame .editor-underline.editor-strike {
  text-decoration: underline line-through;
}
.frame .editor-code,
.frame .body-copy code {
  font-family: monospace;
  background: #272727;
  padding: 2px 5px;
  border-radius: 4px;
}
.frame .editor-quote,
.frame .body-copy blockquote {
  margin: 12px 0;
  padding: 5px 16px;
  border-left: 3px solid var(--orange);
  color: var(--muted);
}
.frame .editor-input ul,
.frame .editor-input ol,
.frame .body-copy ul,
.frame .body-copy ol {
  padding-left: 26px;
}
.frame .editor-input a,
.frame .body-copy a {
  color: var(--orange);
}
.frame .editor-image {
  margin: 16px 0;
}
.frame .editor-image img {
  display: block;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
}
.frame .editor-footer {
  padding: 6px 16px 12px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.frame .editor-link-panel:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #1b1b1b;
}
.frame .editor-link-panel input {
  flex: 1;
  min-width: 150px;
}
.frame .editor-link-panel button {
  padding: 8px 12px;
}
.frame .post-editor [hidden] {
  display: none !important;
}
.frame .editor-toolbar button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
@media (max-width: 600px) {
  .frame .editor-input {
    min-height: 180px;
    padding: 12px;
  }
  .frame .editor-placeholder {
    top: 12px;
    left: 12px;
  }
}
.frame .editor-image {
  position: relative;
}
.frame .editor-image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #a5443b;
  background: #291310;
  color: #f08075;
  border-radius: 50%;
  font-size: 22px;
}
.frame .editor-toolbar .icon {
  width: 18px;
  height: 18px;
}
.frame .editor-image-caption {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #191919;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.frame .post-inline-photo {
  margin: 16px 0;
}
.frame .post-inline-photo figcaption {
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}
.frame .editor-image-selected {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 8px;
}
.frame .editor-image img {
  cursor: pointer;
}

/* Floating link editor and intrinsic image sizing. */
.frame .post-editor {
  position: relative;
  overflow: visible;
}
.frame .editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
.frame .editor-toolbar button .icon {
  display: block;
  margin: 0;
  flex: none;
}
.frame .editor-link-panel:not([hidden]) {
  position: absolute;
  z-index: 20;
  width: 390px;
  max-width: calc(100% - 16px);
  flex-wrap: nowrap;
  align-items: center;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 10px;
  box-shadow: 0 8px 28px #0008;
}
.frame .editor-link-panel input {
  width: 0;
  min-width: 0;
  flex: 1;
  padding: 10px;
}
.frame .editor-link-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  height: 36px;
  min-width: 36px;
  line-height: 1;
}
.frame .editor-image {
  width: fit-content;
  max-width: 100%;
}
.frame .editor-input .editor-image > img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  min-width: 0;
}
.frame .editor-image-caption {
  min-width: 0;
  box-sizing: border-box;
}
.frame .editor-image-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid #444;
  background: #171717ef;
  color: #f5f5f3;
  border-radius: 8px;
}
.frame .editor-image-remove:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: #211409;
}
.frame .editor-image-remove svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.frame .body-copy a[href] {
  cursor: pointer;
}

.frame .editor-image[data-align="center"],
.frame .post-align-center .post-inline-photo {
  margin-left: auto;
  margin-right: auto;
}
.frame .editor-image[data-align="right"],
.frame .post-align-right .post-inline-photo {
  margin-left: auto;
  margin-right: 0;
}
.frame .editor-image[data-align="left"] {
  margin-left: 0;
  margin-right: auto;
}
.frame .post-align-left {
  text-align: left;
}
.frame .post-align-center {
  text-align: center;
}
.frame .post-align-right {
  text-align: right;
}

.frame .post-inline-photo {
  width: fit-content;
  max-width: 100%;
}
.frame .post-inline-photo .post-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

.frame .editor-link-panel:not([hidden]) {
  flex-direction: column;
  align-items: stretch;
  padding: 14px;
  gap: 12px;
}
.frame .editor-link-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}
.frame .editor-link-panel label input {
  width: 100%;
  flex: none;
  font-size: 16px;
}
.frame .editor-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.frame .editor-link-actions [data-editor-action="link-save"] {
  color: var(--orange);
  border-color: var(--orange);
  background: #211409;
}

/* Post tags */
.frame .post-tags-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.frame .post-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.frame .post-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 12px 8px 14px;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  border: 1px solid #704b19;
  border-radius: 24px;
  background: #ff950015;
  color: #ff9500;
}
.frame .post-tag > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.frame .post-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 20px;
  min-height: 0;
  font-weight: 400;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
}
.frame .post-tags-open {
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  border-color: var(--line);
  border-radius: 24px;
}
.frame .post-tag-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 170px;
  font-size: 15px;
  max-width: 100%;
}
.frame .post-tag-entry input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px 40px 8px 14px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 24px;
  line-height: 20px;
}
.frame .post-tag-entry button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--orange);
}
.frame .post-tag-entry button:hover {
  background: #ff950020;
}
.frame .post-tag-chips:empty {
  display: none;
}
.frame #post-tags-error {
  flex-basis: 100%;
  margin: 0;
}
.frame #post-tags-error {
  color: #ef8a80;
}
.frame .post-tags-field [hidden] {
  display: none;
}

.frame .post-tag-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  border-radius: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.frame .post-tag-label:hover {
  text-decoration: underline;
}

.frame .post-tag-remove {
  margin: 0;
}
.frame .post-tag-remove svg {
  display: block;
  flex-shrink: 0;
}

.frame .detail-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.frame .detail-post-tags .post-tag {
  padding: 8px 14px;
}

.frame .tag-search-selection {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.frame .tag-search-selection .post-tag {
  padding: 8px 14px;
}

.frame #dialog.post-edit-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
}
.frame .post-edit-dialog .create {
  width: 100%;
  margin: 0;
}
.frame .draft-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.frame .draft-card h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.frame .draft-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.frame .draft-card-actions .draft-delete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}
.frame .draft-delete-icon .icon {
  width: 20px;
  height: 20px;
  margin: 0;
}
@media (max-width: 600px) {
  .frame .draft-card-actions {
    max-width: 100%;
  }
  .frame .draft-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

.frame .meta .post-dates,
.frame .meta > .post-edited-at {
  margin-left: auto;
  text-align: right;
}
.frame .meta .post-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 8px;
}
.frame .post-dates .post-edited-at::before {
  content: "(";
}
.frame .post-dates .post-edited-at::after {
  content: ")";
}
.frame .meta .post-dates .post-published-at {
  margin: 0;
  flex-basis: auto;
}
.frame .post-edited-at {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .frame .meta .post-dates,
  .frame .meta > .post-edited-at {
    flex-basis: 100%;
  }
}

.frame .post-view-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.frame .post-view-count .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.frame .draft-delete {
  color: #ed8275;
  border-color: #773c35;
}
.frame .draft-delete:hover {
  background: #351b18;
}

.frame .field .post-field-error {
  color: #ed8275;
}
.frame .field [aria-invalid="true"] {
  outline: 1px solid #ed8275;
}

.frame .editable-post-attachment {
  position: relative;
  width: 120px;
}
.frame .editable-post-attachment .post-attachment {
  width: 100%;
}
.frame .attachment-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--orange);
  border-radius: 50%;
  background: #191919;
  color: #ed8275;
}
.frame .attachment-remove:hover,
.frame .attachment-remove:focus-visible {
  background: #351b18;
  color: #ff9689;
  border-color: var(--orange);
}
.frame .attachment-preview,
.frame .editable-post-attachment {
  overflow: visible;
}
.frame .attachment-previews,
.frame .post-attachments:has(.editable-post-attachment) {
  gap: 20px;
  padding: 8px 8px 0 0;
}
.frame .attachment-remove .icon {
  width: 16px;
  height: 16px;
  margin: 0;
}

.frame .editable-post-attachment img {
  object-fit: contain;
}

.frame .post-video,
.frame .video-upload-preview video {
  display: block;
  width: 100%;
  max-height: 540px;
  border-radius: 10px;
  background: #000;
  object-fit: contain;
}
.frame .video-upload-preview {
  position: relative;
  overflow: visible;
  margin: 16px 8px 0 0;
}
.frame .post-video {
  margin: 16px 0;
}

.frame .body-copy > .post-video {
  margin: 0;
}
.frame .post-video-description {
  margin-top: 16px;
}

.frame .notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  color: var(--muted);
  border-radius: 50%;
}
.frame .notification-bell[hidden],
.frame .notification-badge[hidden] {
  display: none;
}
.frame .notification-bell:hover,
.frame .notification-bell:focus-visible {
  color: var(--orange);
  background: #ff8a0014;
}
.frame .notification-bell svg {
  width: 24px;
  height: 24px;
}
.frame .notification-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #d94137;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid var(--bg);
}
.frame .notification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.frame .notification-heading h2 {
  margin: 0;
}
.frame .notification-tabs {
  flex-wrap: wrap;
}
.frame .notification-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}
.frame .notification-tab.active {
  color: var(--orange);
  border-color: var(--orange);
  background: #ff8a0014;
}
.frame .notification-tab-count {
  font-size: 12px;
}
.frame .notification-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 16px;
}
.frame .notification-card.is-unread {
  border-color: #805313;
  background: #ff8a0008;
}
.frame .notification-kind-icon {
  color: var(--orange);
  padding-top: 3px;
}
.frame .notification-copy {
  flex: 1;
  min-width: 0;
}
.frame .notification-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.frame .notification-meta a {
  color: var(--text);
}
.frame .notification-title {
  display: inline-block;
  color: var(--orange);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.frame .notification-excerpt {
  color: var(--muted);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.frame .notification-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
@media (max-width: 680px) {
  .frame .notification-card {
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }
  .frame .notification-card > time {
    width: 100%;
    text-align: right;
  }
  .frame .notification-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .frame .notification-tab {
    padding: 10px 14px;
  }
}

/* Account controls share a size and sit together beside the compact search. */
.frame .header-account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.frame .header-account .my-profile,
.frame .header-account .notification-bell {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin: 0;
}
.frame .header-search {
  width: 300px;
  min-height: 46px;
  padding: 10px 14px;
  gap: 10px;
}
.frame .header-search > span {
  font-size: 24px;
  line-height: 1;
}
.frame .toolbar {
  align-items: center;
}
.frame .toolbar button,
.frame .notification-tab {
  min-height: 48px;
  padding: 12px 20px;
  line-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.frame .toolbar > a {
  display: inline-flex;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .frame .header-account {
    margin-left: auto;
    gap: 8px;
  }
  .frame .header-search {
    width: 100%;
    padding: 8px 12px;
  }
}

.frame .post-content {
  min-width: 0;
}
.frame .post-gallery {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 16px 0;
}
.frame .post-gallery .swiper-slide {
  height: auto;
}
.frame .post-gallery .swiper-slide > a {
  display: block;
}
.frame .post-gallery .post-image {
  display: block;
  width: 100%;
  margin: 0;
}
.frame .post-gallery .gallery-prev,
.frame .post-gallery .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #191919e6;
  color: white;
  cursor: pointer;
}
.frame .post-gallery .gallery-prev {
  left: 12px;
}
.frame .post-gallery .gallery-next {
  right: 12px;
}
.frame .post-gallery button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.frame .post-gallery .swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}
.frame .post-gallery .gallery-counter {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 20px;
  background: #191919cc;
  color: white;
  font-size: 13px;
  pointer-events: none;
}
.frame .post-gallery .swiper-notification {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

