/* Внутренние страницы форума */
.crumbs {
  padding: 25px 0 17px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.crumbs a { color: var(--text-2); }
.page-head {
  gap: 18px;
  margin-bottom: 23px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(110deg, var(--surface), color-mix(in srgb, var(--surface) 96%, var(--accent)));
}
.page-head .grow { min-width: min(240px, 100%); }
.page-head h1, .auth h1 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.page-head p { color: var(--text-2); }
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.private-note { margin-top: 8px; }
.notes { padding: 15px 20px; border-left: 2px solid var(--accent); }
.notes summary { display: flex; align-items: center; gap: 9px; }
.notes summary::-webkit-details-marker, .rules-contents summary::-webkit-details-marker { display: none; }
.notes summary::after, .rules-contents summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: 0 2px 3px auto;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.notes[open] summary::after, .rules-contents[open] summary::after { transform: rotate(225deg); margin-bottom: -4px; }
.notes .content { padding-top: 14px; border-top: 1px solid var(--border); }

.thread-list-head { display: flex; align-items: center; gap: 9px; padding: 16px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.thread-list-head h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.thread-list-head span { padding: 1px 7px; background: var(--surface-3); color: var(--text-2); border-radius: 5px; font-size: 11px; font-weight: 600; }
.thread-row { padding: 18px 20px; }
.thread-title { line-height: 1.4; letter-spacing: -.012em; overflow-wrap: anywhere; }
.thread-meta { margin-top: 3px; }
.thread-meta .uname { font-weight: 500; }
.thread-row:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.threads .empty, .members .empty { padding: 44px 20px; color: var(--text-2); }
.empty > svg.i:first-child {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent);
  opacity: 1;
}
.toolbar { gap: 10px; margin-bottom: 16px; }
.tabs { max-width: 100%; }
.tabs :is(a, button):hover { color: var(--text); background: var(--surface-2); }
.tabs .active {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
}

.post { scroll-margin-top: 84px; }
.post-author { padding-block: 24px; background: color-mix(in srgb, var(--surface-2) 58%, var(--surface)); }
.post-body { padding: clamp(18px, 2.4vw, 30px); }
.post-content .md, .notes .md { max-width: 88ch; color: var(--text-2); line-height: 1.78; }
.post-content :is(strong, h4), .notes strong { color: var(--text); }
.md blockquote { border-left: 2px solid var(--accent); }
.md h3 { margin-top: 30px; padding-bottom: 9px; font-size: 20px; line-height: 1.35; letter-spacing: -.025em; }
.rules-post { grid-template-columns: clamp(190px, 22vw, 256px) minmax(0, 1fr); overflow: visible; }
.rules-aside {
  position: sticky;
  top: 82px;
  align-self: start;
  max-height: calc(100vh - 105px);
  max-height: calc(100dvh - 105px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
}
.rules-aside .post-author { border: 0; border-top-left-radius: var(--radius); }
.rules-contents { padding: 14px 16px 18px; border-top: 1px solid var(--border); }
.rules-contents summary {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.rules-contents summary .i { color: var(--accent); }
.rules-contents nav { display: grid; gap: 3px; margin-top: 12px; }
.rules-contents button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  padding: 6px 8px;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.rules-contents button:hover { background: var(--surface-2); color: var(--accent); }
.rules-post [id^=rule-part] { scroll-margin-top: 86px; }
.formview { gap: 1px; background: var(--border); }
.formview .row { background: var(--surface); }
.formview .q { color: var(--text-2); background: var(--surface-2); }
.review-box { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.syspost { overflow-wrap: anywhere; }
.reply-box, .review-box { padding: clamp(16px, 2.5vw, 26px); }
.rich-bar { margin: 0; padding: 8px 10px; border: 1px solid var(--border-2); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface-2); }
.rich-bar + textarea.input { display: block; border-radius: 0 0 10px 10px; }
.field > label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field > label .req { margin-left: 3px; color: var(--bad); }
.form-card { padding: clamp(18px, 3vw, 32px); }
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus, textarea.input:focus, select.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.drop:hover, .drop.over, textarea.input.drag, .icon-pick button.active { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.drop { position: relative; }
.drop input[type=file] { display: block; position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-card .form-actions, .modal .form-actions { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 20px; }
#newform { max-width: 920px; }

.profile-banner.default {
  height: clamp(130px, 17vw, 214px);
  background-image: linear-gradient(110deg, color-mix(in srgb, var(--rc, var(--accent)) 22%, transparent), transparent 65%), linear-gradient(0deg, rgb(17 14 29 / .47), transparent 70%), url('/img/cherry-grove.webp');
  background-position: center 47%;
}
.profile-head { gap: 20px; padding: 0 clamp(18px, 3vw, 32px) 26px; }
.profile-head h1 { letter-spacing: -.035em; }
.profile-head .uname { min-width: 0; overflow-wrap: anywhere; }
.profile-head .grow { min-width: min(200px, 100%); }
.profile-stats { gap: 0; padding: 12px 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.profile-stats div { padding: 0 clamp(12px, 2vw, 25px); }
.profile-stats div + div { border-left: 1px solid var(--border); }
.profile-stats b { line-height: 1.2; font-variant-numeric: tabular-nums; }
.members { grid-template-columns: repeat(auto-fill, minmax(min(100%, 258px), 1fr)); }
.members > .empty { grid-column: 1 / -1; }
.member { min-height: 90px; padding: 17px; transition: border-color .15s, background .15s; }
.member:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
.member .uname { overflow-wrap: anywhere; }
.member .meta { align-items: center; }

.admin-table th { padding-block: 13px; }
.admin-table td { padding-block: 13px; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.struct-cat-head { padding-block: 14px; }
.struct-cat-head > .i { color: var(--accent); }
.struct-forum { padding-block: 16px; }
.cell-user > div, .struct-forum .grow { overflow-wrap: anywhere; }
.table-wrap { scrollbar-width: thin; }
.modal-back { background: rgb(8 7 15 / .76); backdrop-filter: blur(7px); }
.modal { padding: clamp(18px, 3vw, 30px); max-height: calc(100dvh - 32px); }
.modal-head { gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.modal-head [data-close] { flex: none; }
.modal-body .check { max-width: 100%; }

.auth-split {
  max-width: 960px;
  margin: clamp(28px, 6vw, 76px) auto;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.auth-split .auth { align-self: center; border: 0; padding: clamp(23px, 4vw, 46px); }
.auth .page-kicker { margin-bottom: 16px; }
.auth .sub { font-size: 14px; margin: 8px 0 26px; }
.auth .switch { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 15px; }
.auth-art {
  position: relative;
  min-height: 410px;
  padding: 25px 8px 0;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: linear-gradient(155deg, rgb(24 14 41 / .88), rgb(31 19 55 / .46)), url('/img/cherry-grove.webp') center / cover;
}
.auth-art img { position: relative; max-height: 370px; object-fit: contain; object-position: center bottom; }
.auth-art-caption { position: absolute; left: 30px; top: 28px; color: white; display: grid; }
.auth-art-caption b { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.15; letter-spacing: -.055em; }
.auth-art-caption span { color: #e7d6ff; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

@media (min-width: 761px) and (max-width: 1000px) {
  .auth-art { display: flex; }
}
@media (max-width: 760px) {
  .crumbs { padding: 18px 0 12px; }
  .page-head { gap: 12px; padding: 16px; margin-bottom: 14px; }
  .page-head .grow { min-width: min(160px, 100%); }
  .page-head > .btn { white-space: normal; }
  .page-head .ficon-lg { width: 46px; height: 46px; }
  .thread-list-head, .thread-row { padding: 14px 16px; }
  .post-author { padding: 12px 15px; gap: 8px; }
  .post-author .ava { width: 38px; height: 38px; border-radius: 10px; font-size: 18px; }
  .rules-post { grid-template-columns: minmax(0, 1fr); }
  .rules-aside { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); }
  .rules-aside .post-author { border-top-right-radius: var(--radius); }
  .rules-contents { padding: 12px 16px; }
  .formview .row { grid-template-columns: minmax(0, 1fr); }
  .formview .q { padding-bottom: 4px; }
  .rich-bar .hint { flex: 1 1 130px; font-size: 11px; line-height: 1.4; }
  .profile-head { align-items: start; gap: 12px; }
  .profile-head .ava { width: 76px; height: 76px; border-radius: 18px; }
  .profile-head .ava-wrap, .profile-head > .ava { margin-top: -34px; }
  .profile-stats { width: 100%; }
  .profile-stats div { flex: 1; }
  .struct-forum .grow { min-width: min(150px, 100%); }
  .auth-split { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .auth-art { display: none; }
}
@media (max-width: 500px) {
  .profile-head .grow { flex-basis: 100%; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lvl, .toast { animation: none; }
}
