/*
 * Top-Mods.ru / Ultimate / Forum 2.0.3
 * Initial visual improvement, no markup or PHP modifications.
 * Keep the official Default forum stylesheet (including its image URLs).
 */
@import url('../../../default/controllers/forum/styles.css');

:root {
    --tm-forum-primary: #1383ae;
    --tm-forum-primary-dark: #096e98;
    --tm-forum-border: #dce7ef;
    --tm-forum-muted: #f5f8fb;
    --tm-forum-text: #2a3d4e;
}

/* Section and thread lists */
.category-table,
.threads-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid var(--tm-forum-border);
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(27, 67, 94, .06);
}

.category-table-header tr,
.threads-table-header tr {
    background: var(--tm-forum-primary) !important;
    color: #fff;
}

.category-table-header td,
.threads-table-header td {
    padding: 11px 12px;
    font-size: 13px;
    letter-spacing: .01em;
    border: 0;
}

.category-table .category td,
.threads-table .thread_view td {
    padding-top: 13px;
    padding-bottom: 13px;
    border-bottom-color: var(--tm-forum-border);
}

.category-table tr.category:not(.category-as-folder):hover,
.threads-table tr.thread_view:hover {
    background: #f4faff;
}

.category-table .category.category-as-folder,
.category-table .category.is_first_parent {
    background: #e9f0f5;
    color: var(--tm-forum-text);
    border-color: var(--tm-forum-border);
}

.category-table a,
.threads-table a {
    text-decoration: none;
}

.category-table a:hover,
.threads-table a:hover {
    color: var(--tm-forum-primary-dark);
    text-decoration: underline;
}

/* Thread posts: improve the hierarchy of author/content columns */
.posts-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--tm-forum-border);
    background: #fff;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(27, 67, 94, .05);
}

.posts-table .posts-table-header {
    padding: 9px 12px;
    background: var(--tm-forum-primary);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
}

.posts-table .post-links {
    opacity: 1;
    filter: none;
}

.posts-table .post-links a,
.posts-table .post-date a {
    color: #f3fbff;
    text-decoration: none;
}

.posts-table .post-links a:hover,
.posts-table .post-date a:hover {
    color: #fff;
    text-decoration: underline;
}

.posts-table .post-user-cell,
.posts-table .post-user-cell-mobile {
    background: var(--tm-forum-muted);
    border-bottom: 1px solid var(--tm-forum-border);
    padding: 14px 10px;
}

.posts-table .post-user-cell {
    width: 180px;
    max-width: 180px;
}

.posts-table .post-content-cell,
.posts-table .post-content-cell-mobile {
    padding: 16px 18px 35px;
    border-bottom: 1px solid var(--tm-forum-border);
    background: #fff;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.posts-table .post-user-link a,
.posts-table .post-user-link-mobile a {
    color: #166489;
}

/* Quoted replies; keep nested quotes readable instead of solid grey blocks. */
.posts-table blockquote {
    margin: 10px 0 14px;
    padding: 12px 15px;
    background: #f1f6fa;
    color: #405567;
    border: 0;
    border-left: 4px solid #72b4d1;
    border-radius: 0 7px 7px 0;
    box-shadow: none;
    font-style: normal;
    max-width: 100%;
}

.posts-table blockquote blockquote {
    background: #e5eff6;
    border-left-color: #a9c6d8;
}

.posts-table blockquote p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .posts-table .post-user-cell { width: 120px; max-width: 120px; }
    .posts-table .post-content-cell,
    .posts-table .post-content-cell-mobile { padding: 12px 10px 27px; }
    .category-table-header td,
    .threads-table-header td { padding: 9px 7px; }
    .posts-table .post-links { line-height: 1.8; }
}

/* TM-FORUM-MODERN-TRIAL-V1 */
.icms-forum__widget-posts .icms-user-avatar>img{max-width:1.25rem;min-width:auto;min-height:auto}.icms-forum__widget-posts .icms-user-avatar.peer_online:after,.icms-forum__widget-posts .icms-user-avatar.peer_no_online:after{bottom:-2px;right:-2px;border-width:1px;height:10px;width:10px}.icms-forum__widget-posts>.media{position:relative}.icms-forum__widget-posts>.media:nth-child(even){background-color:rgba(26, 26, 26, 0.04);border-radius:0.25rem;padding:1rem 1rem 0.5rem 1rem}.icms-forum__widget-posts>.media:nth-child(odd){padding:0 0.5rem 0 1rem}.icms-forum__widget-posts>.media:before{content:"";background-color:rgba(26, 26, 26, 0.04);height:100%;width:2px;position:absolute;top:0;left:0}.icms-forum__widget-posts-is_closed:before{background-color:#888888 !important}.icms-forum__widget-posts-is_pinned:before{background-color:#f5cd79 !important}.icms-forum__widget-posts-is_fixed:before{background-color:#33bd66 !important}.icms-forum__list:nth-of-type(odd){background-color:rgba(26, 26, 26, 0.05)}.icms-forum__thread-poll_answer,.icms-forum__thread-poll .custom-control{margin-bottom:0.5rem}.icms-forum__thread-poll_answer:last-child,.icms-forum__thread-poll_answer .custom-control:last-child,.icms-forum__thread-poll .custom-control:last-child,.icms-forum__thread-poll .custom-control .custom-control:last-child{margin-bottom:0}.icms-forum__thread-poll_answer .progress,.icms-forum__thread-poll .custom-control .progress{height:1.25rem}.icms-forum__threads_list{transition:all 0.2s ease-in-out}.icms-forum__threads_list:nth-of-type(odd){background-color:rgba(26, 26, 26, 0.05)}.icms-forum__threads_list:hover{background-color:#f8f9fa}.icms-forum__threads_list .icms-thread-icon__crosshairs>svg{animation:loader-button 0.9s linear infinite}.icms-forum__threads_list_is_new,.icms-forum__threads_list_is_deleted,.icms-forum__threads_list_vip{position:relative}.icms-forum__threads_list_is_new::after,.icms-forum__threads_list_is_deleted::after,.icms-forum__threads_list_vip::after{content:"";position:absolute;left:0;top:3px;bottom:3px;width:2px;background-color:#3867d6}.icms-forum__threads_list_is_deleted .icms-thread-icon__trash{color:#e66767}.icms-forum__threads_list_is_deleted::after{background-color:#e66767}.icms-forum__threads_list_is_deleted:hover{background-color:white}.icms-forum__threads_list_vip::after{background-color:#f5cd79}.icms-forum__threads_list_vip:hover{background-color:white}.icms-forum__post-data{border:1px solid #dee2e6;background-color:#f8f9fa}.icms-forum__post-data:after,.icms-forum__post-data:before{display:block;position:absolute;top:-10px;right:50%;left:50%;width:18px;height:10px;pointer-events:none;content:" ";-webkit-clip-path:polygon(50% 0, 0% 100%, 100% 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%)}.icms-forum__post-data:before{background-color:#dee2e6}.icms-forum__post-data:after{background-color:#f8f9fa;margin-top:1px}@media (min-width:576px){.icms-forum__post-data:after,.icms-forum__post-data:before{display:block;position:absolute;top:9px;right:100%;left:-10px;width:10px;height:18px;pointer-events:none;content:" ";-webkit-clip-path:polygon(0 50%, 100% 0, 100% 100%);clip-path:polygon(0 50%, 100% 0, 100% 100%)}.icms-forum__post-data:after{margin-left:1px;margin-top:0}}.icms-forum__post-is_deleted .icms-forum__post-data{border-color:#e66767}.icms-forum__post-is_deleted .icms-forum__post-data:before{background-color:#e66767}.icms-forum__post-is_deleted .icms-forum__post-data:after{background-color:rgba(230, 103, 103, 0.85)}.icms-forum__post-groups{border-radius:0.25rem;border:1px solid rgba(0, 0, 0, 0.1)}@media (min-width:992px){.icms-forum__post-groups{margin:0 1.5rem}}.icms-forum__post-groups_admins{color:#e66767;background-color:rgba(230, 103, 103, 0.15)}.icms-forum__post-groups_moderators{color:#888888;background-color:rgba(136, 136, 136, 0.15)}.icms-forum__post-groups_developers{color:#3867d6;background-color:rgba(56, 103, 214, 0.15)}.icms-forum__post-header{background-color:#f8f9fa}.icms-forum__post-is_deleted .icms-forum__post-header{background-color:rgba(230, 103, 103, 0.85);color:#ffffff}.icms-forum__post-added_later{margin-bottom:1rem;font-size:0.875em;color:#888888}.icms-forum__post-files{margin-top:1rem}.icms-forum__post-toolbar{position:absolute;background-color:#2d3436;color:#ffffff;box-shadow:0 0.5rem 1rem rgba(26, 26, 26, 0.15);border-radius:0.25rem}.icms-forum__post-toolbar a{display:flex;align-items:center;color:inherit;text-decoration:none;padding:0.5rem 1rem}.icms-forum__post-toolbar a:before{width:1.1em;height:1.1em;background-position:center;background-repeat:no-repeat;background-size:contain;content:"";background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3e%3cpath fill='%23ffffff' d='M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z'%3e%3c/path%3e%3c/svg%3e");margin:0 1rem 0 0}
/* TM-FORUM-MODERN-TRIAL-V1 - scoped compatibility for Ultimate without Bootstrap 4 */
:root { --tm-forum-accent: #147fa8; --tm-forum-divider: #dce5ec; }

/* Scoped layout: Modern expects Bootstrap grid/utility classes, Ultimate may not provide them. */
.icms-forum .row, .icms-forum__threads .row, .tm-forum-modern .row {
  display: flex; flex-wrap: wrap; box-sizing: border-box; margin-left: 0; margin-right: 0;
}
.icms-forum .row > *, .icms-forum__threads .row > *, .tm-forum-modern .row > * {box-sizing:border-box; min-width:0;}
.icms-forum .col-sm-6, .icms-forum .col-sm-3, .icms-forum .col-xs-12,
.icms-forum__threads .col-sm-12, .icms-forum__threads .col-lg-6, .icms-forum__threads .col-lg-3,
.tm-forum-modern .col-sm-6, .tm-forum-modern .col-auto { flex:0 0 100%; max-width:100%; }
.icms-forum .container-fluid, .icms-forum__threads.container-fluid, .tm-forum-modern .container-fluid {width:100%;padding:0;box-sizing:border-box;}
.icms-forum .row.align-items-center, .icms-forum__threads .row.align-items-center, .tm-forum-modern .row.align-items-center {align-items:center;}
.icms-forum .d-flex, .icms-forum__threads .d-flex {display:flex;}
.icms-forum .d-inline-block, .icms-forum__threads .d-inline-block, .tm-forum-modern .d-inline-block {display:inline-block;}
.icms-forum .d-block, .icms-forum__threads .d-block {display:block;}
.icms-forum .d-none, .icms-forum__threads .d-none {display:none;}
.icms-forum .py-3, .icms-forum__threads .py-3 {padding-top:13px;padding-bottom:13px;}
.icms-forum .py-2, .icms-forum__threads .py-2 {padding-top:8px;padding-bottom:8px;}
.icms-forum .pb-3 {padding-bottom:12px;}
.icms-forum .my-2 {margin-top:8px;margin-bottom:8px;}
.icms-forum .m-0, .icms-forum__threads .m-0 {margin:0;}
.icms-forum .mt-2, .icms-forum__threads .mt-2 {margin-top:8px;}
.icms-forum .mr-2, .icms-forum__threads .mr-2 {margin-right:8px;}
.icms-forum .ml-2 {margin-left:8px;}
.icms-forum .small, .icms-forum__threads .small {font-size:12px;line-height:1.55;}
.icms-forum .text-muted, .icms-forum__threads .text-muted, .tm-forum-modern .text-muted {color:#71818f;}
.icms-forum .font-weight-bold, .icms-forum__threads .font-weight-bold {font-weight:700;}
.icms-forum .h5 {font-size:16px;}
.icms-forum__threads .h6 {font-size:15px;}
.icms-forum .d-inline-block {vertical-align:middle;}

/* Section cards */
.icms-forum {border:1px solid var(--tm-forum-divider);border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 3px 12px rgba(21,64,95,.05);}
.icms-forum__list:not(:last-child) {border-bottom:1px solid var(--tm-forum-divider);}
.icms-forum .icms-forum__cat, .icms-forum__threads .icms-forum__cat {
  background:var(--tm-forum-accent)!important;color:#fff;border:0;padding-left:14px;padding-right:14px;
}
.icms-forum .icms-forum__cat a {color:#fff!important;text-decoration:none;}
.icms-forum .icms-forum__cat svg {width:17px;height:17px;vertical-align:middle;fill:currentColor;}
.icms-forum .icms-forum__section {padding:15px 14px;border-bottom:1px solid var(--tm-forum-divider);gap:5px 0;}
.icms-forum__list:last-child .icms-forum__section:last-child{border-bottom:0;}
.icms-forum .icms-forum__section .forum-link{margin:0 0 4px;font-weight:700;line-height:1.3;}
.icms-forum .icms-forum__section .forum-link svg {width:16px;height:16px;margin-right:4px;vertical-align:middle;fill:currentColor;}
.icms-forum .icms-forum__section img {width:28px;height:28px;object-fit:cover;border-radius:7px;vertical-align:middle;margin-right:7px;}
.icms-forum .icms-forum__section:hover {background:#f5faff;}
.icms-forum .icms-forum__sub-cats {padding:10px 14px;background:#f9fbfd;border-top:1px solid var(--tm-forum-divider);}
.icms-forum .icms-forum__sub-cats-list .col {flex:0 0 100%;max-width:100%;padding:5px 9px 5px 0;}
.icms-forum .icms-forum__sub-cats-list svg {width:13px;height:13px;vertical-align:middle;fill:currentColor;}

/* Topic list */
.icms-forum__threads {border:1px solid var(--tm-forum-divider);border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 3px 12px rgba(21,64,95,.05);margin-top:12px;}
.icms-forum__threads .icms-forum__cat {padding:11px 14px;}
.icms-forum__threads .icms-forum__threads_list {padding:15px 14px;border-top:1px solid var(--tm-forum-divider);gap:10px 0;}
.icms-forum__threads .icms-forum__threads_list:nth-of-type(2n+1){background:#f8fbfe;}
.icms-forum__threads .icms-forum__threads_list:hover{background:#f1f8fc;}
.icms-forum__threads .icms-forum__threads_list_is_deleted{opacity:.64;}
.icms-forum__threads .icms-forum__threads_list_vip{box-shadow:inset 3px 0 #efbf47;}
.icms-forum__threads .icms-forum__threads_list-preview{margin:0 0 6px;line-height:1.4;font-size:15px;font-weight:700;}
.icms-forum__threads .icms-forum__threads_list-preview svg{width:15px;height:15px;vertical-align:middle;fill:currentColor;}
.icms-forum__threads .icms-user-avatar img{width:34px;height:34px;min-width:34px;object-fit:cover;border-radius:50%;}
.icms-forum__threads .icms-user-avatar{margin-right:11px;flex-shrink:0;}
.icms-forum__threads .icms-forum__threads_list_desc{line-height:1.5;}
.icms-forum__threads a{text-decoration:none;}
.icms-forum__threads a:hover{text-decoration:underline;}

/* Category header/actions outside cards */
.tm-forum-modern > .container-fluid.bg-primary {background:var(--tm-forum-accent);padding:10px 14px;border-radius:9px;margin:12px 0;}
.tm-forum-modern > .container-fluid.bg-primary a {color:#fff!important;}
.tm-forum-modern > .container-fluid.bg-primary svg {height:15px;width:15px;vertical-align:middle;fill:currentColor;}
.tm-forum-modern > .container-fluid.bg-primary .col-auto {display:flex;flex-wrap:wrap;gap:12px;}
.tm-forum-modern > .container-fluid.bg-primary .col-auto a {margin:0;}
.tm-forum-modern .alert-list-empty {background:#eef6fb;padding:14px;border-radius:7px;}

@media(min-width:768px){
  .icms-forum .col-sm-6,.tm-forum-modern .col-sm-6 {flex:0 0 50%;max-width:50%;}
  .icms-forum .col-sm-3 {flex:0 0 25%;max-width:25%;}
  .icms-forum .d-md-block {display:block;}
  .icms-forum .icms-forum__sub-cats-list .col {flex:0 0 50%;max-width:50%;}
  .tm-forum-modern > .container-fluid.bg-primary .col-auto {flex:0 0 50%;max-width:50%;justify-content:flex-end;}
}
@media(min-width:992px){
  .icms-forum__threads .col-lg-6 {flex:0 0 50%;max-width:50%;}
  .icms-forum__threads .col-lg-3 {flex:0 0 25%;max-width:25%;}
  .icms-forum__threads .d-lg-block {display:block;}
  .icms-forum__threads .d-lg-none {display:none;}
  .icms-forum .icms-forum__sub-cats-list .col{flex:0 0 33.3333%;max-width:33.3333%;}
}
@media(max-width:767px){
  .icms-forum .icms-forum__cat,.icms-forum__threads .icms-forum__cat{display:block;}
  .icms-forum .icms-forum__cat > *, .icms-forum__threads .icms-forum__cat > * {max-width:100%;}
  .icms-forum .icms-forum__section > *, .icms-forum__threads .icms-forum__threads_list > * {padding-top:3px;padding-bottom:3px;}
  .tm-forum-modern > .container-fluid.bg-primary .col-auto {margin-top:6px;}
}
/* TM-FORUM-MODERN-COMPACT-V1-1
 * top-mods.ru / Ultimate / forum 2.0.3
 * Compact adaptation of the Modern trial, without changing PHP templates.
 * Keep this AFTER the original Modern trial styles.
 */

/* Ultimate can supply older .row/.col rules; neutralize them only inside the
   Modern forum lists. The official forum keeps all its own links and actions. */
.icms-forum__threads > .icms-forum__cat,
.icms-forum__threads > .icms-forum__threads_list {
    display: grid !important;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, .85fr) minmax(0, .92fr);
    align-items: center !important;
    gap: 14px;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.icms-forum__threads > .icms-forum__cat {
    padding: 11px 17px !important;
}
.icms-forum__threads > .icms-forum__threads_list {
    padding: 15px 17px !important;
}

/* Rows may inherit Bootstrap 2/3 clearfix pseudo-elements from Ultimate.
   Those become extra flex/grid cells and cause unpredictable alignment. */
.icms-forum__threads > .icms-forum__cat::before,
.icms-forum__threads > .icms-forum__cat::after,
.icms-forum__threads > .icms-forum__threads_list::before,
.icms-forum__threads > .icms-forum__threads_list::after {
    content: none !important;
    display: none !important;
}
.icms-forum__threads > .icms-forum__cat > div,
.icms-forum__threads > .icms-forum__threads_list > div {
    float: none !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    flex: none !important;
    align-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.icms-forum__threads .icms-forum__threads_list > div:first-child > .d-flex {
    display: flex !important;
    align-items: flex-start;
    min-width: 0;
    gap: 10px;
}
.icms-forum__threads .icms-forum__threads_list > div:first-child > .d-flex > div:last-child {
    min-width: 0;
    flex: 1;
}
.icms-forum__threads .icms-user-avatar {
    display: block;
    flex: none;
    margin: 0 !important;
}
.icms-forum__threads .icms-forum__threads_list-preview {
    margin: 0 0 4px !important;
    font-size: 15px;
    line-height: 1.35;
}
.icms-forum__threads .icms-forum__threads_list_desc {
    margin-top: 7px !important;
    color: #657987;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.icms-forum__threads .icms-forum__threads_list > div:nth-child(2) {
    font-size: 12px;
    line-height: 1.45;
    color: #425361;
}
.icms-forum__threads .icms-forum__threads_list > div:nth-child(2) .py-2 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.icms-forum__threads .icms-forum__threads_list > div:last-child {
    font-size: 12px;
    line-height: 1.45;
    color: #627687;
}
.icms-forum__threads .icms-forum__threads_list > div:last-child a {
    overflow-wrap: anywhere;
}
.icms-forum__threads .icms-thread-icon svg,
.icms-forum .icms-forum__section svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    fill: currentColor;
    vertical-align: -2px;
}
.icms-forum__threads .icms-thread-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-right: 5px;
}

/* Main forum section list: stable columns and less unnecessary whitespace. */
.icms-forum .icms-forum__cat,
.icms-forum .icms-forum__section {
    display: grid !important;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, .85fr) minmax(0, .92fr);
    align-items: center !important;
    gap: 14px;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}
.icms-forum .icms-forum__cat::before,
.icms-forum .icms-forum__cat::after,
.icms-forum .icms-forum__section::before,
.icms-forum .icms-forum__section::after {
    content: none !important;
    display: none !important;
}
.icms-forum .icms-forum__cat > div,
.icms-forum .icms-forum__section > div {
    float: none !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.icms-forum .icms-forum__section { padding: 13px 16px !important; }
.icms-forum .icms-forum__cat { padding: 11px 16px !important; }
.icms-forum .icms-forum__section .forum-link { font-size: 15px; line-height: 1.35; }
.icms-forum .icms-forum__section .post-from-user { line-height: 1.45; }

@media (max-width: 760px) {
    .icms-forum__threads > .icms-forum__cat,
    .icms-forum__threads > .icms-forum__threads_list,
    .icms-forum .icms-forum__cat,
    .icms-forum .icms-forum__section {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px;
    }
    .icms-forum__threads > .icms-forum__threads_list { padding: 14px !important; }
    .icms-forum__threads > .icms-forum__cat > div:not(:first-child),
    .icms-forum .icms-forum__cat > div:not(:first-child) { display: none !important; }
    .icms-forum__threads .icms-forum__threads_list > div:nth-child(2) { margin-left: 44px !important; }
    .icms-forum__threads .icms-forum__threads_list > div:last-child { margin-left: 44px !important; }
    .icms-forum .icms-forum__section { padding: 13px !important; }
}
/* TM-FORUM-MODERN-COMPACT-V1-2
   Standalone layout for the topic list: no Bootstrap grid dependencies.
   Apply after v1 and v1.1; scoped to .tmf-topic-list only. */
.tmf-topic-list {
    --tmf-blue:#167fa5;
    --tmf-border:#dce7ee;
    box-sizing:border-box;
    overflow:hidden;
    margin:12px 0 18px;
    border:1px solid var(--tmf-border);
    border-radius:9px;
    background:#fff;
    box-shadow:0 2px 12px rgba(18,70,105,.04);
    font-family:inherit;
}
.tmf-topic-list *, .tmf-topic-list *::before, .tmf-topic-list *::after {box-sizing:border-box;}
.tmf-topic-head, .tmf-topic {
    display:grid;
    grid-template-columns:minmax(0,1fr) 165px 195px;
    column-gap:14px;
    align-items:center;
    width:100%;
    margin:0;
    float:none;
    clear:both;
    min-height:0;
    height:auto;
}
.tmf-topic-head {padding:11px 16px;background:var(--tmf-blue);color:#fff;font-size:13px;font-weight:700;}
.tmf-topic {padding:13px 16px;border-top:1px solid var(--tmf-border);background:#fff;}
.tmf-topic:nth-of-type(even) {background:#f7fafc;}
.tmf-topic:hover {background:#f1f8fc;}
.tmf-topic--deleted {opacity:.72;}
.tmf-topic--vip {box-shadow:inset 3px 0 #e5aa37;}
.tmf-topic--new {box-shadow:inset 3px 0 #2c79d5;}
.tmf-topic > div {min-width:0; width:auto; margin:0; padding:0; float:none; clear:none; position:static;}
.tmf-topic-main {display:flex;gap:12px;align-items:flex-start;}
.tmf-topic-avatar {display:block;flex:0 0 34px;max-width:34px;line-height:1;text-decoration:none;}
.tmf-topic-avatar img {display:block;width:34px;height:34px;max-width:34px;border-radius:50%;object-fit:cover;}
.tmf-topic-detail {min-width:0;flex:1;}
.tmf-topic-heading {display:flex;align-items:center;gap:6px;min-width:0;}
.tmf-topic-title {margin:0!important; padding:0!important;min-width:0;font-weight:700;font-size:15px;line-height:1.35;overflow-wrap:anywhere;}
.tmf-topic-title a {color:#157cac;text-decoration:none;}
.tmf-topic-title a:hover {text-decoration:underline;}
.tmf-topic-state {display:inline-flex;align-items:center;flex:0 0 16px;color:#d18130;text-decoration:none;}
.tmf-topic-state svg {display:block;width:15px;height:15px;fill:currentColor;}
.tmf-topic-tag {display:inline-block;font-size:10px;font-weight:700;color:#79561b;background:#fff0c8;border-radius:3px;padding:2px 5px;}
.tmf-topic-meta {font-size:11px;line-height:1.45;color:#778794;margin-top:3px;}
.tmf-topic-meta a, .tmf-topic-last a {text-decoration:none;}
.tmf-topic-description {font-size:12px;line-height:1.45;color:#5b7080;margin-top:5px;overflow-wrap:anywhere;max-height:3em;overflow:hidden;}
.tmf-topic-stats, .tmf-topic-last {color:#526878;font-size:12px;line-height:1.55;min-width:0;}
.tmf-topic-stats span {display:block;}
.tmf-topic-last a {overflow-wrap:anywhere;}
.tmf-topic-last-link {display:block;font-size:11px;margin-top:2px;}
.tmf-topic-last-label {display:none;}
@media(max-width:760px) {
    .tmf-topic-head {grid-template-columns:minmax(0,1fr);}
    .tmf-topic-head span:not(:first-child) {display:none;}
    .tmf-topic {grid-template-columns:minmax(0,1fr);row-gap:8px;padding:13px 12px;}
    .tmf-topic-stats, .tmf-topic-last {margin-left:46px!important;font-size:11px;}
    .tmf-topic-stats span {display:inline;}
    .tmf-topic-stats span + span::before {content:' · ';}
    .tmf-topic-last-label {display:inline;}
    .tmf-topic-last-link {display:inline;margin-left:4px;}
}
