/* 移动端独立展示层：不改动 PC 桌面端布局。 */
.bbs-mobile-home-head,
.bbs-mobile-channel-strip,
.bbs-mobile-bottom-nav,
.bbs-mobile-backtop,
.bbs-mobile-header-back {
  display: none;
}

@media (max-width: 767.98px) {
  html.bbs-theme-minimal,
  html.bbs-theme-minimal body {
    background: #f5f7fb !important;
    color: #111827;
    overflow-x: hidden;
  }

  html.bbs-theme-minimal body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  html.bbs-theme-minimal #body {
    padding-top: 10px !important;
  }

  html.bbs-theme-minimal #body > .container,
  html.bbs-theme-minimal .bbs-feed-container {
    max-width: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html.bbs-theme-minimal .bbs-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 56px;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid rgba(226,232,240,.9) !important;
    backdrop-filter: blur(16px);
  }

  html.bbs-theme-minimal .bbs-topbar > .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html.bbs-theme-minimal .bbs-topbar-shell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    width: 100%;
  }

  html.bbs-theme-minimal .bbs-mobile-header-back {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
  }

  html.bbs-theme-minimal .bbs-mobile-header-back svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  html.bbs-theme-minimal .bbs-topbar-brand {
    min-width: 0;
    max-width: calc(100vw - 118px);
  }

  html.bbs-theme-minimal .bbs-topbar-shell.has-mobile-back .bbs-topbar-brand {
    max-width: calc(100vw - 164px);
  }

  html.bbs-theme-minimal .bbs-topbar-logo img {
    max-height: 32px;
    width: auto;
  }

  html.bbs-theme-minimal .bbs-topbar-mobile-actions {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  html.bbs-theme-minimal .bbs-topbar-icon-btn,
  html.bbs-theme-minimal .bbs-topbar-avatar-btn,
  html.bbs-theme-minimal .bbs-topbar-toggler {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
  }

  html.bbs-theme-minimal .bbs-topbar-avatar-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    border-radius: 999px !important;
  }

  html.bbs-theme-minimal .bbs-topbar-avatar-btn img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
  }

  html.bbs-theme-minimal .bbs-topbar-icon-btn svg,
  html.bbs-theme-minimal .bbs-topbar-toggler svg {
    width: 20px;
    height: 20px;
    stroke: #111827;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  html.bbs-theme-minimal .bbs-topbar-collapse,
  html.bbs-theme-minimal .bbs-feed-left,
  html.bbs-theme-minimal .bbs-feed-right,
  html.bbs-theme-minimal .bbs-side-modern,
  html.bbs-theme-minimal .bbs-feed-desktop-card,
  html.bbs-theme-minimal .bbs-thread-left-aside,
  html.bbs-theme-minimal .bbs-thread-aside,
  html.bbs-theme-minimal .bbs-footer,
  html.bbs-theme-minimal .bbs-home-carousel-nav {
    display: none !important;
  }

  html.bbs-theme-minimal .bbs-feed,
  html.bbs-theme-minimal .bbs-index-page {
    margin: 0 !important;
  }

  html.bbs-theme-minimal .bbs-feed-grid,
  html.bbs-theme-minimal .bbs-index-grid {
    display: block !important;
    width: 100% !important;
  }

  html.bbs-theme-minimal .bbs-forum-page {
    padding-top: 0 !important;
  }

  html.bbs-theme-minimal .bbs-forum-main {
    display: block !important;
    min-width: 0 !important;
  }

  html.bbs-theme-minimal .bbs-feed-main,
  html.bbs-theme-minimal .bbs-thread-main,
  html.bbs-theme-minimal .main {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .bbs-mobile-home-head {
    display: block;
    margin: 2px 0 12px;
    padding: 16px;
    border: 1px solid rgba(226,232,240,.86);
    border-radius: 22px;
    background: linear-gradient(135deg, #111827, #334155);
    color: #fff;
    box-shadow: 0 16px 36px rgba(15,23,42,.18);
  }

  .bbs-mobile-home-head h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.02em;
  }

  .bbs-mobile-home-head p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.74);
    font-size: 13px;
    line-height: 1.6;
  }

  .bbs-mobile-home-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .bbs-mobile-home-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    border-radius: 14px;
    color: #111827;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
  }

  .bbs-mobile-channel-strip {
    display: none !important;
  }

  html.bbs-theme-minimal .bbs-home-carousel {
    display: block !important;
    height: auto !important;
    margin: 0 0 12px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: transparent !important;
    box-shadow: 0 14px 30px rgba(15,23,42,.14) !important;
  }

  html.bbs-theme-minimal .bbs-home-carousel::after {
    display: none !important;
  }

  html.bbs-theme-minimal .bbs-home-carousel-track {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
  }

  html.bbs-theme-minimal .bbs-home-carousel-track::-webkit-scrollbar {
    display: none;
  }

  html.bbs-theme-minimal .bbs-home-carousel-item {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 100%;
    height: 168px !important;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: 22px !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transition: none !important;
  }

  html.bbs-theme-minimal .bbs-home-carousel-item::before {
    background: linear-gradient(to bottom, rgba(15,23,42,.05) 0%, rgba(15,23,42,.16) 45%, rgba(15,23,42,.72) 100%) !important;
  }

  html.bbs-theme-minimal .bbs-home-carousel-content {
    top: auto !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    z-index: 3 !important;
  }

  html.bbs-theme-minimal .bbs-home-carousel-content strong {
    font-size: 20px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    font-weight: 900 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transition: none !important;
  }

  html.bbs-theme-minimal .bbs-home-carousel-content p {
    display: none !important;
  }

  html.bbs-theme-minimal .bbs-home-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 8;
    display: flex !important;
    justify-content: center;
    gap: 5px;
    pointer-events: auto;
  }

  html.bbs-theme-minimal .bbs-home-carousel-dots button {
    width: 5px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    transition: width .2s ease, background .2s ease;
  }

  html.bbs-theme-minimal .bbs-home-carousel-dots button.active {
    width: 16px;
    background: #fff;
  }

  html.bbs-theme-minimal .bbs-feed-tabs {
    position: sticky;
    top: 56px;
    z-index: 20;
    margin: 0 -12px 12px !important;
    padding: 8px 12px;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(245,247,251,.94) !important;
    backdrop-filter: blur(14px);
  }

  html.bbs-theme-minimal .bbs-feed-tab-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  html.bbs-theme-minimal .bbs-feed-tab-links a {
    justify-content: center;
    min-height: 36px;
    padding: 0 8px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
  }

  html.bbs-theme-minimal .bbs-feed-create-mini {
    display: none !important;
  }

  html.bbs-theme-minimal .bbs-forum-page .bbs-forum-tabs {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 10px !important;
    padding: 10px !important;
    border: 1px solid rgba(226,232,240,.9) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.055) !important;
    backdrop-filter: none !important;
  }

  html.bbs-theme-minimal .bbs-forum-page .bbs-forum-tab-links,
  html.bbs-theme-minimal .bbs-forum-page .bbs-feed-tabs .bbs-forum-tab-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 8px !important;
    padding: 0 !important;
  }

  html.bbs-theme-minimal .bbs-forum-page .bbs-forum-tab-links > a,
  html.bbs-theme-minimal .bbs-forum-page .bbs-feed-tabs .bbs-forum-tab-links > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.045) !important;
  }

  html.bbs-theme-minimal .bbs-forum-page .bbs-forum-tab-links > a.active,
  html.bbs-theme-minimal .bbs-forum-page .bbs-feed-tabs .bbs-forum-tab-links > a.active {
    border-color: var(--bbs-active-bg, #111827) !important;
    background: var(--bbs-active-bg, #111827) !important;
    color: var(--bbs-active-text, #fff) !important;
  }

  html.bbs-theme-minimal .bbs-forum-page .bbs-forum-tabs > a.bbs-feed-create-mini,
  html.bbs-theme-minimal .bbs-forum-page .bbs-forum-tabs > a.bbs-feed-create-mini:link,
  html.bbs-theme-minimal .bbs-forum-page .bbs-forum-tabs > a.bbs-feed-create-mini:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 72px !important;
    gap: 5px !important;
    width: 72px !important;
    min-width: 72px !important;
    height: 38px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid var(--bbs-active-bg, #111827) !important;
    border-radius: 999px !important;
    background: var(--bbs-active-bg, #111827) !important;
    color: var(--bbs-active-text, #fff) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 10px 22px rgba(15,23,42,.12) !important;
  }

  html.bbs-theme-minimal .threadlist {
    display: block;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-card {
    display: block !important;
    margin: 0 0 10px;
    padding: 14px;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 20px;
    background: #fff;
    color: #111827;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.055);
  }

  html.bbs-theme-minimal .bbs-mobile-thread-main h3 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    line-height: 1.42;
    font-weight: 900;
    letter-spacing: -.01em;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-main p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-label {
    display: inline-flex;
    margin: 0 0 8px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--bbs-active-bg, #111827);
    font-size: 11px;
    font-weight: 900;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-images {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 14px;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-images.count-1 {
    grid-template-columns: 1fr;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-images.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.bbs-theme-minimal .bbs-mobile-thread-images.count-3,
  html.bbs-theme-minimal .bbs-mobile-thread-images.count-9 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html.bbs-theme-minimal .bbs-mobile-thread-images span {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef2f7;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-images.count-1 span {
    aspect-ratio: 16 / 9;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: #94a3b8;
    font-size: 12px;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-meta .author {
    max-width: 46%;
    color: #475569;
    font-weight: 800;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-meta img {
    width: 22px;
    height: 22px;
    margin-right: 5px;
    border-radius: 50%;
    object-fit: cover;
  }

  html.bbs-theme-minimal .bbs-mobile-thread-meta em {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    color: #64748b;
    background: #f1f5f9;
    font-style: normal;
    font-weight: 800;
  }

  html.bbs-theme-minimal .bbs-feed-pagination {
    margin: 16px 0 4px !important;
  }

  html.bbs-theme-minimal .bbs-thread-layout,
  html.bbs-theme-minimal .bbs-thread-layout.row {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html.bbs-theme-minimal .card-thread,
  html.bbs-theme-minimal .card-postlist,
  html.bbs-theme-minimal .bbs-thread-neighbor-card,
  html.bbs-theme-minimal .bbs-guest-reply-card {
    border: 1px solid rgba(226,232,240,.9) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.055) !important;
  }

  html.bbs-theme-minimal .card-thread .card-body,
  html.bbs-theme-minimal .card-postlist .card-body {
    padding: 15px !important;
  }

  html.bbs-theme-minimal .card-thread .media {
    align-items: flex-start;
  }

  html.bbs-theme-minimal .card-thread .avatar-3,
  html.bbs-theme-minimal .postlist .avatar-3,
  html.bbs-theme-minimal .bbs-avatar-frame-wrap-post {
    width: 42px !important;
    height: 42px !important;
  }

  html.bbs-theme-minimal .card-thread h4 {
    margin: 2px 0 8px;
    font-size: 21px !important;
    line-height: 1.38 !important;
    font-weight: 900;
    letter-spacing: -.02em;
  }

  html.bbs-theme-minimal .bbs-thread-meta-row {
    display: block !important;
  }

  html.bbs-theme-minimal .bbs-thread-meta-main {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  html.bbs-theme-minimal .bbs-thread-meta-main .ml-2 {
    margin-left: 0 !important;
  }

  html.bbs-theme-minimal .bbs-thread-meta-row > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  html.bbs-theme-minimal .bbs-thread-brief-box,
  html.bbs-theme-minimal .bbs-version-panel,
  html.bbs-theme-minimal .bbs-copyright-notice {
    border-radius: 16px !important;
  }

  html.bbs-theme-minimal .markdown-body,
  html.bbs-theme-minimal .message {
    max-width: 100%;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.78;
    word-break: break-word;
  }

  html.bbs-theme-minimal .markdown-body img,
  html.bbs-theme-minimal .message img,
  html.bbs-theme-minimal .card-thread img {
    max-width: 100% !important;
    height: auto !important;
  }

  html.bbs-theme-minimal .bbs-thread-actions {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px !important;
  }

  html.bbs-theme-minimal .bbs-thread-action {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 7px 4px !important;
    border-radius: 0 !important;
    gap: 4px 0;
    font-size: 12px !important;
  }

  html.bbs-theme-minimal .bbs-thread-action i {
    grid-column: 1 / -1;
    font-size: 17px;
  }

  html.bbs-theme-minimal .bbs-thread-action span {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    line-height: 16px;
    white-space: nowrap;
  }

  html.bbs-theme-minimal .bbs-thread-action em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    margin-left: 4px !important;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(100,116,139,.1);
    color: inherit;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 16px;
    vertical-align: baseline;
  }

  html.bbs-theme-minimal .bbs-thread-action span + em {
    transform: translateY(0);
  }

  html.bbs-theme-minimal .bbs-thread-action.js-thread-like {
    position: relative;
    grid-template-columns: 1fr auto auto 1fr;
  }

  html.bbs-theme-minimal .bbs-thread-action.js-thread-like span {
    grid-column: 2;
    justify-self: end;
    margin-right: 0;
  }

  html.bbs-theme-minimal .bbs-thread-action.js-thread-like em {
    grid-column: 3;
    justify-self: start;
    display: inline-flex;
  }

  html.bbs-theme-minimal .bbs-thread-neighbor-nav {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 10px 0 !important;
  }

  html.bbs-theme-minimal .bbs-thread-neighbor-card {
    padding: 13px !important;
  }

  html.bbs-theme-minimal .bbs-thread-neighbor-card.next {
    text-align: right;
  }

  html.bbs-theme-minimal .bbs-thread-neighbor-card.next span,
  html.bbs-theme-minimal .bbs-thread-neighbor-card.next strong {
    justify-content: flex-end;
    text-align: right;
  }

  .bbs-postlist-toolbar,
  html.bbs-theme-minimal .bbs-postlist-toolbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    width: 100%;
    margin: 0 0 14px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid #edf1f7;
    text-align: left !important;
  }

  .bbs-postlist-title,
  html.bbs-theme-minimal .bbs-postlist-title {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    min-width: 0;
    text-align: left !important;
  }

  html.bbs-theme-minimal .bbs-postlist-title b {
    display: inline-flex;
    align-items: center;
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    white-space: nowrap;
  }

  html.bbs-theme-minimal .bbs-postlist-title > span {
    display: inline-flex;
    align-items: center;
    margin-top: 1px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
  }

  html.bbs-theme-minimal .bbs-postlist-title .posts {
    display: inline;
    margin: 0 2px 0 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
  }

  .bbs-postlist-tools,
  html.bbs-theme-minimal .bbs-postlist-tools {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  html.bbs-theme-minimal .bbs-postlist-tools a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dbe3ef !important;
    border-radius: 999px !important;
    color: #475569 !important;
    background: #f8fafc !important;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
  }

  html.bbs-theme-minimal .bbs-postlist-tools a.active {
    border-color: var(--bbs-active-bg, #111827) !important;
    color: var(--bbs-active-text, #fff) !important;
    background: var(--bbs-active-bg, #111827) !important;
  }

  html.bbs-theme-minimal .bbs-postlist-tools a i {
    color: inherit !important;
  }

  html.bbs-theme-minimal .postlist .post,
  html.bbs-theme-minimal .postlist > li.media {
    display: flex !important;
    gap: 10px;
    padding: 14px 12px !important;
  }

  html.bbs-theme-minimal .postlist .mr-3 {
    margin-right: 0 !important;
  }

  html.bbs-theme-minimal .postlist .media-body {
    min-width: 0;
  }

  html.bbs-theme-minimal .postlist .d-flex.justify-content-between.small {
    display: block !important;
  }

  html.bbs-theme-minimal .postlist .text-right.text-grey {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    text-align: left !important;
  }

  html.bbs-theme-minimal .postlist .floor-parent {
    margin-left: auto;
  }

  html.bbs-theme-minimal .post.newpost {
    position: static !important;
    margin-top: 4px !important;
    padding: 14px !important;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
  }

  html.bbs-theme-minimal #quick_reply_form textarea,
  html.bbs-theme-minimal #message {
    min-height: 96px;
    border-radius: 16px !important;
    font-size: 16px;
  }

  html.bbs-theme-minimal .bbs-search-modal-layer {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 56px 10px calc(84px + env(safe-area-inset-bottom)) !important;
  }

  html.bbs-theme-minimal .bbs-search-modal {
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 18px 20px 16px !important;
    border-radius: 24px !important;
  }

  html.bbs-theme-minimal .bbs-search-modal-head {
    flex: 0 0 auto;
    margin-bottom: 14px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
  }

  html.bbs-theme-minimal .bbs-search-tabs a {
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  html.bbs-theme-minimal .bbs-search-close {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
  }

  html.bbs-theme-minimal .bbs-search-form {
    flex: 0 0 auto;
  }

  html.bbs-theme-minimal .bbs-search-input-wrap {
    margin-bottom: 18px !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  html.bbs-theme-minimal .bbs-search-input-wrap input {
    height: 42px !important;
    font-size: 15px !important;
  }

  html.bbs-theme-minimal .bbs-search-input-wrap button {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background: #111827 !important;
    color: #fff !important;
  }

  html.bbs-theme-minimal .bbs-search-filter-panel {
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  html.bbs-theme-minimal .bbs-search-filter-line {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    min-width: 0;
    margin: 10px 0 0 !important;
  }

  html.bbs-theme-minimal .bbs-search-filter-line:first-child {
    margin-top: 0 !important;
  }

  html.bbs-theme-minimal .bbs-search-filter-title {
    display: none !important;
  }

  html.bbs-theme-minimal .bbs-search-chip-row,
  html.bbs-theme-minimal .bbs-search-forum-pills {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 4px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  html.bbs-theme-minimal .bbs-search-chip-row::-webkit-scrollbar,
  html.bbs-theme-minimal .bbs-search-forum-pills::-webkit-scrollbar {
    display: none;
  }

  html.bbs-theme-minimal .bbs-search-chip-row label,
  html.bbs-theme-minimal .bbs-search-chip-row select,
  html.bbs-theme-minimal .bbs-search-forum-pills button {
    flex: 0 0 auto;
    height: 34px !important;
    min-width: 70px;
    padding: 0 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
  }

  html.bbs-theme-minimal .bbs-search-chip-row select {
    width: auto !important;
    max-width: 112px;
    padding-right: 28px !important;
    outline: none !important;
    appearance: auto;
  }

  html.bbs-theme-minimal .bbs-search-chip-row label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  html.bbs-theme-minimal .bbs-search-chip-row label.active,
  html.bbs-theme-minimal .bbs-search-forum-pills button.active {
    border-color: #111827 !important;
    background: #111827 !important;
    color: #fff !important;
  }

  html.bbs-theme-minimal .bbs-search-page-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #f8fafc;
  }

  html.bbs-theme-minimal .bbs-search-page-form .bbs-search-type-row {
    justify-content: center;
    padding: 0 !important;
    overflow: visible;
  }

  html.bbs-theme-minimal .bbs-search-page-form .bbs-search-type-row label {
    flex: 1 1 0;
    max-width: 84px;
  }

  html.bbs-theme-minimal .bbs-search-forum-select-wrap {
    display: flex;
    justify-content: center;
  }

  html.bbs-theme-minimal .bbs-search-forum-select-wrap select {
    width: 100% !important;
    max-width: 220px;
    height: 36px !important;
    padding: 0 34px 0 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background-color: #fff !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    outline: none !important;
    box-shadow: none !important;
  }

  html.bbs-theme-minimal .bbs-search-inline {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  html.bbs-theme-minimal .bbs-search-result-head {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 !important;
    padding: 10px 0 8px;
    background: rgba(255,255,255,.96);
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 900;
  }

  html.bbs-theme-minimal .bbs-search-results .bbs-search-card {
    margin: 0 !important;
    padding: 12px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html.bbs-theme-minimal .bbs-search-results .bbs-search-card h2 {
    margin-bottom: 6px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  html.bbs-theme-minimal .bbs-search-results .bbs-search-card p {
    margin-bottom: 8px !important;
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
  }

  html.bbs-theme-minimal .bbs-search-card-foot {
    gap: 8px !important;
    color: #64748b !important;
    font-size: 12px !important;
  }

  html.bbs-theme-minimal .bbs-search-inline-pagination {
    position: sticky;
    bottom: 0;
    padding: 10px 0 0;
    background: rgba(255,255,255,.96);
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-panel {
    display: flex !important;
    flex-direction: column !important;
    width: min(88vw, 360px) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 0;
    background: #f8fafc;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-head {
    padding: 18px 18px 12px;
    border-bottom: 0;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-head strong {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.02em;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-nav {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    padding: 0 14px 10px;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-nav > a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 8px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-nav > a > i {
    width: 22px;
    min-width: 22px;
    text-align: center;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-account-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-nav > a.bbs-mobile-drawer-logout,
  html.bbs-theme-minimal .bbs-mobile-drawer-account-actions .bbs-mobile-drawer-logout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 8px;
    padding: 0 14px;
    border: 1px solid rgba(239,68,68,.22) !important;
    border-radius: 16px;
    color: #dc2626 !important;
    background: #fff5f5 !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(239,68,68,.08);
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-nav > a.bbs-mobile-drawer-logout i,
  html.bbs-theme-minimal .bbs-mobile-drawer-account-actions .bbs-mobile-drawer-logout i {
    width: 22px;
    min-width: 22px;
    text-align: center;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-section {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15,23,42,.045);
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-title {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-grid a {
    display: flex;
    min-width: 0;
    min-height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    color: #475569;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-grid a.active,
  html.bbs-theme-minimal .bbs-mobile-forum-list a.active {
    border-color: var(--bbs-active-bg, #111827);
    color: var(--bbs-active-text, #fff);
    background: var(--bbs-active-bg, #111827);
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-grid-service {
    grid-template-columns: minmax(0, 74px);
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #64748b !important;
    font-size: 18px;
    line-height: 1;
    text-align: center;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-grid a.active i {
    color: var(--bbs-active-text, #fff) !important;
  }

  html.bbs-theme-minimal .bbs-mobile-forum-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  html.bbs-theme-minimal .bbs-mobile-forum-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 54px;
    padding: 8px 9px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    color: #334155;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
  }

  html.bbs-theme-minimal .bbs-mobile-forum-list a span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  html.bbs-theme-minimal .bbs-mobile-forum-list img,
  html.bbs-theme-minimal .bbs-mobile-forum-list i {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 10px;
    object-fit: cover;
  }

  html.bbs-theme-minimal .bbs-mobile-forum-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #e2e8f0;
  }

  html.bbs-theme-minimal .bbs-mobile-feature-list a {
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    text-align: center;
  }

  html.bbs-theme-minimal .bbs-mobile-feature-list a span {
    flex: 0 1 auto;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-fixed-account {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 14px 12px;
    padding: 10px 0 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-fixed-account a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    color: #334155;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-fixed-account a.bbs-mobile-drawer-logout {
    border-color: rgba(239,68,68,.24) !important;
    color: #dc2626 !important;
    background: #fff5f5 !important;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-search {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 7px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-search input {
    min-width: 0;
    flex: 1 1 auto;
    height: 34px;
    padding: 0 10px;
    border: 0 !important;
    background: transparent !important;
    color: #111827;
    font-size: 13px;
    outline: none !important;
    box-shadow: none !important;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    flex: 0 0 42px;
    border: 0 !important;
    border-radius: 12px;
    background: var(--bbs-active-bg, #111827) !important;
    color: #fbbf24 !important;
    box-shadow: none !important;
  }

  html.bbs-theme-minimal .bbs-mobile-drawer-search button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: inherit !important;
    line-height: 1;
    text-align: center;
  }

  html.bbs-theme-minimal #my_mobile_nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    margin: 0 12px 12px !important;
  }

  html.bbs-theme-minimal #my_mobile_nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: 40px;
    padding: 0 6px;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 20px rgba(15,23,42,.045);
  }

  html.bbs-theme-minimal #my_mobile_nav .btn i {
    flex: 0 0 auto;
    margin-right: 4px;
  }

  html.bbs-theme-minimal #my_mobile_nav .bbs-my-mobile-logout {
    border-color: rgba(239,68,68,.22) !important;
    color: #dc2626 !important;
    background: #fff5f5 !important;
  }

  html.bbs-theme-minimal .bbs-attach-panel {
    padding: 0.78rem !important;
  }

  html.bbs-theme-minimal .bbs-attach-panel-head {
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  html.bbs-theme-minimal .bbs-attach-item {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-items: flex-start !important;
    gap: 0.62rem !important;
    min-height: 0 !important;
    padding: 0.78rem 0 !important;
  }

  html.bbs-theme-minimal .bbs-attach-thumb {
    width: 38px !important;
    height: 38px !important;
  }

  html.bbs-theme-minimal .bbs-attach-control {
    position: static !important;
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: auto !important;
    height: auto !important;
    margin-left: 50px !important;
    gap: 0.55rem !important;
  }

  html.bbs-theme-minimal .bbs-attach-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    text-align: left !important;
  }

  html.bbs-theme-minimal .bbs-attach-badge .bbs-attach-price,
  html.bbs-theme-minimal .bbs-attach-badge small,
  html.bbs-theme-minimal .bbs-attach-buttons {
    position: static !important;
  }

  html.bbs-theme-minimal .bbs-attach-badge small {
    max-width: none !important;
    overflow-wrap: anywhere !important;
  }

  html.bbs-theme-minimal .bbs-attach-buttons {
    justify-content: flex-start !important;
    width: auto !important;
    flex-wrap: wrap !important;
  }

  html.bbs-theme-minimal .bbs-attach-download,
  html.bbs-theme-minimal .bbs-attach-rate,
  html.bbs-theme-minimal .bbs-attach-report,
  html.bbs-theme-minimal .bbs-attach-delete {
    flex: 1 1 calc(50% - 0.2rem) !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  html.bbs-theme-minimal .bbs-thread-quickbar.bbs-global-quickbar {
    right: 12px !important;
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }

  html.bbs-theme-minimal .bbs-thread-quickbar-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 16px !important;
  }

  .bbs-mobile-backtop {
    position: fixed;
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 1039;
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 50%;
    color: #334155;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 32px rgba(15,23,42,.18);
    backdrop-filter: blur(14px);
  }

  .bbs-mobile-backtop.show {
    display: inline-flex;
  }

  .bbs-mobile-backtop i {
    color: inherit;
    font-size: 18px;
    line-height: 1;
  }

  .bbs-mobile-bottom-nav {
    --bbs-mobile-nav-pad: 8px;
    --bbs-mobile-nav-gap: 0px;
    --bbs-mobile-nav-item: 20%;
    --bbs-mobile-nav-left: 0px;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--bbs-mobile-nav-gap);
    padding: var(--bbs-mobile-nav-pad);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 42px rgba(15,23,42,.18);
    backdrop-filter: blur(18px);
    overflow: hidden;
  }

  .bbs-mobile-nav-indicator {
    position: absolute;
    left: var(--bbs-mobile-nav-left);
    top: var(--bbs-mobile-nav-pad);
    z-index: 0;
    width: var(--bbs-mobile-nav-item);
    height: calc(100% - (var(--bbs-mobile-nav-pad) * 2));
    border-radius: 999px;
    background: var(--bbs-active-bg, #111827);
    box-shadow: 0 10px 24px rgba(15,23,42,.18);
    opacity: 0;
    transform: translateX(0);
    transition: none;
    pointer-events: none;
  }

  .bbs-mobile-bottom-nav.is-ready .bbs-mobile-nav-indicator {
    transition: left .36s cubic-bezier(.34,1.56,.64,1), width .36s cubic-bezier(.34,1.56,.64,1), opacity .18s ease;
  }

  .bbs-mobile-bottom-nav:has(a.active) .bbs-mobile-nav-indicator {
    transform: translateX(0);
  }

  .bbs-mobile-bottom-nav a {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 46px;
    border-radius: 999px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color .24s ease, transform .24s ease;
  }

  .bbs-mobile-bottom-nav a.active {
    color: #fff;
  }

  .bbs-mobile-bottom-nav a.active i {
    transform: translateY(-1px) scale(1.08);
  }

  .bbs-mobile-bottom-nav a.active i,
  .bbs-mobile-bottom-nav a.active span {
    position: relative;
    z-index: 2;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
  }

  .bbs-mobile-bottom-nav i {
    font-size: 17px;
    line-height: 1;
    transition: transform .24s ease, color .24s ease;
  }

  .bbs-mobile-bottom-nav .publish {
    color: #64748b;
    transform: none;
  }

  .bbs-mobile-bottom-nav .publish.active {
    color: #fff;
  }

  .bbs-mobile-bottom-nav em {
    position: absolute;
    top: 5px;
    right: 12px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: 10px;
    line-height: 16px;
    font-style: normal;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2);
    transform-origin: center;
  }
}

@media (max-width: 374px) {
  html.bbs-theme-minimal .bbs-thread-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bbs-mobile-bottom-nav span {
    display: none;
  }
}
