.page-forum {
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(255, 184, 0, 0.14), transparent 60%),
    #0f1923;
  color: #e8eef4;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.page-forum [hidden] {
  display: none !important;
}

html.forum-boot-app #forum-gate {
  display: none !important;
}

html.forum-boot-app #forum-app {
  display: block !important;
}

.page-forum img,
.page-forum .forum-mini,
.page-forum .forum-avatar {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html.forum-embed .forum-main {
  padding: 0.75rem 0 calc(1rem + env(safe-area-inset-bottom));
}

html.forum-embed .forum-gate {
  min-height: auto;
  height: auto;
  padding: 0.75rem 0;
  box-sizing: border-box;
}

html.forum-embed .forum-app {
  overflow: visible;
  min-height: 0;
}


.page-forum .site-header {
  background: rgba(15, 25, 35, 0.92);
  backdrop-filter: blur(12px);
}

.forum-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.forum-main {
  width: min(760px, calc(100% - 1.5rem));
  max-width: 100%;
  margin: 0 auto;
  padding: 0.75rem 0 calc(1.25rem + env(safe-area-inset-bottom));
  overflow-x: hidden;
  box-sizing: border-box;
}

.forum-gate {
  width: 100%;
  min-height: calc(100dvh - var(--header-h, 72px) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
}


.forum-gate .forum-panel {
  width: 100%;
}

.forum-panel,
.forum-app,
.forum-dialog-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%), #1a2635;
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.forum-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.forum-kicker {
  margin: 0 0 0.35rem;
  color: #ffb800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.forum-panel h1,
.forum-toolbar-copy h1,
.forum-detail-head h2,
.forum-dialog h2 {
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.forum-panel h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.1;
}

.forum-lead {
  margin: 0.55rem 0 1.25rem;
  color: #9db0c3;
  font-size: clamp(0.92rem, 2.4vw, 1rem);
  line-height: 1.5;
  max-width: 36ch;
}

.forum-gate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.forum-choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  background: #121c28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  min-height: 76px;
}

.forum-choice:hover,
.forum-choice:focus-visible {
  border-color: rgba(255, 184, 0, 0.55);
  outline: none;
}

.forum-choice--gold {
  background: linear-gradient(120deg, rgba(255, 184, 0, 0.2), #121c28 58%);
  border-color: rgba(255, 184, 0, 0.4);
}

.forum-choice-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffb800;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.forum-choice-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.forum-choice-sub {
  display: block;
  margin-top: 0.15rem;
  color: #9db0c3;
  font-size: 0.82rem;
}

.forum-app {
  padding: clamp(0.9rem, 3vw, 1.35rem);
}

.forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.9rem;
}

.forum-toolbar-copy {
  flex: 1 1 160px;
  min-width: 0;
}

.forum-toolbar-copy h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3.6vw, 1.55rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.forum-toolbar-copy p {
  margin: 0.15rem 0 0;
  color: #7f95ab;
  font-size: 0.82rem;
}

.forum-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.forum-back {
  flex: 1 0 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 0, 0.4);
  background: rgba(255, 184, 0, 0.12);
  color: #ffb800;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
}

.forum-app.is-detail .forum-toolbar {
  margin-bottom: 0.55rem;
}

.forum-app.is-detail .forum-toolbar-list,
.forum-app.is-detail .forum-toolbar-actions {
  display: none;
}

.forum-app.is-detail .forum-back {
  flex: 1 0 auto;
  width: 100%;
}

.forum-topic-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%), #1a2635;
  border: 1px solid rgba(255, 184, 0, 0.16);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.35rem);
  margin-bottom: 0.85rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.forum-topic-head {
  margin-bottom: 0;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-topic-title {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.25rem, 4.2vw, 1.65rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #f4f8fc;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.forum-topic-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-topic-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.forum-topic-author-copy {
  flex: 1;
  min-width: 0;
}

.forum-owner-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.82rem;
  color: #a8b8c8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-yazar {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  vertical-align: middle;
}

.forum-yazar-ad {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-yazar--admin .forum-yazar-ad {
  color: #ff1744;
  font-weight: 700;
}

.forum-admin-rozet {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.forum-topic-meta .forum-yazar,
.forum-reply-top .forum-yazar {
  max-width: 100%;
}

.forum-topic-author .forum-topic-meta {
  margin: 0.05rem 0 0;
  font-size: 0.72rem;
  color: #6a8299;
}

.forum-topic-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-mod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 0, 0.35);
  background: rgba(255, 184, 0, 0.08);
  color: #ffb800;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.forum-mod-btn--danger {
  border-color: rgba(255, 90, 122, 0.45);
  background: rgba(255, 90, 122, 0.1);
  color: #ff8fa8;
}

.forum-mod-btn--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #a8bdd4;
}

.forum-mod-btn--share {
  border-color: rgba(93, 173, 226, 0.42);
  background: rgba(93, 173, 226, 0.1);
  color: #9fd4ff;
}

.forum-mod-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
}

.forum-like {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #9db0c3;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.forum-like.is-on {
  color: #ff5a7a;
  border-color: rgba(255, 90, 122, 0.45);
  background: rgba(255, 90, 122, 0.12);
}

.forum-like-ico {
  font-size: 1rem;
  line-height: 1;
}

.forum-like-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c8d4de;
}

.forum-like--topic.is-on .forum-like-label {
  color: #ffb3c4;
}

.forum-like-n {
  margin-left: 0.1rem;
  min-width: 1.1rem;
  text-align: center;
}

.forum-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.forum-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 34px;
  min-width: 34px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #9db0c3;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.forum-vote-btn--up.is-on {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.12);
}

.forum-vote-btn--down.is-on {
  color: #ff8fa8;
  border-color: rgba(255, 90, 122, 0.45);
  background: rgba(255, 90, 122, 0.12);
}

.forum-vote-ico {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: block;
}

.forum-vote-n {
  min-width: 1.1rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.forum-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 78, 108, 0.55);
  background: linear-gradient(180deg, rgba(255, 90, 122, 0.22), rgba(255, 60, 90, 0.12));
  color: #ffb3c4;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(255, 60, 90, 0.12);
}

.forum-report-btn:hover,
.forum-report-btn:focus-visible {
  color: #fff;
  border-color: rgba(255, 120, 145, 0.75);
  background: linear-gradient(180deg, rgba(255, 90, 122, 0.38), rgba(255, 60, 90, 0.22));
  outline: none;
}

.forum-report-ico {
  width: 0.92rem;
  height: 0.92rem;
  display: block;
  flex-shrink: 0;
}

.forum-report-label {
  line-height: 1;
}

.forum-sikayet-dialog .forum-dialog-inner {
  border-color: rgba(255, 90, 122, 0.32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 90, 122, 0.08);
}

.forum-sikayet-kicker {
  margin: 0 0 0.25rem;
  color: #ff8fa8;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.forum-sikayet-dialog h2 {
  margin-bottom: 0.65rem;
  color: #f4f8fc;
}

.forum-sikayet-warn {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 122, 0.28);
  background: rgba(255, 60, 90, 0.1);
  color: #f0b8c4;
  font-size: 0.8rem;
  line-height: 1.48;
}

.forum-sikayet-inner .forum-textarea {
  min-height: 6.5rem;
}

.forum-sikayet-onay {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.65rem 0 0.15rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #b8c8d8;
  cursor: pointer;
  user-select: none;
}

.forum-sikayet-onay input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #ff5a7a;
}

.forum-sikayet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.forum-sikayet-btn {
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.forum-sikayet-btn--iptal {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #c8d4de;
}

.forum-sikayet-btn--iptal:hover,
.forum-sikayet-btn--iptal:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  color: #e8eef4;
  outline: none;
}

.forum-sikayet-btn--gonder {
  border-color: rgba(255, 90, 122, 0.55);
  background: linear-gradient(180deg, rgba(255, 90, 122, 0.45), rgba(220, 50, 80, 0.38));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 60, 90, 0.22);
}

.forum-sikayet-btn--gonder:hover,
.forum-sikayet-btn--gonder:focus-visible {
  border-color: rgba(255, 130, 155, 0.75);
  outline: none;
}

.forum-sikayet-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.forum-reply-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.forum-reply-top .forum-topic-meta {
  margin: 0;
  flex: 1 1 120px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.forum-reply-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex-shrink: 0;
}

.forum-reply-top .forum-like {
  flex-shrink: 0;
  min-height: 30px;
  padding: 0.15rem 0.55rem;
}

.forum-reply-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 184, 0, 0.28);
  border-radius: 10px;
  background: rgba(255, 184, 0, 0.08);
  color: #ffb800;
  cursor: pointer;
}

.forum-reply-edit svg {
  width: 0.9rem;
  height: 0.9rem;
}

.forum-reply-edit:hover,
.forum-reply-edit:focus-visible {
  border-color: rgba(255, 184, 0, 0.5);
  background: rgba(255, 184, 0, 0.14);
  outline: none;
}

.forum-edited {
  color: #6a8299;
  font-size: 0.72rem;
  font-style: italic;
}

.page-forum .forum-btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.86rem;
  border-radius: 999px;
}

.page-forum .forum-btn-sm:hover {
  transform: none;
}

.forum-authbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.7rem;
  border-radius: 16px;
  background: #121c28;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-mode {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.forum-mode-copy {
  min-width: 0;
}

.forum-mode-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.forum-mode--guest .forum-mode-kicker {
  color: #9db0c3;
}

.forum-mode--hesap .forum-mode-kicker {
  color: #ffb800;
}

.forum-mode-name {
  margin: 0.05rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-authbar-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.4rem;
}

.forum-authbar-actions .forum-btn-sm {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .forum-authbar {
    flex-wrap: wrap;
  }
  .forum-authbar-actions {
    width: 100%;
  }
  .forum-authbar-actions .btn {
    flex: 1;
  }
}

.forum-avatar,
.forum-mini {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #2a3d52, #15202c);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-avatar img,
.forum-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forum-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.forum-filters .forum-ara {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 42px;
  font-size: 0.92rem;
}

.forum-sira {
  flex: 0 1 auto;
  min-height: 42px;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f1923;
  color: #e8eef4;
  font: inherit;
  font-size: 0.9rem;
}

.forum-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.forum-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  text-align: left;
  background: #121c28;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.8rem 0.85rem;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

.forum-row:hover,
.forum-row:focus-visible {
  border-color: rgba(255, 184, 0, 0.35);
  outline: none;
}

.forum-row h3.forum-row-title-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 650;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-row-foot {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.forum-row-foot-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.12rem;
}

.forum-row-foot-copy > .forum-topic-meta {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.forum-row-meta-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.forum-row-meta-sub .forum-meta-date {
  flex: 1 1 auto;
  min-width: 0;
}

.forum-row .forum-meta-author {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.forum-row .forum-meta-author .forum-yazar {
  max-width: 100%;
  min-width: 0;
}

.forum-row .forum-meta-author .forum-yazar-ad {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-row .forum-meta-date {
  font-size: 0.72rem;
  color: #6a8299;
  white-space: nowrap;
}

.forum-row.is-pinned {
  border-color: rgba(255, 184, 0, 0.32);
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.1), #121c28 45%);
}

.forum-pin-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.1rem 0.38rem;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffb800;
  background: rgba(255, 184, 0, 0.14);
  border: 1px solid rgba(255, 184, 0, 0.28);
}

.forum-row-body {
  min-width: 0;
  width: 100%;
}

.forum-topic-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.22rem 0 0;
  min-width: 0;
  font-size: 0.78rem;
  color: #7f95ab;
}

.forum-topic-meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-count {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 184, 0, 0.12);
  color: #ffb800;
  font-weight: 800;
  font-size: 0.82rem;
}

.forum-row-foot > .forum-avatar,
.forum-row-foot > .forum-mini {
  flex-shrink: 0;
}

.forum-row-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

.forum-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #93a9be;
  white-space: nowrap;
  line-height: 1;
}

.forum-stat-ico {
  width: 0.88rem;
  height: 0.88rem;
  flex-shrink: 0;
  opacity: 0.88;
}

.forum-stat-n {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.forum-empty {
  color: #7f95ab;
  text-align: center;
  padding: 2rem 0.5rem;
}

.forum-detail-body {
  margin: 0;
  padding: 0.75rem 0 0;
  white-space: pre-wrap;
  line-height: 1.58;
  color: #d5e2ee;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.forum-detail-body:empty::before {
  content: "—";
  color: #7f95ab;
}

.forum-replies-title {
  margin: 1.15rem 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f95ab;
}

.forum-detail,
.forum-replies {
  max-width: 100%;
  overflow-x: hidden;
}

.forum-reply-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.7rem;
  max-width: 100%;
  box-sizing: border-box;
  background: #121c28;
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  margin-bottom: 0.5rem;
}

.forum-reply-card > div {
  min-width: 0;
  max-width: 100%;
}

.forum-reply-card p:last-child {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.forum-reply {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.7rem 0 0.35rem;
}

.forum-field-head .forum-label {
  margin: 0;
}

.forum-char-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7f95ab;
  white-space: nowrap;
}

.forum-char-count.is-warn {
  color: #ffb800;
}

.forum-char-count.is-over {
  color: #ff5a7a;
}

.forum-label {
  display: block;
  margin: 0.7rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c8d4de;
}

.forum-input,
.forum-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  background: #0f1923;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.forum-textarea {
  resize: vertical;
  min-height: 110px;
}

.forum-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0.45rem;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.forum-tool[data-cmd="bullet"] {
  font-size: 1.15rem;
  line-height: 1;
}

.forum-tool {
  min-width: 34px;
  height: 34px;
  padding: 0 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121c28;
  color: #e8eef4;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.forum-tool.is-color {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.28);
  touch-action: manipulation;
}

.forum-editor {
  width: 100%;
  box-sizing: border-box;
  min-height: 140px;
  max-height: 240px;
  overflow: auto;
  padding: 0.75rem 0.85rem;
  background: #0f1923;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

.forum-editor:focus {
  outline: none;
  border-color: rgba(255, 184, 0, 0.45);
}

.forum-editor:empty:before {
  content: attr(data-placeholder);
  color: #7f95ab;
}

.forum-input--code {
  letter-spacing: 0.28em;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.forum-submit,
.page-forum .auth-btn.forum-submit {
  width: 100%;
  margin-top: 0.9rem;
  min-height: 46px;
  border-radius: 12px;
}

.forum-link-btn {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.45rem;
  border: none;
  background: transparent;
  color: #9db0c3;
  font-size: 0.85rem;
  cursor: pointer;
}

.forum-dialog {
  border: none;
  padding: 0;
  margin: 0 !important;
  position: fixed;
  top: calc(var(--forum-top, 0px) + (var(--forum-vh, 100dvh) / 2));
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 1.5rem));
  max-width: calc(100% - 1.5rem);
  max-height: calc(var(--forum-vh, 100dvh) - 1.25rem);
  height: auto;
  overflow: auto;
  background: transparent;
  color: inherit;
}

.forum-dialog::backdrop {
  background: rgba(5, 10, 16, 0.72);
}

.forum-dialog-inner {
  margin: 0;
  padding: 1.25rem 1.1rem 1.15rem;
  position: relative;
}

.forum-dialog-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #c8d4de;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.forum-dialog h2 {
  margin: 0 2rem 0.4rem 0;
  font-size: 1.2rem;
}

.forum-dialog-hint {
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  color: #9db0c3;
  line-height: 1.45;
}

.forum-login-tabs {
  display: flex;
  gap: 6px;
  margin: 0.65rem 0 0.85rem;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-login-tab {
  flex: 1 1 50%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #8fa4b8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.forum-login-tab.is-active {
  color: #ffb800;
  font-weight: 700;
  border-color: rgba(255, 184, 0, 0.35);
  background: rgba(255, 184, 0, 0.12);
}

.forum-dialog-footnote {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: #7f95ab;
  line-height: 1.4;
}

.auth-status.hint {
  margin-top: 0.55rem;
  min-height: 0;
  font-size: 0.84rem;
}

.auth-status.is-visible.ok { color: #2ecc71; }
.auth-status.is-visible.err { color: #ff8b7a; }

@media (max-height: 740px) {
  .forum-panel {
    padding: 1rem 0.9rem 0.9rem;
  }

  .forum-panel h1 {
    font-size: 1.4rem;
  }

  .forum-lead {
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
  }

  .forum-choice {
    min-height: 58px;
    padding: 0.65rem 0.75rem;
  }
}

@media (max-width: 719px) {
  .forum-panel {
    padding: 1.15rem 1rem 1rem;
  }

  .forum-panel h1 {
    font-size: 1.65rem;
  }

  .forum-lead {
    margin-bottom: 1rem;
  }

  .forum-choice {
    min-height: 72px;
    padding: 0.8rem 0.85rem;
  }

  .forum-dialog-inner {
    padding: 1.1rem 0.95rem 1rem;
  }

  .forum-input--code {
    letter-spacing: 0.18em;
    font-size: 1.15rem;
  }
}

@media (min-width: 720px) {
  .forum-main {
    width: min(860px, calc(100% - 3rem));
    padding-top: 1.25rem;
  }

  .forum-gate-grid {
    grid-template-columns: 1fr 1fr;
  }

  .forum-choice {
    min-height: 108px;
    align-items: flex-start;
  }

  .forum-back {
    flex: 0 0 auto;
  }
}
