.forum-post-footer>a {color:var(--accent);}
#forum-nav[hidden],.board-mobile[hidden] {display:none;}
#side-categories .nav-item > span:not(.count) {min-width:0;overflow-wrap:anywhere;}
.board-nav-note {margin:0;padding:6px 12px;color:var(--muted);font-size:13px;}
.board-retry {color:var(--accent);width:fit-content;min-height:44px;padding-inline:12px;}
.menu-status {display:block;margin-block:10px;color:var(--muted);}
.board-mobile {display:none;}
@media(max-width:767px){
  .board-mobile {display:block;padding:6px var(--page-gutter);border-bottom:1px solid var(--line);}
  .board-mobile .board-nav-note {padding-inline:0;}
  .board-rail {display:flex;align-items:center;gap:8px;max-width:100%;overflow-x:auto;scrollbar-width:thin;}
  .board-chip {display:inline-flex;flex:none;max-width:100%;overflow-wrap:anywhere;}
  .board-chip[aria-expanded=true] {background:var(--selected-surface);color:var(--accent);}
  button.board-chip .icon:last-child {width:15px;height:15px;transform:rotate(90deg);}
  button.board-chip[aria-expanded=true] .icon:last-child {transform:rotate(-90deg);}
  .board-chip:focus-visible {outline-offset:-3px;}
  .board-drop:not([hidden]) {display:flex;flex-wrap:wrap;align-items:start;gap:8px;padding-block:8px 3px;}
  .board-drop .board-chip {max-width:100%;overflow-wrap:anywhere;}
}
.board-directory {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));align-items:start;gap:12px;}
.board-directory .forum-card {background:var(--surface);}
.board-menu-category {min-width:0;}
.board-menu-category summary {cursor:pointer;list-style:none;}
.board-menu-category summary::-webkit-details-marker {display:none;}
.board-menu-category summary:focus-visible {outline:2px solid var(--accent);}
.board-menu-category summary .icon:last-child {margin-inline-start:auto;width:15px;height:15px;}
.board-menu-category[open] > summary .icon:last-child {transform:rotate(90deg);}
.board-menu-children {display:grid;gap:5px;margin:5px 0 8px 12px;padding-inline-start:8px;border-inline-start:1px solid var(--line);}
.board-menu-children[hidden] {display:none;}
.board-settings-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(16px,2vw,28px);margin:20px 0;}
.board-settings-layout h3 {margin:0 0 12px;}
.tree-list h3:not(:first-child){margin-top:20px;}
.board-tree-item + .board-tree-item {margin-top:6px;}
.tree-work [data-tree] {max-height:clamp(245px,58vh,630px);overflow-y:auto;scrollbar-gutter:stable;scroll-padding:6px;padding:2px;}
.tree-help {margin:0 0 9px;}
.tree-node {display:flex;align-items:center;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--bg);}
.tree-pick {display:flex;align-items:center;flex:1;min-width:0;gap:8px;min-height:44px;text-align:start;padding:7px 5px;}
.tree-grip,.tree-fold {display:grid;place-items:center;flex:0 0 32px;min-height:44px;color:var(--muted);}
.tree-grip {cursor:grab;touch-action:none;user-select:none;}
.tree-grip svg {width:16px;height:20px;fill:currentColor;}
.tree-fold:focus-visible,.tree-pick:focus-visible {outline-offset:-3px;}
.tree-fold[aria-expanded=true] .icon {transform:rotate(90deg);}
.tree-fold .icon {width:15px;height:15px;}
.tree-drop {display:grid;place-items:center;min-height:36px;border:1px dashed var(--line);border-radius:7px;color:var(--muted);font-size:12px;margin-block:5px;}
.tree-drop.tree-root-drop {min-height:44px;margin-bottom:16px;}
.tree-dragging {opacity:.5;}
.tree-drag-active,.tree-drag-active .tree-grip {cursor:grabbing;}
.tree-work [data-drop-edge=inside] {outline:2px solid var(--accent);outline-offset:-2px;background:var(--selected-surface);}
.tree-work [data-drop-edge=before] {box-shadow:inset 0 3px var(--accent);}
.tree-work [data-drop-edge=after] {box-shadow:inset 0 -3px var(--accent);}
.tree-pick small,.tree-editor small {color:var(--muted);}
.tree-pick strong {overflow-wrap:anywhere;}
.tree-node.selected,.outside-items [aria-pressed=true] {border-color:var(--accent);background:var(--selected-surface);}
.tree-children {margin:6px 0 0 12px;padding-inline-start:8px;border-inline-start:1px solid var(--line);}
.tree-editor {align-self:start;min-width:0;border:1px solid var(--line);border-radius:12px;padding:16px;}
.tree-editor .field {margin:14px 0;}
.resource-order {display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px;font-size:13px;}
.outside-items,.tree-save {display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.tree-save {border-block-start:1px solid var(--line);padding-top:16px;}
.tree-save span {margin-inline-end:auto;color:var(--muted);}
@media(max-width:850px){.board-settings-layout{grid-template-columns:minmax(0,1fr);}}
.board-directory .board-menu-category {border:1px solid var(--line);border-radius:12px;background:var(--surface);}
.board-directory .board-menu-category summary {border:0;min-height:65px;}
.board-directory .board-menu-children {margin-inline-end:12px;}
#forum-nav a span,.board-directory a span,.board-menu-category summary span {min-width:0;overflow-wrap:anywhere;}
.menu-icon-field {display:flex;align-items:center;gap:10px;margin-top:6px;}
.menu-icon-field .menu-icon-preview {display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--bg);}
.menu-icon-field select {flex:1;min-width:0;margin:0;}
.forum-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin-top:16px;}
.forum-card {display:flex;align-items:center;gap:12px;min-height:76px;border:1px solid var(--line);border-radius:12px;padding:14px;}
.forum-card:hover,.forum-card:focus-visible {border-color:var(--accent);background:var(--selected-surface);}
.forum-card-icon {display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--selected-surface);color:var(--accent);}
.forum-card b {margin-left:auto;color:var(--muted);}
.forum-card strong,.forum-card small,.forum-row strong,.forum-row small,.forum-settings-row small,.forum-admin-entry span {display:block;overflow-wrap:anywhere;}
.forum-card small,.forum-row small,.forum-settings-row small,.forum-admin-entry span {font-size:12px;color:var(--muted);margin-top:5px;}
.forum-tools,.forum-pages,.forum-filter,.forum-post-footer,.forum-settings-row,.forum-check,.forum-poll {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.forum-tools,.forum-filter,.forum-pages {margin:10px 0;}
nav.forum-tools a {display:inline-flex;align-items:center;min-height:42px;padding:7px 13px;border:1px solid var(--line);border-radius:8px;font-size:13px;}
nav.forum-tools a:hover,nav.forum-tools a:focus-visible {color:var(--accent);background:var(--selected-surface);}
.forum-filter input,.forum-filter select,.forum-tools select,.forum-editor select,.forum-compose select,.forum-pass input {background:var(--bg);border:1px solid var(--line);border-radius:8px;min-height:42px;color:var(--ink);padding:8px 10px;min-width:0;}
.forum-filter input {flex:1;min-width:min(100%,135px);}
.forum-tools .btn,.forum-post-footer a {min-height:40px;}
.forum-row,.forum-settings-row,.forum-admin-entry {border-bottom:1px solid var(--line);padding:13px 0;}
.forum-row {display:flex;align-items:center;gap:8px;}
.forum-row>a,.forum-admin-entry {display:block;flex:1;min-width:0;}
.forum-row>a:hover,.forum-admin-entry:hover {color:var(--accent);}
.forum-tag {display:inline-block;font-weight:550;font-size:11px;padding:3px 6px;background:var(--selected-surface);color:var(--accent);border-radius:5px;margin-right:5px;}
.forum-gallery {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:10px;margin-top:10px;}
.forum-gallery .forum-row {border:1px solid var(--line);padding:12px;border-radius:10px;}
.forum-gallery img {width:100%;height:110px;object-fit:cover;border-radius:7px;}
.forum-pages {justify-content:center;padding:8px 0;}
.forum-pages button {min-width:36px;min-height:40px;border:1px solid var(--line);border-radius:7px;padding:0 8px;}
.forum-pages [aria-current] {background:var(--selected-surface);color:var(--accent);}
.forum-settings-row,.forum-post-footer {justify-content:space-between;}
.forum-post-footer {border-top:1px solid var(--line);padding-top:12px;}
.forum-photo {display:block;max-width:100%;max-height:760px;object-fit:contain;margin:15px auto;}
.forum-child {margin-inline-start:clamp(10px,3vw,24px);padding-inline-start:12px;border-inline-start:2px solid var(--line);}
.forum-details {border-top:1px solid var(--line);padding:8px 0;}
.forum-details summary {cursor:pointer;min-height:40px;padding:9px 0;}
.forum-check {font-size:13px;min-height:40px;}
.forum-check input {width:auto!important;accent-color:var(--accent);}
.forum-pass,.forum-editor {margin-top:12px;}
.forum-pass .talk-hint {margin:0;}
.modal-top p:empty {display:none;}
.forum-pass .form-error:empty,.forum-editor .form-error:empty {display:none;}
.forum-question {padding:14px 0;border-bottom:1px solid var(--line);}
.forum-placement {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px;align-items:end;padding-block:8px;border-bottom:1px solid var(--line);}
.forum-code {width:118px;height:38px;}
.forum-account {max-width:560px;}
.forum-admin-entry {color:var(--ink);}
.forum-poll {border:1px solid var(--line);border-radius:10px;padding:10px;}
.forum-screen .talk-header {flex-wrap:wrap;}
@media(max-width:767px){.forum-filter input,.forum-filter select,.forum-tools select,.forum-editor input,.forum-editor textarea,.forum-pass input,.forum-account input,.forum-compose input,.forum-compose textarea {font-size:16px;} .forum-card {min-height:62px;} .forum-tools .btn,.forum-pages button {min-height:44px;} }
