
body.forum-topic-page {
  --ft-ink: #1f2937;
  --ft-muted: #596458;
  --ft-line: #dce7db;
  --ft-green: #46652f;
  --ft-soft: #f1f6ee;
  --ft-page: #f7faf7;
  --ft-width: 81.25rem;
  --ft-gutter: var(--site-header-gutter, clamp(.85rem, 3.1vw, 2rem));
  --ft-gap: clamp(.7rem, 1.5vw, 1.15rem);
  --ft-header-height: var(--site-header-reserve, 4.375rem);
  --ft-safe-bottom: max(.65rem, env(safe-area-inset-bottom, 0px));
  --ft-dock-clearance: calc(3.5rem + var(--ft-safe-bottom));
  background: var(--ft-page);
  color: var(--ft-ink);
}

body.forum-topic-page:has(.site-header.is-scrolled) {
  --ft-header-height: var(--site-header-compact, 3.5rem);
}

.forum-topic-page .mini-hero {
  padding-block: clamp(.95rem, 2.35vw, 1.85rem);
  border-block-end: 0;
  background: radial-gradient(ellipse at 12% 0%, #e4efe5, transparent 66%), linear-gradient(180deg, #f0f5ee, var(--ft-page));
}

.forum-topic-page .mini-hero__backdrop { display: none; }

.forum-topic-page .mini-hero__layout,
.forum-detail__workspace {
  width: min(100%, var(--ft-width));
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--ft-gutter);
}

.forum-topic-page .mini-hero__crumbs {
  justify-content: flex-start;
  margin-block-end: .6rem;
  color: var(--ft-muted);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.forum-topic-page .mini-hero__heading { align-items: start; }

.forum-topic-page .mini-hero__copy {
  min-width: 0;
  text-align: start;
}

.forum-topic-page .mini-hero h1 {
  margin: 0 0 .38rem;
  color: var(--ft-ink);
  font-size: clamp(1.125rem, 2.1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -.032em;
  overflow-wrap: anywhere;
}

.forum-topic-page .mini-hero p {
  margin: 0;
  color: var(--ft-muted);
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.54;
}

.forum-detail__top {
  display: block;
  scroll-margin-top: var(--site-header-reserve, 4.375rem);
}

.forum-detail__workspace,
.forum-detail__main,
.forum-detail__side {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--ft-gap);
}

.forum-detail__workspace {
  align-items: start;
  padding-block: .32rem clamp(2.4rem, 5vw, 4.15rem);
}

.forum-detail__workspace [hidden] { display: none !important; }

.forum-detail__workspace :is(#yanitlar, [id^="reply-"], .ft-composer) {
  scroll-margin-top: calc(var(--ft-header-height) + .75rem);
}

.ft-panel {
  min-width: 0;
  border: 1px solid var(--ft-line);
  border-radius: .95rem;
  background: #fff;
}

.forum-detail__owner {
  position: sticky;
  z-index: 30;
  top: calc(var(--ft-header-height) + .18rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .49rem;
  padding: .43rem .55rem;
  border-radius: 999px;
  transition: top .22s ease;
}

.ft-profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .52rem;
  color: var(--ft-ink);
  text-decoration: none;
}

.ft-avatar {
  position: relative;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ft-line);
  border-radius: 50%;
  background: var(--ft-soft);
  color: var(--ft-green);
  font-size: .72rem;
  font-weight: 650;
}

.ft-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ft-profile__copy,
.ft-reply__byline {
  display: grid;
  min-width: 0;
  gap: .13rem;
}

.ft-profile__label,
.ft-profile__meta {
  color: var(--ft-muted);
  font-size: .64rem;
  line-height: 1.32;
}

.ft-profile__label { display: none; }

.ft-profile__meta,
.ft-profile__name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-profile__name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  line-height: 1.3;
}

.ft-profile__name strong,
.ft-reply__author a { font-weight: 650; }

.ft-tag {
  display: inline-flex;
  width: fit-content;
  flex: 0 0 auto;
  align-items: center;
  gap: .19rem;
  padding: .13rem .42rem;
  border-radius: 999px;
  background: var(--ft-soft);
  color: var(--ft-green);
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.35;
}

.ft-tag--warm {
  background: #f9f2e6;
  color: #775626;
}

.ft-metrics {
  display: flex;
  gap: .34rem;
  margin: 0;
  color: var(--ft-muted);
  font-size: .67rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.ft-metrics div,
.ft-metrics dt {
  display: flex;
  align-items: center;
  gap: .19rem;
}

.ft-metrics div {
  padding: .25rem .39rem;
  border-radius: 999px;
  background: var(--ft-soft);
}

.ft-metrics dd,
.ft-metrics a {
  margin: 0;
  color: var(--ft-ink);
  font-weight: 650;
  text-decoration: none;
}

.ft-metrics i,
.ft-topic__header i,
.ft-discussion__head i,
.ft-topic__footer > span i,
.ft-side-panel h2 i,
.ft-side-link > i {
  color: var(--ft-green);
}

.ft-metrics dt span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ft-owner-actions {
  position: fixed;
  inset: auto var(--ft-gutter) var(--ft-safe-bottom);
  display: flex;
  width: auto;
  max-width: 28rem;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  margin-inline: auto;
  padding: .32rem;
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  background: rgb(255 255 255 / .97);
  backdrop-filter: blur(12px);
}

.ft-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 1.95rem;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .28rem .69rem;
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ft-green);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.26;
  text-align: center;
  text-decoration: none;
}

.ft-pill i::before,
.ft-metrics i::before {
  display: block;
  line-height: 1;
}

.ft-pill--primary {
  border-color: var(--ft-ink);
  background: var(--ft-ink);
  color: #fff;
}

.ft-pill--share i { color: #35668d; }
.ft-pill--report i { color: #9b475a; }

.ft-pill--send-report {
  border-color: #eddae0;
  background: #faeff1;
  color: #874153;
}

.ft-icon {
  width: 1.88rem;
  min-height: 1.88rem;
  flex: 0 0 auto;
  padding: 0;
}

.ft-owner-actions > .ft-pill {
  min-height: 2.38rem;
  flex: 1;
}

.ft-owner-actions:has(.ft-owner-actions__reply) > :not(.ft-owner-actions__reply) {
  width: 2.38rem;
  flex: 0 0 auto;
  padding: 0;
}

.ft-owner-actions__reply { order: 2; }

.ft-owner-actions:has(.ft-owner-actions__reply) > :not(.ft-owner-actions__reply) span {
  display: none;
}

.ft-topic {
  padding: clamp(.8rem, 2.4vw, 1.38rem);
}

.ft-topic__header,
.ft-discussion__head,
.ft-topic__footer,
.ft-composer__head,
.ft-composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
}

.ft-topic__header {
  margin-block-end: .65rem;
}

.ft-topic__header h2,
.ft-discussion__head h2,
.ft-side-panel h2,
.ft-report__head h2 {
  display: flex;
  align-items: center;
  gap: .42rem;
  margin: 0;
  color: var(--ft-ink);
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.35;
}

.ft-message {
  color: #3b4853;
  font-size: .825rem;
  line-height: 1.68;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ft-topic > .ft-message { font-size: clamp(.86rem, 1.15vw, .96rem); }

.ft-topic__footer {
  flex-wrap: wrap;
  margin-block-start: .87rem;
  padding-block-start: .62rem;
  border-top: 1px solid #edf2eb;
  color: var(--ft-muted);
  font-size: .67rem;
}

.ft-topic__footer > span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.ft-attachment,
.ft-attachment-link {
  margin-block-start: .72rem;
}

.ft-attachment {
  overflow: hidden;
  margin-inline: 0;
  border: 1px solid var(--ft-line);
  border-radius: .69rem;
  background: #f8faf7;
}

.ft-attachment img {
  display: block;
  width: 100%;
  max-height: 25rem;
  object-fit: contain;
}

.ft-discussion {
  display: grid;
  min-width: 0;
  gap: .64rem;
}

.ft-discussion__head h2 > span {
  display: grid;
  min-width: 1.44rem;
  min-height: 1.35rem;
  place-items: center;
  padding-inline: .3rem;
  border-radius: 999px;
  background: var(--ft-soft);
  color: var(--ft-green);
  font-size: .66rem;
  font-variant-numeric: tabular-nums;
}

#reply-root-target:not(:has(.ft-composer:not([hidden]))) {
  display: none;
}

.ft-empty {
  display: grid;
  justify-items: center;
  gap: .48rem;
  padding: 1.47rem .7rem;
  color: var(--ft-green);
  text-align: center;
}

.ft-empty h3 {
  margin: 0;
  color: var(--ft-ink);
  font-size: .81rem;
  font-weight: 650;
}

.ft-empty-copy {
  margin: 0;
  color: var(--ft-muted);
  font-size: .78rem;
}

.ft-replies,
.ft-side-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-replies {
  display: grid;
  min-width: 0;
  gap: .52rem;
}

.ft-replies--nested {
  margin: .47rem 0 0 clamp(.2rem, 1.5vw, .85rem);
  padding-inline-start: clamp(.35rem, 1.45vw, .85rem);
  border-inline-start: 2px solid #e1ecde;
}

.ft-replies:not(.ft-replies--nested) .ft-replies:not(.ft-replies--nested) {
  margin-block-start: .47rem;
}

.ft-reply {
  padding: .62rem .72rem;
}

.ft-reply__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .45rem;
  margin-block-end: .48rem;
}

.ft-reply .ft-avatar {
  width: 1.94rem;
  height: 1.94rem;
  font-size: .67rem;
}

.ft-reply__author,
.ft-reply__meta {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .17rem .37rem;
}

.ft-reply__author a {
  color: var(--ft-ink);
  font-size: .77rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ft-reply__meta {
  color: var(--ft-muted);
  font-size: .64rem;
  overflow-wrap: anywhere;
}

.ft-reply .ft-message {
  font-size: .79rem;
}

.ft-reply__tools {
  display: flex;
  justify-content: flex-end;
  gap: .3rem;
  margin-block-start: .51rem;
}

.ft-reply__tools .ft-pill {
  min-height: 1.75rem;
  font-size: .67rem;
}

.ft-composer {
  margin-block: .05rem .25rem;
  padding: .73rem;
}

[id^="reply-target-"] .ft-composer {
  margin-block: .45rem;
}

.ft-composer form {
  display: grid;
  gap: .56rem;
}

.ft-composer__head label,
.ft-report label {
  color: var(--ft-ink);
  font-size: .81rem;
  font-weight: 650;
}

.ft-composer__head p,
.ft-composer__footer p {
  margin: .05rem 0 0;
  color: var(--ft-muted);
  font-size: .68rem;
}

.ft-composer__footer {
  flex-wrap: wrap;
}

.ft-composer__footer button {
  margin-inline-start: auto;
}

.ft-quote {
  overflow: hidden;
  margin: 0;
  padding: .37rem .54rem;
  border-inline-start: 2px solid #9ab791;
  border-radius: 0 .39rem .39rem 0;
  background: var(--ft-soft);
  color: var(--ft-muted);
  font-size: .72rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.ft-composer textarea,
.ft-report select {
  width: 100%;
  min-width: 0;
  padding: .49rem .61rem;
  border: 1px solid var(--ft-line);
  border-radius: .59rem;
  background: #f8faf7;
  color: var(--ft-ink);
  font: inherit;
  font-size: .81rem;
  line-height: 1.51;
}

.ft-composer textarea { resize: vertical; }

.ft-notice {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  margin: 0;
  padding: .56rem .69rem;
  border: 1px solid #d9ead5;
  border-radius: .65rem;
  background: var(--ft-soft);
  color: var(--ft-green);
  font-size: .74rem;
  line-height: 1.46;
  overflow-wrap: anywhere;
}

.ft-notice--error {
  border-color: #efdade;
  background: #fdf2f4;
  color: #853b4e;
}

.ft-notice--locked {
  border-color: #f0e3cd;
  background: #fcf7ed;
  color: #795728;
}

.ft-side-panel h2 {
  padding: .68rem .72rem;
  border-bottom: 1px solid #edf2eb;
  font-size: .8rem;
}

.ft-side-panel p {
  margin: 0;
  padding: .63rem .72rem;
  color: var(--ft-muted);
  font-size: .71rem;
  line-height: 1.52;
}

.ft-side-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .42rem;
  padding: .47rem .7rem;
  color: var(--ft-ink);
  font-size: .71rem;
  font-weight: 500;
  line-height: 1.43;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ft-side-link strong { font-weight: 600; }

.ft-side-link small {
  display: block;
  margin-block-start: .09rem;
  color: var(--ft-muted);
  font-size: .63rem;
}

.ft-side-link > i { font-size: .62rem; }

.ft-side-panel li + li { border-top: 1px solid #edf2eb; }
.ft-side-panel li:last-child a,
nav.ft-side-panel > a { border-radius: 0 0 .9rem .9rem; }

.ft-ad {
  overflow: hidden;
  padding: .61rem;
  text-align: center;
}

.ft-ad-slot:not(:has(.ft-ad:not([hidden]))) {
  display: none;
}

.forum-detail__workspace :is(a, button, select, textarea):focus-visible {
  outline: 2px solid #73985d;
  outline-offset: 2px;
}

.ft-report {
  position: fixed;
  width: min(calc(100% - 1.5rem), 27rem);
  max-width: none;
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--ft-line);
  border-radius: 1rem;
  background: #fff;
  color: var(--ft-ink);
}

.ft-report::backdrop {
  background: rgb(15 23 42 / .38);
  backdrop-filter: blur(2px);
}

body:has(.ft-report[open]) {
  overflow: hidden;
}

.ft-report__head,
.ft-report__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  padding: .62rem .76rem;
}

.ft-report__head {
  border-bottom: 1px solid #edf2eb;
}

.ft-report__head h2 i { color: #9b475a; }

.ft-report__body {
  display: grid;
  gap: .51rem;
  padding: .71rem .76rem;
}

.ft-report__footer {
  justify-content: flex-end;
  border-top: 1px solid #edf2eb;
}

@media (max-width: 1023px) {
  body.forum-topic-page { padding-bottom: var(--ft-dock-clearance); }

  .forum-topic-page #cookieBar { bottom: calc(var(--ft-dock-clearance) + .32rem); }

  .forum-topic-page:has(.ft-composer:focus-within) .ft-owner-actions { display: none; }

  .forum-detail__workspace :is(#yanitlar, [id^="reply-"], .ft-composer) {
    scroll-margin-top: calc(var(--ft-header-height) + 3.6rem);
  }
}

@media (max-width: 767px) {
  .ft-report {
    inset: auto 0 0;
    width: min(100%, 33rem);
    margin: 0 auto;
    border-radius: 1.05rem 1.05rem 0 0;
  }

  .ft-report__footer {
    padding-block-end: max(.65rem, env(safe-area-inset-bottom));
  }

  .ft-composer textarea:focus,
  .ft-report select:focus { font-size: 1rem; }
}

@media (max-width: 360px) {
  .ft-profile__name .ft-tag { display: none; }
}

@media (min-width: 1024px) {
  .forum-detail__workspace {
    grid-template-columns: clamp(11.25rem, 17.3vw, 14rem) minmax(0, 1fr) clamp(11.25rem, 17.7vw, 15.5rem);
  }

  .forum-detail__owner {
    top: calc(var(--ft-header-height) + .56rem);
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
    padding: .71rem;
    border-radius: .95rem;
  }

  .ft-profile__label { display: inline; }

  .ft-profile > .ft-avatar {
    width: 2.47rem;
    height: 2.47rem;
    border-radius: .67rem;
  }

  .ft-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .31rem;
  }

  .ft-metrics div {
    flex-direction: column;
    justify-content: center;
    gap: .21rem;
    padding: .43rem .16rem;
    border-radius: .58rem;
  }

  .ft-metrics dt span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    font-size: .61rem;
  }

  .ft-owner-actions,
  .ft-owner-actions:has(.ft-owner-actions__reply) {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .34rem;
    margin: 0;
    padding: .6rem 0 0;
    border: 0;
    border-top: 1px solid #edf2eb;
    border-radius: 0;
    backdrop-filter: none;
  }

  .ft-owner-actions > .ft-pill,
  .ft-owner-actions:has(.ft-owner-actions__reply) > :not(.ft-owner-actions__reply) {
    width: 100%;
    min-height: 2.04rem;
    padding-inline: .21rem;
  }

  .ft-owner-actions:has(.ft-owner-actions__reply) > :not(.ft-owner-actions__reply) span { display: inline; }

  .ft-owner-actions__reply {
    grid-column: 1 / -1;
    order: 0;
  }
}

@media (hover: hover) {
  .ft-pill:hover,
  .ft-side-link:hover { background: #eef5eb; }

  .ft-pill--primary:hover { background: #344b3c; }

  .ft-pill--send-report:hover { background: #f5e0e6; }

  .ft-profile:hover strong,
  .ft-reply__author a:hover { color: var(--ft-green); }
}

@media (prefers-reduced-motion: reduce) {
  .forum-detail__owner { transition: none; }
}

