/* FoxLand 17.1 — discussion page */
.fox-forum-topic-page, .fox-forum-topic-page * { box-sizing: border-box; }
.fox-forum-topic-page { width: 100%; min-width: 0; margin: 0 0 28px; padding: 0 12px; color: var(--fox-tone-as2l19, #eee3f8); font-family: Rubik, sans-serif; }
.fox-forum-topic__title {
  display: grid; place-items: center; width: min(100%, 780px); min-width: 0;
  margin: 0 auto 17px; padding: 13px 23px; border: 1px solid rgba(var(--fox-rgb-as4l14, 194, 119, 248), .59);
  border-radius: 14px; background: linear-gradient(115deg, rgba(var(--fox-rgb-ts2l4, 45, 23, 70), .83), rgba(var(--fox-rgb-ts2l2, 15, 10, 30), .89));
  box-shadow: inset 0 1px rgba(var(--fox-rgb-gs4l18, 247, 211, 255), clamp(0, calc(.11 * var(--fox-glow-strength, 1)), 1)), 0 0 19px rgba(var(--fox-rgb-gs3l12, 161, 74, 226), clamp(0, calc(.16 * var(--fox-glow-strength, 1)), 1));
}
.fox-forum-topic__title h1 {
  max-width: 100%; margin: 0; overflow-wrap: anywhere; text-align: center;
  background: linear-gradient(100deg, var(--fox-tone-ts3l14, #ac6af3), var(--fox-tone-ts4l18, #e9caff), var(--fox-tone-ts3l13, #a85be8), var(--fox-tone-ts4l18, #f1d5ff), var(--fox-tone-ts3l14, #ac6af3)) 0 50% / 230% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: clamp(19px, 2.7vw, 27px); font-weight: 800; line-height: 1.3;
  animation: fox-forum-topic-shine 8s ease-in-out infinite alternate;
}
@keyframes fox-forum-topic-shine { to { background-position: 100% 50%; } }
.fox-forum-topic__feedback { margin: 0 0 10px; padding: 8px 12px; border: 1px solid rgba(120, 207, 165, .38); border-radius: 8px; background: rgba(16, 56, 37, .25); color: #a9e9c5; font-size: 11px; }
.fox-forum-topic__feedback[hidden] { display: none !important; }
.fox-forum-topic__feedback.is-error { border-color: rgba(245, 135, 165, .41); background: rgba(69, 23, 44, .3); color: #ffbfd0; }
.fox-forum-topic__conversation {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid rgba(var(--fox-rgb-as3l13, 168, 101, 224), .44); border-radius: 17px;
  background: radial-gradient(circle at 17% 0, rgba(var(--fox-rgb-ts2l8, 111, 49, 167), .12), transparent 40%), rgba(var(--fox-rgb-ts2l1, 12, 9, 23), .9);
  box-shadow: inset 0 1px rgba(var(--fox-rgb-gs4l18, 237, 193, 255), clamp(0, calc(.07 * var(--fox-glow-strength, 1)), 1)), 0 12px 35px rgba(var(--fox-rgb-gs3l1, 5, 3, 16), clamp(0, calc(.21 * var(--fox-glow-strength, 1)), 1));
}
.fox-forum-topic__scroll {
  height: clamp(320px, calc(100dvh - 360px), 735px); min-height: 0; min-width: 0;
  padding: 18px clamp(10px, 2vw, 23px); overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--fox-tone-as3l14, #a977e5) var(--fox-tone-as2l2, #160e27); scrollbar-width: thin; scrollbar-gutter: stable;
}
.fox-forum-topic__scroll::-webkit-scrollbar { width: 9px; }
.fox-forum-topic__scroll::-webkit-scrollbar-track { background: var(--fox-tone-as2l2, #160e27); }
.fox-forum-topic__scroll::-webkit-scrollbar-thumb { border: 2px solid var(--fox-tone-as2l2, #160e27); border-radius: 12px; background: linear-gradient(var(--fox-tone-ts4l16, #d4a5ff), var(--fox-tone-ts2l12, #995bd7)); }
.fox-forum-topic__scroll::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--fox-tone-ts4l18, #ebcbff), var(--fox-tone-ts3l14, #b577f3)); }
.fox-forum-topic__scroll:focus-visible { outline: 2px solid var(--fox-tone-as4l15, #c78afd); outline-offset: -3px; }
#fox-forum-topic-posts { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.fox-forum-post { display: flex; align-items: flex-start; gap: clamp(8px, 1.7vw, 17px); min-width: 0; scroll-margin-top: 8px; }
.fox-forum-post__person { display: flex; flex: 0 0 90px; flex-direction: column; align-items: center; min-width: 0; padding-top: 5px; }
.fox-forum-post__avatar { display: block; width: 53px; height: 53px; overflow: hidden; border: 1px solid rgba(var(--fox-rgb-as3l14, 183, 121, 239), .62); border-radius: 14px; box-shadow: 0 0 12px rgba(var(--fox-rgb-gs3l12, 168, 90, 223), clamp(0, calc(.17 * var(--fox-glow-strength, 1)), 1)); }
.fox-forum-post__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fox-forum-post__nick { display: block; max-width: 100%; margin-top: 6px; overflow: hidden; color: var(--fox-tone-as3l18, #e7cff9); font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.fox-forum-post__nick:hover { color: #fff; text-shadow: 0 0 9px rgba(var(--fox-rgb-gs4l16, 207, 146, 251), clamp(0, calc(.45 * var(--fox-glow-strength, 1)), 1)); text-decoration: none; }
.fox-forum-post__meters { display: flex; justify-content: center; gap: 7px; width: 100%; margin-top: 7px; }
.fox-forum-post__heart, .fox-forum-post__posts {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0;
  padding: 4px 5px; border: 1px solid rgba(var(--fox-rgb-as3l12, 166, 95, 223), .35); border-radius: 7px;
  background: rgba(var(--fox-rgb-as2l3, 41, 20, 65), .42); color: var(--fox-tone-as1l16, #c9b3dc); font: 700 10px Rubik, sans-serif;
}
.fox-forum-post__heart { cursor: pointer; transition: border-color .18s, box-shadow .18s, color .18s; }
.fox-forum-post__heart i { color: #f0a6c8; }
.fox-forum-post__heart:hover:not(:disabled) { border-color: #f4add4; color: #fff; box-shadow: 0 0 12px rgba(234, 112, 175, .28); }
.fox-forum-post__heart.is-liked i { color: #e987b2; }
.fox-forum-post__heart:disabled { cursor: default; }
.fox-forum-post__posts i { color: var(--fox-tone-as4l17, #ccacfa); }
.fox-forum-post__bubble {
  position: relative; flex: 1 1 auto; min-width: 0; min-height: 110px; padding: 12px 15px 33px;
  border: 1px solid rgba(var(--fox-rgb-as3l13, 171, 111, 224), .35); border-radius: 12px;
  background: linear-gradient(140deg, rgba(var(--fox-rgb-ts2l3, 35, 22, 54), .51), rgba(var(--fox-rgb-ts2l2, 17, 13, 31), .59));
  box-shadow: inset 0 1px rgba(var(--fox-rgb-gs4l19, 246, 220, 255), clamp(0, calc(.05 * var(--fox-glow-strength, 1)), 1));
}
.fox-forum-post__bubble > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(var(--fox-rgb-as2l13, 179, 114, 218), .14); color: var(--fox-tone-as2l15, #bd9cd9); font-size: 10px; }
.fox-forum-post__bubble > header time { white-space: nowrap; }
.fox-forum-post__body { min-width: 0; padding-top: 10px; overflow-wrap: anywhere; word-break: normal; color: var(--fox-tone-as2l19, #eee5f5); font-size: 13px; line-height: 1.55; }
.fox-forum-post__body > :last-child { margin-bottom: 0; }
.fox-forum-post__body img, .fox-forum-post__body video, .fox-forum-post__body iframe { max-width: 100%; height: auto; }
.fox-forum-post__body table, .fox-forum-post__body pre { display: block; max-width: 100%; overflow-x: auto; }
.fox-forum-post__body .fox-message-sticker, .fox-forum-post__body .fox-chat-sticker { max-width: min(110px, 32vw) !important; max-height: 110px !important; object-fit: contain; }
.fox-forum-post__edited { margin: 8px 0 0; color: var(--fox-tone-as1l13, #a997bc); font-size: 10px; }
.fox-forum-post__actions { position: absolute; right: 10px; bottom: 8px; display: flex; gap: 6px; }
.fox-forum-post__actions a, .fox-forum-post__actions button {
  display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
  border: 1px solid rgba(var(--fox-rgb-as3l13, 180, 115, 228), .38); border-radius: 6px;
  background: rgba(var(--fox-rgb-as2l6, 89, 39, 125), .19); color: var(--fox-tone-as2l17, #ddbfef); font-size: 11px; cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.fox-forum-post__actions a:hover, .fox-forum-post__actions button:hover { border-color: var(--fox-tone-as4l17, #dfa9fc); background: rgba(var(--fox-rgb-as2l10, 140, 61, 190), .33); color: #fff; box-shadow: 0 0 12px rgba(var(--fox-rgb-gs3l13, 182, 90, 239), clamp(0, calc(.25 * var(--fox-glow-strength, 1)), 1)); text-decoration: none; }
.fox-forum-topic__composer { min-width: 0; padding: 12px clamp(10px, 2vw, 23px); border-top: 1px solid rgba(var(--fox-rgb-as3l13, 180, 112, 232), .26); background: rgba(var(--fox-rgb-as2l2, 23, 14, 39), .72); }
.fox-forum-topic__label { display: block; margin: 0 0 7px; color: var(--fox-tone-as4l17, #ddb7fb); font-size: 11px; font-weight: 800; }
.fox-forum-topic__composer-row { display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
.fox-forum-topic__composer-row textarea {
  flex: 1 1 auto; width: 0; min-width: 0; min-height: 41px; max-height: 126px; padding: 10px 12px;
  resize: vertical; border: 1px solid rgba(var(--fox-rgb-as3l13, 180, 111, 230), .48); border-radius: 9px;
  background: rgba(var(--fox-rgb-as2l1, 11, 8, 23), .85); color: var(--fox-tone-as4l19, #f7edff); font: 13px Rubik, sans-serif;
  outline: none; overflow-wrap: anywhere;
}
.fox-forum-topic__composer-row textarea::placeholder { color: var(--fox-tone-as1l13, #ad97c1); }
.fox-forum-topic__composer-row textarea:focus { border-color: var(--fox-tone-as4l16, #da9afa); box-shadow: 0 0 13px rgba(var(--fox-rgb-gs3l13, 184, 92, 240), clamp(0, calc(.2 * var(--fox-glow-strength, 1)), 1)); }
.fox-forum-topic__composer-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; min-width: 0; }
.fox-forum-topic__composer-actions #send_btn, .fox-forum-topic__management a, .fox-forum-topic__management button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  padding: 8px 14px; border: 1px solid rgba(var(--fox-rgb-as4l15, 202, 124, 247), .64); border-radius: 9px;
  background: linear-gradient(120deg, rgba(var(--fox-rgb-ts2l8, 102, 41, 156), .55), rgba(var(--fox-rgb-ts2l5, 57, 25, 96), .78));
  color: var(--fox-tone-as4l19, #f6e5ff); font: 700 12px Rubik, sans-serif; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.fox-forum-topic__composer-actions #send_btn:hover:not(:disabled), .fox-forum-topic__management a:hover, .fox-forum-topic__management button:hover:not(:disabled) {
  border-color: var(--fox-tone-as4l17, #edb8ff); background: rgba(var(--fox-rgb-as2l10, 144, 58, 205), .65); color: #fff;
  box-shadow: 0 0 15px rgba(var(--fox-rgb-gs3l12, 177, 81, 233), clamp(0, calc(.24 * var(--fox-glow-strength, 1)), 1)); transform: translateY(-1px); text-decoration: none;
}
.fox-forum-topic__composer-actions #send_btn:disabled, .fox-forum-topic__management button:disabled { opacity: .58; cursor: wait; }
.fox-forum-topic__composer-actions #smile_btn { display: none !important; }
.fox-forum-topic__composer-actions .fox-sticker-composer-toggle { flex: 0 0 40px; width: 40px; height: 40px; min-width: 40px; }
#fox-forum-topic-feedback { margin: 6px 0 0; color: #a6e7bc; font-size: 11px; }
#fox-forum-topic-feedback:empty { display: none; }
#fox-forum-topic-feedback.is-error { color: #ffb7c8; }
.fox-forum-topic__notice { margin: 0; padding: 12px 17px; border-top: 1px solid rgba(var(--fox-rgb-as3l13, 180, 112, 232), .2); color: var(--fox-tone-as1l15, #c6afd7); font-size: 12px; }
.fox-forum-topic__management { display: flex; justify-content: flex-end; align-items: center; gap: 8px; width: 100%; margin-top: 13px; min-width: 0; }
.fox-forum-topic__management a, .fox-forum-topic__management button { flex: 0 1 auto; min-height: 34px; padding: 7px 12px; font-size: 11px; }
.fox-forum-topic__management button[data-fox-delete-topic] { border-color: rgba(223, 128, 168, .58); background: rgba(87, 32, 64, .47); color: #f3ccda; }
.fox-forum-topic__management button[data-fox-delete-topic]:hover:not(:disabled) { border-color: #f5bad2; background: rgba(138, 45, 83, .6); }
body.fox-forum-edit-open { overflow: hidden; }
.fox-forum-edit-dialog[hidden], .fox-forum-edit-dialog [hidden] { display: none !important; }
.fox-forum-edit-dialog, .fox-forum-edit-dialog * { box-sizing: border-box; }
.fox-forum-edit-dialog {
  position: fixed; z-index: 100020; inset: 0; display: grid; place-items: center;
  padding: 12px; overflow-y: auto; background: rgba(var(--fox-rgb-as2l1, 7, 5, 17), .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.fox-forum-edit-dialog__panel {
  width: min(100%, 630px); min-width: 0; max-height: calc(100dvh - 24px); padding: 16px;
  overflow-y: auto; border: 1px solid rgba(var(--fox-rgb-as4l15, 200, 128, 249), .66); border-radius: 15px;
  background: radial-gradient(circle at 8% 0, rgba(var(--fox-rgb-ts2l9, 124, 49, 189), .19), transparent 50%), var(--fox-tone-ts2l2, #180f29);
  box-shadow: 0 22px 65px rgba(var(--fox-rgb-gs3l0, 3, 1, 10), clamp(0, calc(.7 * var(--fox-glow-strength, 1)), 1)), 0 0 25px rgba(var(--fox-rgb-gs3l11, 152, 67, 218), clamp(0, calc(.19 * var(--fox-glow-strength, 1)), 1));
  color: var(--fox-tone-as3l19, #f0e2fc); font-family: Rubik, sans-serif; outline: none;
  scrollbar-color: var(--fox-tone-as3l14, #a977e5) var(--fox-tone-as2l2, #160e27); scrollbar-width: thin;
}
.fox-forum-edit-dialog__panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.fox-forum-edit-dialog__panel h2 { margin: 0; color: var(--fox-tone-as4l18, #ebc7ff); font-size: 18px; }
.fox-forum-edit-dialog__panel > header button { flex: 0 0 33px; width: 33px; height: 33px; padding: 0; border: 1px solid rgba(var(--fox-rgb-as3l14, 191, 117, 239), .46); border-radius: 8px; background: rgba(var(--fox-rgb-as2l7, 103, 42, 149), .22); color: var(--fox-tone-as4l19, #f5d9ff); font-size: 23px; cursor: pointer; }
.fox-forum-edit-dialog label, .fox-forum-edit-dialog__label { display: block; margin: 9px 0 6px; color: var(--fox-tone-as3l16, #d5b4ef); font-size: 11px; font-weight: 700; }
.fox-forum-edit-dialog input, .fox-forum-edit-dialog__content {
  display: block; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid rgba(var(--fox-rgb-as3l13, 180, 111, 230), .49);
  border-radius: 9px; background: rgba(var(--fox-rgb-as2l1, 11, 8, 23), .84); color: var(--fox-tone-as4l19, #f4eaff);
  font: 13px Rubik, sans-serif; outline: none;
}
.fox-forum-edit-dialog input { margin-top: 6px; }
.fox-forum-edit-dialog__content { min-height: 140px; max-height: min(45dvh, 420px); overflow-y: auto; overflow-wrap: anywhere; line-height: 1.55; scrollbar-color: var(--fox-tone-as3l14, #a977e5) var(--fox-tone-as2l2, #160e27); scrollbar-width: thin; }
.fox-forum-edit-dialog__content img, .fox-forum-edit-dialog__content video { max-width: 100%; height: auto; }
.fox-forum-edit-dialog input:focus, .fox-forum-edit-dialog__content:focus { border-color: var(--fox-tone-as4l17, #e1a8ff); box-shadow: 0 0 13px rgba(var(--fox-rgb-gs3l13, 188, 99, 240), clamp(0, calc(.2 * var(--fox-glow-strength, 1)), 1)); }
#fox-forum-edit-feedback { min-height: 13px; margin: 7px 0 0; color: #ffbfd0; font-size: 11px; }
.fox-forum-edit-dialog__actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 13px; }
.fox-forum-edit-dialog__actions button { min-height: 34px; padding: 7px 13px; border: 1px solid rgba(var(--fox-rgb-as3l15, 197, 127, 244), .61); border-radius: 8px; background: rgba(var(--fox-rgb-as2l8, 104, 42, 162), .4); color: var(--fox-tone-as4l19, #f5e5ff); font: 700 11px Rubik, sans-serif; cursor: pointer; }
.fox-forum-edit-dialog__actions button:first-child { border-color: rgba(var(--fox-rgb-as2l13, 183, 129, 214), .35); background: rgba(var(--fox-rgb-as1l5, 64, 39, 81), .29); }
.fox-forum-edit-dialog__actions button:hover:not(:disabled), .fox-forum-edit-dialog__panel > header button:hover { border-color: var(--fox-tone-as4l17, #ebbcff); box-shadow: 0 0 13px rgba(var(--fox-rgb-gs3l13, 180, 89, 238), clamp(0, calc(.26 * var(--fox-glow-strength, 1)), 1)); }
.fox-forum-edit-dialog__actions button:disabled { opacity: .6; cursor: wait; }
.fox-forum-edit-dialog button:focus-visible { outline: 2px solid var(--fox-tone-as4l17, #e7b8ff); outline-offset: 2px; }
.fox-forum-post__heart:focus-visible, .fox-forum-post__actions a:focus-visible, .fox-forum-post__actions button:focus-visible,
.fox-forum-topic__management a:focus-visible, .fox-forum-topic__management button:focus-visible,
.fox-forum-topic__composer-actions #send_btn:focus-visible { outline: 2px solid var(--fox-tone-as4l17, #e7b8ff); outline-offset: 2px; }
@media (max-width: 600px) {
  .fox-forum-topic-page { padding: 0 2px; }
  .fox-forum-topic__title { margin-bottom: 11px; padding: 10px 12px; }
  .fox-forum-topic__scroll { height: clamp(280px, calc(100dvh - 290px), 620px); padding: 12px 8px; }
  #fox-forum-topic-posts { gap: 13px; }
  .fox-forum-post { gap: 7px; }
  .fox-forum-post__person { flex-basis: 58px; }
  .fox-forum-post__avatar { width: 42px; height: 42px; border-radius: 11px; }
  .fox-forum-post__nick { font-size: 9px; }
  .fox-forum-post__meters { flex-wrap: wrap; gap: 3px; }
  .fox-forum-post__heart, .fox-forum-post__posts { padding: 3px; font-size: 9px; }
  .fox-forum-post__bubble { min-height: 99px; padding: 9px 9px 32px; }
  .fox-forum-post__body { font-size: 12px; }
  .fox-forum-post__bubble > header { font-size: 9px; }
  .fox-forum-topic__composer { padding: 9px 7px; }
  .fox-forum-topic__composer-row { gap: 5px; }
  .fox-forum-topic__composer-actions { gap: 4px; }
  .fox-forum-topic__composer-actions #send_btn { min-width: 72px; padding: 7px 8px; font-size: 10px; }
  .fox-forum-topic__composer-actions .fox-sticker-composer-toggle { flex-basis: 35px; width: 35px; min-width: 35px; height: 40px; }
  .fox-forum-topic__management { gap: 6px; }
  .fox-forum-topic__management a, .fox-forum-topic__management button { min-width: 0; padding: 7px 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .fox-forum-topic__title h1 { animation: none; }
  .fox-forum-post__heart, .fox-forum-post__actions a, .fox-forum-post__actions button,
  .fox-forum-topic__composer-actions #send_btn, .fox-forum-topic__management a, .fox-forum-topic__management button { transition: none; }
}
