*{box-sizing:border-box}html,body{margin:0;padding:0;background:#f3f5f9;color:#18202a;font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{min-height:100vh}body [hidden]{display:none!important}a{color:inherit}.site-shell{min-height:100vh;display:flex;flex-direction:column}.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid #e4e8ef}.header-inner{height:72px;max-width:1440px;width:100%;margin:auto;padding:0 24px;display:flex;align-items:center;gap:22px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:900;font-size:28px;letter-spacing:-1.2px;white-space:nowrap}.brand-logo{width:40px;height:40px;display:block;flex:0 0 40px;filter:none}.brand-word{color:#202536}.brand-word span{color:#f59e0b}.header-search{position:relative;flex:1;max-width:700px;margin:auto}.header-search form{height:44px;display:flex;align-items:center;gap:9px;padding:0 8px 0 13px;background:#f4f6fa;border:1px solid #e1e6ee;border-radius:14px}.header-search form:focus-within{background:#f4f6fa;border-color:#e1e6ee;box-shadow:none}.header-search input{min-width:0;flex:1;border:0;outline:0;background:transparent!important;font:inherit;color:#18202a}.header-search input:focus{outline:0;box-shadow:none}.header-search button{border:0;border-radius:10px;padding:8px 14px;background:#171c25;color:#fff;font:inherit;cursor:pointer}.search-icon{width:21px;height:21px;display:flex;align-items:center;justify-content:center;flex:0 0 21px;color:#697384}.search-icon svg,.account-button svg,.icon-button svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.search-results{position:absolute;top:50px;left:0;right:0;background:#fff;border:1px solid #e1e6ee;border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.14);z-index:110}.account-menu{position:relative}.account-button,.icon-button{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:1px solid #e1e6ee;border-radius:12px;background:#fff;color:#394150;cursor:pointer}.account-button:hover,.icon-button:hover{background:#f7f8fb;color:#111827}.account-button svg{width:22px;height:22px}.account-dropdown{position:absolute;right:0;top:50px;min-width:180px;padding:7px;background:#fff;border:1px solid #e1e6ee;border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.14);z-index:120}.account-dropdown a{display:block;padding:10px 12px;border-radius:9px;text-decoration:none}.account-dropdown a:hover{background:#f3f4f6}.mobile-only{display:none}.mobile-search{display:none}.shell-layout{width:100%;max-width:1440px;margin:0 auto;display:grid;grid-template-columns:250px minmax(0,1fr);flex:1}.sidebar{border-right:1px solid #e3e7ee;background:#fff}.sidebar-scroll{position:sticky;top:72px;max-height:calc(100vh - 72px);overflow:auto;padding:22px 14px}.sidebar-brand{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#8a93a1;padding:0 12px 10px}.sidebar-group{margin:0 0 20px}.sidebar-title{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#9aa2ae;padding:6px 12px}.sidebar-link{display:flex;align-items:center;gap:11px;padding:11px 12px;margin:2px 0;border-radius:11px;text-decoration:none;color:#46505d}.sidebar-link:hover{background:#f3f4f8;color:#111827}.sidebar-icon{width:22px;text-align:center;color:#6d28d9}.sidebar-counter{margin-left:auto;min-width:24px;padding:1px 7px;border-radius:999px;background:#eef2ff;color:#4f46e5;text-align:center;font-size:12px}.sidebar-overlay{display:none}#masteram-page{min-width:0;padding:24px}.section,.hero{max-width:1100px;margin:0 auto 20px;padding:24px;background:#fff;border:1px solid #e2e7ef;border-radius:18px;box-shadow:0 5px 20px rgba(15,23,42,.04)}.hero{background:linear-gradient(135deg,#fff,#f0f4ff 55%,#ecfeff)}.hero h1{margin:0 0 6px;font-size:38px;letter-spacing:-1px}.section h1,.section h2,.section h3{margin-top:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.card,.list-item{display:block;color:inherit;text-decoration:none;border:1px solid #e2e7ef;border-radius:13px;padding:16px;background:#fff;transition:.16s}.card:hover,.list-item:hover{transform:translateY(-1px);border-color:#a78bfa;box-shadow:0 8px 24px rgba(15,23,42,.07)}.card h3{margin-bottom:6px}.card p{margin:0 0 8px;color:#687384}.list{display:grid;gap:10px}.list-item{display:flex;justify-content:space-between;gap:18px}.list-item small{color:#7b8492;white-space:nowrap}.post{border:1px solid #e2e7ef;border-radius:13px;margin:14px 0;padding:16px}.post header{display:flex;justify-content:space-between;color:#596474;border-bottom:1px solid #edf0f4;padding-bottom:8px;margin-bottom:12px}.post-body{white-space:pre-wrap}.form{display:grid;gap:14px}.form label{display:grid;gap:6px;font-weight:600}.form input,.search input{width:100%;padding:12px;border:1px solid #cfd6e0;border-radius:10px;font:inherit;outline:0}.form input:focus,.search input:focus{border-color:#cfd6e0;box-shadow:none;outline:0}.form button,.search button{border:0;border-radius:10px;padding:11px 16px;background:#171c25;color:#fff;font:inherit;cursor:pointer}.narrow{max-width:560px}.search{display:flex;gap:10px;margin-bottom:20px}.search input{flex:1}.loading{text-align:center;padding:100px 20px;color:#7b8492}.error{border-color:#efb4b4}.site-footer{background:#fff;border-top:1px solid #e2e7ef}.footer-inner{max-width:1440px;margin:auto;padding:30px 24px;display:flex;gap:50px;align-items:flex-start;flex-wrap:wrap}.footer-group{display:grid;gap:7px;min-width:150px}.footer-group strong{font-size:13px;color:#252c37}.footer-group a{font-size:14px;color:#707987;text-decoration:none}.footer-group a:hover{color:#4f46e5}.footer-copy{margin-left:auto;color:#9aa2ae;font-size:13px}.sidebar-open{overflow:hidden}
@media(max-width:800px){.header-inner{height:58px;padding:0 10px;gap:8px}.mobile-only{display:flex}.brand{font-size:24px;flex:1;justify-content:center;gap:7px}.brand-logo{width:34px;height:34px}.brand-word{display:none}.site-header .header-search{display:none}.mobile-search{position:absolute;left:0;right:0;top:58px;padding:8px 10px;background:#fff;border-bottom:1px solid #e2e7ef;box-shadow:0 10px 24px rgba(15,23,42,.1);z-index:95}.mobile-search .header-search{display:block;max-width:none}.shell-layout{display:block}.sidebar{position:fixed;z-index:120;left:0;top:0;bottom:0;width:min(310px,86vw);transform:translateX(-105%);transition:transform .2s;box-shadow:15px 0 40px rgba(15,23,42,.16)}.sidebar-scroll{top:0;max-height:100vh;padding-top:24px}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:115}.sidebar-overlay[hidden]{display:none}#masteram-page{padding:12px}.section,.hero{padding:17px;border-radius:14px;margin-bottom:12px}.hero h1{font-size:31px}.list-item{display:block}.list-item small{display:block;margin-top:5px}.search{display:block}.search button{margin-top:8px;width:100%}.footer-inner{padding:24px 16px;display:grid;grid-template-columns:1fr 1fr;gap:24px}.footer-copy{margin:0;grid-column:1/-1}}

/* Главная страница */
.hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 100% 0%,rgba(99,102,241,.15),transparent 42%),linear-gradient(135deg,#fff 0%,#f4f6ff 58%,#ecfeff 100%);padding:34px}
.hero-eyebrow{display:inline-flex;align-items:center;margin-bottom:12px;padding:5px 10px;border:1px solid #dfe3ff;border-radius:999px;background:rgba(255,255,255,.75);color:#5b50bd;font-size:12px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.hero h1{font-size:clamp(34px,4vw,46px);line-height:1.1;margin:0 0 12px;letter-spacing:-1.5px}
.hero>p{max-width:650px;margin:0;color:#5d6878;font-size:17px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border-radius:11px;text-decoration:none;font-weight:650;font-size:14px;transition:transform .15s,box-shadow .15s}
.button:hover{transform:translateY(-1px)}
.button-primary{background:#292d83;color:#fff;box-shadow:0 5px 14px rgba(41,45,131,.16)}
.button-secondary{border:1px solid #d9deea;background:rgba(255,255,255,.8);color:#273142}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.section-heading h2{margin:0}
.section-heading>a{flex:0 0 auto;color:#5146bd;font-size:13px;font-weight:650;text-decoration:none}
.section-heading>a:hover{text-decoration:underline}
.list-item>span{min-width:0;display:grid;gap:3px}
.list-item>span>small{color:#7b8492}
.list-item>small{align-self:center}
.empty-state{margin:0;padding:22px;border:1px dashed #d8deea;border-radius:12px;background:#fafbfe;color:#788293;text-align:center}
.home-stats{max-width:1100px;margin:0 auto 20px;padding:16px 22px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;background:#fff;border:1px solid #e2e7ef;border-radius:16px}
.home-stats>div{display:grid;gap:2px}
.home-stats strong{font-size:22px;line-height:1.2;color:#292d83}
.home-stats span{font-size:12px;color:#7b8492}

.home-recent{max-width:1100px;margin:-8px auto 22px;display:flex;flex-wrap:wrap;gap:8px}
.home-recent>span{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #f5d7b3;border-radius:999px;background:#fff9f1;color:#6d5540;font-size:12px}
.home-recent strong{color:#d97706;font-size:13px}
@media(max-width:800px){.hero{padding:22px}.hero>p{font-size:15px}.home-stats{margin:0 0 12px;padding:14px;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading{align-items:flex-start}.section-heading h2{font-size:19px}.list-item>small{white-space:normal;text-align:right;max-width:44%}}

/* Навигация: единые компактные контурные SVG вместо текстовых символов. */
.sidebar-link{min-height:42px;gap:10px;padding:9px 11px;color:#46505d;transition:background-color .15s,color .15s}
.sidebar-link:hover{background:#f4f6fb;color:#252b3b}
.sidebar-icon{width:20px;height:20px;flex:0 0 20px;display:inline-flex;align-items:center;justify-content:center;color:#697386;text-align:initial}
.sidebar-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sidebar-link:hover .sidebar-icon{color:#4f46e5}
.sidebar-counter{min-width:22px;padding:1px 6px;background:#f0f1f5;color:#525a69;font-size:11px;font-weight:700;line-height:1.6}
.sidebar-link[aria-current="page"],.sidebar-link.active{background:#eef2ff;color:#3730a3;font-weight:650}
.sidebar-link[aria-current="page"] .sidebar-icon,.sidebar-link.active .sidebar-icon{color:#4f46e5}
.brand{gap:9px;font-size:26px;letter-spacing:-.8px}
.brand-logo{width:36px;height:36px;filter:none}
.brand-word{background:none;color:#202536}
@media(max-width:800px){.brand{font-size:23px;gap:6px}.brand-logo{width:32px;height:32px}}

/* Живой поиск в шапке */
.header-search{position:relative}
.search-results[hidden]{display:none!important}
.search-results{padding:6px;max-height:min(420px,70vh);overflow:auto}
.search-result-item{display:grid;gap:3px;padding:10px 12px;border-radius:9px;text-decoration:none;color:#202536}
.search-result-item:hover,.search-result-item:focus-visible{background:#f3f5fb;outline:0}
.search-result-type{font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.06em;color:#f08a00}
.search-result-item strong{font-size:13px;font-weight:700}
.search-result-item small{font-size:11px;color:#788293}
.search-result-all{display:block;margin-top:4px;padding:10px 12px;border-top:1px solid #edf0f4;color:#3730a3;font-size:12px;font-weight:700;text-decoration:none}
.search-empty{padding:16px 12px;color:#7b8492;font-size:13px}
@media(max-width:800px){.mobile-search .header-search{position:relative}.mobile-search .search-results{position:relative;top:auto;left:auto;right:auto;margin-top:6px;box-shadow:none}}


/* Результаты поиска сгруппированы по разделам сайта */
.search-page{max-width:1000px}
.search-section{margin-top:22px;padding-top:17px;border-top:1px solid #e8ebf1}
.search-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.search-section-heading h2{margin:0;font-size:18px}
.search-section-heading>span{display:inline-flex;min-width:25px;height:25px;align-items:center;justify-content:center;padding:0 7px;border-radius:999px;background:#fff3df;color:#b96500;font-size:12px;font-weight:750}
.search-section-list{display:grid;gap:8px}
.search-page-result{display:grid;gap:4px;padding:13px 15px;border:1px solid #e3e7ef;border-radius:12px;color:#202536;text-decoration:none;background:#fff}
.search-page-result:hover{border-color:#f0b45e;background:#fffdf9}
.search-page-result strong{font-size:14px}
.search-page-result small{font-size:12px;color:#788293}
@media(max-width:800px){.search-section-heading h2{font-size:17px}.search-page-result{padding:12px}}


/* Публичный профиль участника */
.user-profile-avatar{width:88px;height:88px;object-fit:cover;border-radius:50%;margin-bottom:12px}
.user-profile-realname{color:#687384}
.user-profile-stats{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.user-profile-stats span{padding:9px 12px;border:1px solid #e3e7ef;border-radius:10px;background:#fafbfe;color:#697386}

.search-dropdown-group+.search-dropdown-group{margin-top:5px;padding-top:5px;border-top:1px solid #edf0f4}
.search-dropdown-heading{display:flex;justify-content:space-between;align-items:center;padding:7px 10px 4px;color:#7b8492;font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.search-dropdown-heading span{color:#d97706}
.search-result-item strong{font-size:13px}


/* Компактный живой поиск: строка-разделитель и результаты без больших карточек */
.search-compact-group{padding:5px 0}
.search-compact-group+.search-compact-group{border-top:1px solid #edf0f4}
.search-compact-label{padding:6px 9px;color:#b96708;font:700 11px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace}
.search-compact-label span{color:#a2a9b5;padding:0 3px}
.search-compact-group .search-result-item{padding:6px 9px;border-radius:6px}
.search-compact-group .search-result-item strong{font-size:12px;font-weight:600}
.search-compact-group .search-result-item small{font-size:10px}
.search-results{max-height:min(360px,65vh)}

.search-full-group{padding:8px 0}
.search-full-group+.search-full-group{margin-top:8px;border-top:1px solid #e8ebf1}
.search-full-label{padding:7px 10px;color:#b96708;font:700 12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.search-full-label span{color:#a2a9b5;padding:0 4px}
.search-full-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:10px;border-radius:7px;color:#252b37;text-decoration:none}
.search-full-row:hover{background:#f7f8fb}
.search-full-row>span{min-width:0;overflow-wrap:anywhere}
.search-full-row small{flex:0 0 auto;color:#7b8492;font-size:11px}

/* Исправление мобильных действий в шапке */
.mobile-login{display:none;text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap;color:#202536;padding:8px 10px;border:1px solid #e1e6ee;border-radius:10px;background:#fff;align-items:center;justify-content:center;min-height:40px}
@media(max-width:800px){.mobile-search:not([hidden]){display:block}.mobile-search .header-search{display:block}.mobile-login{display:flex}.guest-account{display:none}.header-inner>.icon-button,.header-inner>.account-menu,.header-inner>.mobile-login{position:relative;z-index:2;flex-shrink:0;touch-action:manipulation}.header-inner>[data-search-toggle]{min-width:42px;min-height:42px}.mobile-search .search-results{z-index:130;max-height:60vh;overflow:auto}}

/* Пометка мягко удалённых сообщений в административном просмотре */
.post-deleted{border-style:dashed;opacity:.82}.post-deleted-label{display:inline-flex;align-items:center;margin-left:auto;padding:3px 8px;border-radius:6px;background:#fff0e8;color:#9a3412;font-size:12px;font-weight:700}


/* Дерево разделов форума и последняя активность */
.forum-index{max-width:1100px}
.forum-index>.section-heading h1{margin:0}
.forum-tree-section{padding:18px 0;border-bottom:1px solid #e8ebf1}
.forum-tree-section:last-child{border-bottom:0;padding-bottom:0}
.forum-tree-heading h2{margin:0 0 4px;font-size:21px}
.forum-tree-heading h2 a{text-decoration:none}
.forum-tree-heading h2 a:hover,.forum-tree-child>a:hover,.forum-last-topic:hover{color:#b45309}
.forum-tree-heading p{margin:0 0 5px;color:#687384}
.forum-tree-heading small,.forum-tree-child small{color:#7b8492;font-size:12px}
.forum-tree-children{display:grid;gap:5px;margin:12px 0 0 8px;padding-left:14px;border-left:2px solid #f1d4a5}
.forum-tree-child{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 8px 5px calc(8px + var(--tree-depth)*14px);border-radius:8px}
.forum-tree-child:hover{background:#fff8ed}
.forum-tree-child>a{font-weight:600;text-decoration:none}
.forum-tree-child small{white-space:nowrap}
.forum-last-activity{display:grid;gap:3px;margin-top:12px;padding:11px 14px;border-radius:10px;background:#f8fafc;border:1px solid #edf0f4}
.forum-last-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#8a93a1}
.forum-last-topic{font-weight:700;text-decoration:none}
.forum-last-meta{font-size:12px;color:#687384}
.forum-last-empty{font-size:13px;color:#7b8492}
@media(max-width:600px){.forum-tree-child{align-items:flex-start;flex-direction:column;gap:0}.forum-tree-child small{white-space:normal}.forum-tree-heading h2{font-size:18px}}


/* Хлебные крошки и быстрые ссылки форума */
.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:9px 14px;border:1px solid #e6e9ef;border-radius:11px;background:#fff;color:#7b8492;font-size:12px}
.breadcrumbs a{color:#4b5565;text-decoration:none}.breadcrumbs a:hover{color:#b45309}.breadcrumbs [aria-current="page"]{color:#202536;font-weight:650;overflow-wrap:anywhere}.breadcrumb-home{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;color:#d97706!important}.breadcrumb-home svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.breadcrumb-sep{color:#c0c5ce}
.forum-toolbar-wrap{padding:12px 14px;margin-bottom:16px}.forum-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.forum-toolbar-group{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.forum-toolbar-group>span{color:#8a93a1;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-right:3px}.forum-toolbar-group>a{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid #e4e7ee;border-radius:8px;background:#fff;color:#384152;text-decoration:none;font-size:12px;font-weight:650}.forum-toolbar-group>a:hover{border-color:#f2c17b;background:#fff9f0;color:#9a5700}
@media(max-width:600px){.breadcrumbs{gap:6px;padding:8px 10px}.forum-toolbar-wrap{padding:10px}.forum-toolbar{display:grid}.forum-toolbar-group{gap:5px}.forum-toolbar-group>a{padding:6px 8px;font-size:11px}}


/* Форум: статусы тем, аватары, ранги и постраничная навигация */
.forum-topic-list{gap:0}
.forum-topic-row{display:flex;align-items:center;gap:13px;padding:15px 16px;min-width:0}
.forum-topic-row:hover{background:#fffaf2}
.topic-row-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.topic-row-main>strong,.topic-row-main>small{overflow-wrap:anywhere}
.topic-row-main>strong{font-weight:750;line-height:1.35}
.topic-row-main>small{color:#7a8494;font-size:12px}
.topic-flags{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto}
.topic-flag{width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px}
.topic-flag svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topic-flag-open{color:#16834b;background:#e7f8ed}
.topic-flag-closed{color:#596579;background:#edf0f5}
.topic-flag-pinned{color:#b96b00;background:#fff1d6}
.topic-flag-new{color:#245ec7;background:#e8f0ff}
.topic-flag-deleted{color:#b42318;background:#feeceb}
.topic-row-deleted{background:#fff8f7}
.topic-row-deleted .topic-row-main>strong{text-decoration:line-through;color:#9a4b45}
.topic-row-authors{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#697386;font-size:12px}
.topic-row-last{border-left:1px solid #e1e5ec;padding-left:8px}
.topic-row-counts{display:flex;flex:0 0 125px;flex-direction:column;align-items:flex-end;gap:2px;color:#657084;font-size:12px;text-align:right;white-space:nowrap}
.topic-row-counts>b{font-size:14px;color:#252d3a}
.topic-row-counts small{font-size:11px}
.forum-avatar{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;object-fit:cover;border-radius:50%;flex:0 0 34px;background:#e8edf4;color:#596579;font-weight:800;text-decoration:none}
.forum-avatar-fallback{background:linear-gradient(145deg,#f3f4f6,#dfe5ee);border:1px solid #dbe1ea}
.topic-row-authors .forum-avatar{width:22px;height:22px;flex-basis:22px;font-size:10px}
.rank-newbie{color:#6b7280}
.rank-user{color:#374151}
.rank-veteran{color:#2563eb}
.rank-vip{font-weight:800;background:linear-gradient(90deg,#a855f7,#ec4899);background-clip:text;-webkit-background-clip:text;color:transparent}
.rank-curator{color:#c76a12;font-weight:750}
.rank-admin{color:#c2410c;font-weight:850}
.forum-pagination{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:18px 4px 3px}
.pagination-link,.pagination-arrow{min-width:36px;height:36px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e1e6ee;border-radius:10px;background:#fff;text-decoration:none;color:#354052;font-weight:650}
.pagination-link:hover,.pagination-arrow:hover{border-color:#f59e0b;color:#a85d00}
.pagination-link.is-current{background:#f59e0b;border-color:#f59e0b;color:#fff}
.pagination-arrow{font-size:21px}
.pagination-arrow.is-disabled{opacity:.35;pointer-events:none}
.pagination-gap{padding:0 2px;color:#8a93a2}
.pagination-total{margin-left:8px;color:#788294;font-size:12px}
.forum-topic-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.forum-topic-title h1{margin:0;min-width:0;overflow-wrap:anywhere}
.forum-topic-title .topic-flag{width:31px;height:31px}
.post{margin:14px 0;padding:17px;border:1px solid #e3e7ee;border-radius:16px;background:#fff}
.post>header{display:flex;align-items:center;gap:10px;padding-bottom:13px;border-bottom:1px solid #edf0f4}
.post-author{display:flex;flex-direction:column;min-width:0;gap:1px}
.post-author strong{font-size:14px}
.post-author small{font-size:11px;color:#8992a1}
.post>header time{margin-left:auto;color:#8992a1;font-size:12px}
.post-deleted-label{font-size:11px;color:#b42318;background:#feeceb;border-radius:7px;padding:4px 7px}
.post-body{padding:15px 0;overflow-wrap:anywhere}
.post-footer{display:flex;justify-content:flex-end;border-top:1px solid #edf0f4;padding-top:10px}
.post-footer a{font-size:12px;color:#687386;text-decoration:none}
.post-footer a:hover{color:#b96b00}
.post-deleted{background:#fff8f7;border-color:#f3d0cd}
.moderator-notice{margin:0 0 16px;padding:12px 14px;border:1px solid #f3c5c1;border-radius:12px;background:#fff1f0;color:#9b2820}
@media(max-width:640px){
 .forum-topic-row{align-items:flex-start;gap:8px;padding:13px 10px}
 .topic-flags{gap:3px;flex-wrap:wrap}
 .topic-flag{width:22px;height:22px;border-radius:7px}
 .topic-flag svg{width:13px;height:13px}
 .topic-row-counts{flex-basis:58px;font-size:10px;white-space:normal}
 .topic-row-counts small{display:none}
 .topic-row-authors{gap:5px}
 .topic-row-last{border-left:0;padding-left:0}
 .pagination-total{width:100%;margin:6px 0 0;text-align:center}
 .post{padding:13px;border-radius:13px}
 .post>header{gap:8px;flex-wrap:wrap}
 .post>header time{font-size:10px}
}


.forum-posts-page>.section-intro{margin:-5px 0 18px;color:#7a8494}
.recent-post{margin:0 0 18px}
.recent-post-heading{display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid #e3e7ee;border-bottom:0;border-radius:14px 14px 0 0;background:#fff}
.recent-post-heading>a{font-weight:750;text-decoration:none;overflow-wrap:anywhere}
.recent-post-heading>a:hover{color:#b96b00}
.recent-post-heading>small{margin-left:auto;color:#7a8494;font-size:11px;text-align:right}
.recent-post>.post{margin:0;border-radius:0 0 14px 14px}
@media(max-width:640px){.recent-post-heading{align-items:flex-start;flex-wrap:wrap;gap:7px}.recent-post-heading>small{width:100%;margin-left:0;text-align:left}}

/* Оформление ников: цвет, градиент и CSS-анимации; фон ника временно отключён. */
.nickname-link{display:inline;color:inherit;text-decoration:none}.nickname-link:hover{text-decoration:underline;text-underline-offset:2px}
.user-nickname{position:relative;display:inline-flex;align-items:center;gap:3px;max-width:100%;vertical-align:baseline;line-height:1.45}
.nickname-text{display:inline-block}.nickname-custom-icon{display:inline-block;width:16px;height:16px;object-fit:contain;vertical-align:-3px}
.nick-effect-1,.nick-effect-ef1{animation:nickGlowBlue 1.8s ease-in-out infinite alternate}.nick-effect-2,.nick-effect-ef2{animation:nickGlowGold 1.5s ease-in-out infinite alternate}.nick-effect-3,.nick-effect-ef3{animation:nickPulse 1.25s ease-in-out infinite}.nick-effect-4,.nick-effect-ef4,.nick-effect-13,.nick-effect-ef13,.nick-effect-20,.nick-effect-ef20,.nick-effect-rainbow{animation:nickRainbow 3s linear infinite}.nick-effect-5,.nick-effect-ef5,.nick-effect-15,.nick-effect-ef15,.nick-effect-shine{animation:nickShine 2s linear infinite}.nick-effect-6,.nick-effect-ef6{ text-shadow:0 0 2px currentColor,0 0 7px currentColor}.nick-effect-7,.nick-effect-ef7,.nick-effect-17,.nick-effect-ef17{animation:nickFlicker 2.6s linear infinite}.nick-effect-8,.nick-effect-ef8{ text-shadow:0 0 4px #38bdf8,0 0 10px #38bdf8}.nick-effect-9,.nick-effect-ef9{ text-shadow:0 0 4px #f472b6,0 0 10px #f472b6}.nick-effect-10,.nick-effect-ef10,.nick-effect-18,.nick-effect-ef18{animation:nickPulse 1.8s ease-in-out infinite;text-shadow:0 0 6px currentColor}.nick-effect-11,.nick-effect-ef11{animation:nickGlowBlue 1.2s ease-in-out infinite alternate}.nick-effect-12,.nick-effect-ef12{animation:nickGlowGold 2.1s ease-in-out infinite alternate}.nick-effect-14,.nick-effect-ef14{ text-shadow:1px 1px 0 rgba(0,0,0,.16),0 0 5px currentColor}.nick-effect-16,.nick-effect-ef16{ text-shadow:0 0 2px #fff,0 0 6px currentColor,0 0 12px currentColor}.nick-effect-19,.nick-effect-ef19{ text-shadow:0 0 3px #a78bfa,0 0 9px #7c3aed}.nick-effect-glow,.nick-effect-light{ text-shadow:0 0 3px currentColor,0 0 9px currentColor}
@keyframes nickGlowBlue{from{text-shadow:0 0 1px currentColor}to{text-shadow:0 0 3px #60a5fa,0 0 11px #3b82f6}}@keyframes nickGlowGold{from{text-shadow:0 0 1px currentColor}to{text-shadow:0 0 4px #fbbf24,0 0 10px #f59e0b}}@keyframes nickPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.45)}}@keyframes nickRainbow{0%{filter:hue-rotate(0)}100%{filter:hue-rotate(360deg)}}@keyframes nickShine{0%,100%{text-shadow:0 0 1px currentColor}50%{text-shadow:0 0 5px currentColor,0 0 12px currentColor}}@keyframes nickFlicker{0%,18%,22%,55%,100%{opacity:1}20%,56%{opacity:.72}58%{opacity:.92}}
@media(prefers-reduced-motion:reduce){.nick-effect-1,.nick-effect-ef1,.nick-effect-2,.nick-effect-ef2,.nick-effect-3,.nick-effect-ef3,.nick-effect-4,.nick-effect-ef4,.nick-effect-5,.nick-effect-ef5,.nick-effect-7,.nick-effect-ef7,.nick-effect-10,.nick-effect-ef10,.nick-effect-11,.nick-effect-ef11,.nick-effect-12,.nick-effect-ef12,.nick-effect-13,.nick-effect-ef13,.nick-effect-15,.nick-effect-ef15,.nick-effect-17,.nick-effect-ef17,.nick-effect-18,.nick-effect-ef18,.nick-effect-20,.nick-effect-ef20{animation:none!important}}


/* Форум: единая сетка карточек тем и читаемое оформление ников */
.forum-topic-list{display:grid;gap:10px}
.forum-topic-row{display:grid!important;grid-template-columns:64px minmax(0,1fr) 112px;align-items:center;gap:14px;min-height:92px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 2px 7px rgba(15,23,42,.025)}
.forum-topic-row:hover{background:#fffdf9;border-color:#f0c987;box-shadow:0 5px 16px rgba(15,23,42,.055);transform:translateY(-1px)}
.forum-topic-row>.topic-flags{display:flex;align-self:center;justify-content:center;flex-wrap:wrap;gap:5px;min-width:0}
.forum-topic-row .topic-row-main{display:flex;flex-direction:column;gap:5px;min-width:0}
.forum-topic-row .topic-row-main>strong{font-size:15px;line-height:1.4;color:#172033}
.forum-topic-row .topic-row-main>small{font-size:12px;line-height:1.35;color:#7a8494}
.forum-topic-row .topic-row-authors{display:flex;align-items:center;gap:8px;min-width:0;margin-top:3px;line-height:1.4}
.forum-topic-row .topic-row-authors>.nickname-link,.forum-topic-row .topic-row-authors>.user-nickname{display:inline-flex;align-items:center;min-width:0}
.forum-topic-row .topic-row-last{display:inline-flex;align-items:center;gap:4px;min-width:0;border-left:1px solid #e4e8ef;padding-left:9px;white-space:normal}
.forum-topic-row .topic-row-counts{width:112px;min-width:0;flex:0 0 112px;align-self:center;gap:1px;font-size:11px;color:#7a8494}
.forum-topic-row .topic-row-counts>b{font-size:15px;line-height:1.4;color:#293447}
.forum-topic-row .topic-row-counts small{font-size:11px}
.forum-topic-row .topic-flag{width:28px;height:28px;border-radius:9px}
.forum-topic-row .forum-avatar{width:22px;height:22px;flex-basis:22px;border-radius:50%}
@media(max-width:640px){.forum-topic-row{grid-template-columns:46px minmax(0,1fr);gap:9px;padding:12px 10px;min-height:0}.forum-topic-row>.topic-flags{align-self:start;padding-top:2px}.forum-topic-row .topic-row-counts{grid-column:2;grid-row:2;width:auto;flex-direction:row;justify-content:flex-start;align-items:baseline;gap:5px;flex-basis:auto;text-align:left;white-space:normal;margin-top:1px}.forum-topic-row .topic-row-counts small{display:inline;font-size:11px}.forum-topic-row .topic-row-counts>b{font-size:12px}.forum-topic-row .topic-row-authors{flex-wrap:wrap;gap:5px}.forum-topic-row .topic-row-last{border-left:0;padding-left:0}.forum-topic-row .topic-row-main>strong{font-size:14px}}


/* MasterAM UI refinement — forum category and topic list */
:root{--ma-accent:#f28a16;--ma-accent-dark:#d96b08;--ma-ink:#172033;--ma-muted:#697586;--ma-line:#e3e8f0;--ma-surface:#fff;--ma-canvas:#f5f7fb}
html{scroll-behavior:smooth}
body{background:var(--ma-canvas);color:var(--ma-ink);-webkit-font-smoothing:antialiased}
a{transition:color .16s ease}
.shell-header{height:68px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--ma-line);box-shadow:0 2px 12px rgba(16,24,40,.025);backdrop-filter:blur(14px)}
.brand{gap:10px}.brand-logo{border-radius:8px}.brand-word{letter-spacing:-.045em}
.shell-header nav a{border-radius:9px;padding:9px 12px}
.shell-header nav a:hover{background:#fff4e6;color:var(--ma-accent-dark)}
#masteram-page{min-width:0}
.section,.forum-section,.forum-category,.forum-topics,.forum-category-header,.forum-page-header{border-color:var(--ma-line)}
.section{box-shadow:0 5px 22px rgba(24,39,75,.035)}
h1,h2,h3{letter-spacing:-.025em}
h1{font-size:clamp(26px,3vw,34px);line-height:1.18}
h2{font-size:clamp(20px,2vw,24px);line-height:1.25}
/* Чёткая визуальная иерархия в списке тем: каждая тема — самостоятельная строка */
.forum-topic-list{gap:12px!important}
.forum-topic-row{position:relative;grid-template-columns:44px minmax(0,1fr) 104px!important;gap:15px!important;min-height:90px;padding:17px 20px!important;border:1px solid #e1e7f0!important;border-radius:15px!important;background:#fff!important;box-shadow:0 2px 5px rgba(20,35,60,.025)!important;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease}
.forum-topic-row:before{content:"";position:absolute;left:-1px;top:16px;bottom:16px;width:3px;border-radius:0 4px 4px 0;background:transparent;transition:background .18s ease}
.forum-topic-row:hover{background:#fff!important;border-color:#f2c98e!important;box-shadow:0 8px 22px rgba(33,42,56,.07)!important;transform:translateY(-1px)}
.forum-topic-row:hover:before{background:var(--ma-accent)}
.forum-topic-row>.topic-flags{gap:6px!important}
.forum-topic-row .topic-flag{width:30px;height:30px;border-radius:10px;background:#e9f8ef;color:#16804a}
.forum-topic-row .topic-row-main{gap:6px!important}
.forum-topic-row .topic-row-main>strong{font-size:15px!important;font-weight:750;letter-spacing:-.01em;color:#172033!important}
.forum-topic-row .topic-row-main>strong a{color:inherit;text-decoration:none}
.forum-topic-row .topic-row-main>strong a:hover{color:var(--ma-accent-dark)}
.forum-topic-row .topic-row-main>small{font-size:12px!important;color:#7a8494!important}
.forum-topic-row .topic-row-authors{margin-top:2px!important;font-size:12px;color:#657184}
.forum-topic-row .topic-row-last{font-size:12px;color:#657184;border-color:#e9edf3!important}
.forum-topic-row .topic-row-counts{width:104px;flex-basis:104px;align-items:flex-end!important;text-align:right;padding-left:12px;border-left:1px solid #edf0f5}
.forum-topic-row .topic-row-counts>b{font-size:16px!important;font-weight:750;color:#273449!important}
.forum-topic-row .topic-row-counts small{color:#8993a3!important}
.breadcrumb,.breadcrumbs{border:1px solid var(--ma-line);border-radius:12px;background:#fff;padding:12px 16px}
button,.button,.btn{transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(242,138,22,.32);outline-offset:2px}
input,textarea,select{border-color:#dce3ed}
input:focus,textarea:focus,select:focus{border-color:#f2a544!important;box-shadow:0 0 0 3px rgba(242,138,22,.12)!important}
@media(max-width:760px){
 .shell-header{height:auto;min-height:60px;padding:10px 14px;gap:10px;flex-wrap:wrap}
 .shell-header nav{gap:4px;max-width:100%;overflow-x:auto}
 .shell-header nav a{padding:8px 10px;white-space:nowrap}
}
@media(max-width:640px){
 .forum-topic-list{gap:9px!important}
 .forum-topic-row{grid-template-columns:32px minmax(0,1fr)!important;gap:9px!important;padding:13px 12px!important;border-radius:13px!important}
 .forum-topic-row:before{top:12px;bottom:12px}
 .forum-topic-row>.topic-flags{justify-content:flex-start!important}
 .forum-topic-row .topic-flag{width:27px;height:27px;border-radius:9px}
 .forum-topic-row .topic-row-counts{grid-column:2;grid-row:auto;border-left:0;padding-left:0;align-items:baseline!important;flex-direction:row;gap:6px!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.forum-topic-row,.forum-topic-row:before{transition:none!important}}


/* Исправление структуры карточек тем: авторы и последний ответ остаются внутри карточки */
.forum-topic-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) 108px!important;align-items:center!important;min-height:0!important;gap:14px!important;padding:15px 18px!important}
.forum-topic-row .topic-row-main{display:flex!important;flex-direction:column!important;align-self:center!important;gap:5px!important;min-width:0!important}
.forum-topic-row .topic-row-main>strong{display:block!important;min-width:0;overflow-wrap:anywhere}
.forum-topic-row .topic-row-category{display:block;font-size:12px;line-height:1.4;color:#7b8798}
.forum-topic-row .topic-row-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 16px;min-width:0;margin-top:2px}
.forum-topic-row .topic-meta-item{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;font-size:12px;line-height:1.4;color:#697586}
.forum-topic-row .topic-meta-author .forum-avatar{width:20px;height:20px;flex:0 0 20px}
.forum-topic-row .topic-meta-last{padding-left:12px;border-left:1px solid #e5eaf1}
.forum-topic-row .topic-meta-label{color:#8a94a4}
.forum-topic-row .topic-row-counts{display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:center!important;gap:2px!important;align-self:stretch!important;width:auto!important;min-width:0!important;flex:initial!important;border-left:1px solid #edf0f5;padding-left:12px;text-align:right}
.forum-topic-row .topic-row-counts>b{font-size:16px!important;line-height:1.2}
.forum-topic-row .topic-row-counts>span,.forum-topic-row .topic-row-counts>small{font-size:11px;line-height:1.35;color:#8993a3}
@media(max-width:640px){
 .forum-topic-row{grid-template-columns:30px minmax(0,1fr)!important;align-items:start!important;gap:9px!important;padding:13px 12px!important}
 .forum-topic-row .topic-row-main{gap:5px!important}
 .forum-topic-row .topic-row-meta{gap:6px 12px}
 .forum-topic-row .topic-meta-last{border-left:0;padding-left:0}
 .forum-topic-row .topic-row-counts{grid-column:2;grid-row:auto;display:flex!important;flex-direction:row!important;align-items:baseline!important;justify-content:flex-start!important;border-left:0;padding-left:0;gap:5px!important;text-align:left;margin-top:2px}
 .forum-topic-row .topic-row-counts>b{font-size:12px!important}
}

/* Каталоги MasterAM: единые светлые карточки с оранжевым акцентом */
.catalog-page{padding:0!important;overflow:hidden}
.catalog-hero{display:flex;align-items:center;gap:18px;padding:26px 28px;margin:-1px -1px 24px;background:linear-gradient(115deg,#fff 0%,#f8fbff 75%,#fff4e9 100%);border-bottom:1px solid #e2ebf5;border-radius:16px}
.catalog-hero-icon{display:flex;align-items:center;justify-content:center;flex:0 0 60px;width:60px;height:60px;border-radius:17px;background:linear-gradient(145deg,#ff8a24,#ff6c08);color:#fff;box-shadow:0 7px 16px rgba(255,121,15,.2)}
.catalog-hero-icon svg{width:28px;height:28px}
.catalog-hero>div{min-width:0;flex:1}
.catalog-eyebrow{margin-bottom:5px;font-size:10px;font-weight:800;letter-spacing:.12em;color:#e96708}
.catalog-hero h1{margin:0 0 6px;color:#102e52;font-size:29px;line-height:1.2;letter-spacing:-.04em}
.catalog-hero p{margin:0;color:#7186a2;font-size:14px;line-height:1.55}
.catalog-total{padding:8px 11px;border:1px solid #f8d8bd;border-radius:10px;background:#fff8f1;color:#bd5b12;font-size:12px;font-weight:700;white-space:nowrap}
.catalog-grid,.article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 24px 24px}
.catalog-card{display:flex;align-items:flex-start;gap:14px;min-width:0;padding:19px;border:1px solid #e2ebf5;border-radius:15px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 2px 7px rgba(28,55,90,.025);transition:transform .18s,border-color .18s,box-shadow .18s}
.catalog-card:hover,.article-card:hover{transform:translateY(-2px);border-color:#f4bd8d;box-shadow:0 10px 25px rgba(28,55,90,.075)}
.catalog-card-icon{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;background:#fff1e6;color:#e96708}
.catalog-card-icon svg{width:21px;height:21px}
.catalog-card-content{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.catalog-card-content>strong{font-size:15px;line-height:1.4;font-weight:750;color:#102e52;overflow-wrap:anywhere}
.catalog-card-description{font-size:13px;line-height:1.55;color:#7186a2;overflow-wrap:anywhere}
.catalog-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;margin-top:3px;padding-top:11px;border-top:1px solid #edf2f8;font-size:11px;color:#7d91ab}
.catalog-card-meta>span:last-child{margin-left:auto;color:#e96708;font-weight:700}
.code-language,.article-label{padding:5px 8px;border-radius:6px;background:#fff1e6;color:#e96708;font-size:10px;font-weight:800;letter-spacing:.04em}
.article-card{display:flex;flex-direction:column;min-width:0;min-height:205px;padding:21px;border:1px solid #e2ebf5;border-radius:15px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 2px 7px rgba(28,55,90,.025);transition:transform .18s,border-color .18s,box-shadow .18s}
.article-card-top,.article-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.article-read{font-size:11px;color:#8395ab}
.article-card>strong{margin:16px 0 8px;color:#102e52;font-size:17px;line-height:1.4;letter-spacing:-.02em;overflow-wrap:anywhere}
.article-excerpt{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;flex:1;color:#7186a2;font-size:13px;line-height:1.6}
.article-card-footer{margin-top:18px;padding-top:12px;border-top:1px solid #edf2f8;color:#8395ab;font-size:11px}
.article-arrow{color:#e96708;font-weight:750}
.files-page .empty-state,.articles-page .empty-state,.codes-page .empty-state{margin:0 24px 24px}
.codes-page pre{overflow:auto;padding:20px;border:1px solid #dce7f3;border-radius:13px;background:#f6f9fd;color:#183451}
@media(max-width:800px){.catalog-hero{padding:22px 20px}.catalog-grid,.article-grid{grid-template-columns:1fr;padding-right:18px;padding-left:18px}}
@media(max-width:540px){.catalog-hero{align-items:flex-start;gap:12px;padding:19px 15px;margin-bottom:18px}.catalog-hero-icon{flex-basis:46px;width:46px;height:46px;border-radius:13px}.catalog-hero-icon svg{width:23px;height:23px}.catalog-hero h1{font-size:24px}.catalog-hero p{font-size:12px}.catalog-total{display:none}.catalog-grid,.article-grid{gap:10px;padding:0 12px 16px}.catalog-card{gap:11px;padding:15px}.catalog-card-icon{flex-basis:38px;width:38px;height:38px;border-radius:11px}.article-card{min-height:190px;padding:17px}.article-card>strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.catalog-card,.article-card{transition:none}}

/* Форум в едином стиле: разделы, последние темы и статистика */
.forum-index{display:flex;flex-direction:column;gap:14px}
.forum-index>.section-heading{margin-bottom:2px}
.forum-tree-section{padding:20px 22px;border:1px solid #e2ebf5;border-radius:15px;background:#fff;box-shadow:0 2px 8px rgba(28,55,90,.025)}
.forum-tree-heading h2{margin:0 0 5px;font-size:17px;line-height:1.4}
.forum-tree-heading h2 a{color:#102e52;text-decoration:none}
.forum-tree-heading h2 a:hover{color:#e96708}
.forum-tree-heading p{margin:0 0 8px;color:#7186a2;font-size:13px;line-height:1.5}
.forum-tree-heading small{color:#8496ad;font-size:11px}
.forum-tree-children{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.forum-tree-child{display:flex;align-items:center;gap:8px;max-width:100%;padding:7px 10px;border:1px solid #e6edf6;border-radius:9px;background:#f8fbff}
.forum-tree-child a{color:#365a80;font-size:12px;font-weight:650;text-decoration:none}
.forum-tree-child a:hover{color:#e96708}
.forum-tree-child small{color:#8a9bb0;font-size:10px;white-space:nowrap}
.forum-last-activity{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:16px;padding:12px 14px;border-radius:10px;background:#f6f9fd}
.forum-last-label{color:#8496ad;font-size:11px}
.forum-last-topic{color:#193a60;font-size:12px;font-weight:750;text-decoration:none}
.forum-last-topic:hover{color:#e96708}
.forum-last-meta{color:#7e91a9;font-size:11px}
.forum-last-empty{color:#8a9bb0;font-size:12px}
.forum-topic-list{display:flex;flex-direction:column;gap:10px}
@media(max-width:600px){.forum-tree-section{padding:16px 14px}.forum-tree-child{padding:6px 8px}.forum-last-activity{align-items:flex-start;flex-direction:column;gap:5px;padding:11px}}

/* MasterAM — финальная визуальная система по выбранному макету */
:root{--ma-orange:#ff790f;--ma-orange-hover:#e96708;--ma-navy:#142f52;--ma-muted:#7186a2;--ma-line:#e1ebf6;--ma-canvas:#f4f9fe;--ma-pale:#fff2e7}
html{background:var(--ma-canvas)}
body{background:var(--ma-canvas);color:var(--ma-navy);font-size:14px;-webkit-font-smoothing:antialiased}
.site-header{background:rgba(255,255,255,.94);border-bottom:1px solid #e3edf7;box-shadow:0 2px 12px rgba(34,77,120,.035)}
.header-inner{max-width:1600px;height:66px;gap:22px;padding:0 22px}
.brand{font-size:23px;letter-spacing:-.8px;gap:8px}
.brand-logo{width:36px;height:36px;flex-basis:36px}
.brand-word span{color:var(--ma-orange)}
.header-search{max-width:560px}
.header-search form{height:40px;border-radius:11px;background:#f5f9fd;border-color:#e1ebf6}
.header-search button{background:var(--ma-orange);border-radius:9px;font-size:13px;font-weight:700}
.header-search button:hover,.form button:hover,.search button:hover{background:var(--ma-orange-hover)}
.shell-layout{max-width:1600px;grid-template-columns:224px minmax(0,1fr)}
.sidebar{background:#fff;border-right:1px solid #e3edf7}
.sidebar-scroll{top:66px;max-height:calc(100vh - 66px);padding:22px 12px}
.sidebar-brand{font-size:10px;color:#91a2b6}
.sidebar-link{gap:10px;margin:3px 0;padding:10px 11px;border-radius:9px;color:#526782;font-size:13px;transition:background .16s,color .16s}
.sidebar-link:hover{background:#f7faff;color:var(--ma-navy)}
.sidebar-link[aria-current=page],.sidebar-link.active{background:#fff1e6;color:#e96708;box-shadow:inset 3px 0 #ff790f}
.sidebar-icon{display:flex;align-items:center;justify-content:center;width:20px;color:#7186a2}
.sidebar-icon svg{width:17px;height:17px;stroke:currentColor}
.sidebar-link[aria-current=page] .sidebar-icon,.sidebar-link.active .sidebar-icon{color:#e96708}
.sidebar-counter{background:#f0f4f9;color:#718198;font-size:10px;min-width:23px}
#masteram-page{padding:20px 22px;min-width:0}
.section,.hero{max-width:1200px;margin:0 auto 16px;padding:22px;border:1px solid var(--ma-line);border-radius:15px;box-shadow:0 3px 12px rgba(30,67,108,.025);background:#fff}
.section h1,.section h2,.section h3{color:var(--ma-navy);letter-spacing:-.025em}
.section h1{font-size:29px;line-height:1.25}
.section h2{font-size:20px;line-height:1.35}
.section-heading{margin-bottom:17px}
.section-heading>a{color:#e96708}
.grid{gap:12px}
.card,.list-item{border-color:var(--ma-line);border-radius:12px;box-shadow:0 2px 6px rgba(30,67,108,.02);transition:border-color .16s,box-shadow .16s,transform .16s}
.card:hover,.list-item:hover{border-color:#f3bf94;box-shadow:0 8px 22px rgba(30,67,108,.065);transform:translateY(-1px)}
.button-primary{background:var(--ma-orange);box-shadow:0 5px 13px rgba(255,121,15,.18)}
.button-primary:hover{background:var(--ma-orange-hover)}
.button-secondary{border-color:var(--ma-line);color:var(--ma-navy)}
.site-footer{border-color:var(--ma-line)}
.footer-group a:hover{color:var(--ma-orange-hover)}
/* Навигация каталога: плотные, информативные карточки как в дизайн-макете */
.catalog-page{padding:0!important;overflow:hidden}
.catalog-hero{display:flex;align-items:center;gap:16px;padding:24px 25px;margin:0 0 20px;background:linear-gradient(110deg,#fff 0%,#f8fbff 72%,#fff3e8 100%);border-bottom:1px solid var(--ma-line);border-radius:14px}
.catalog-hero-icon{display:flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:52px;border-radius:14px;background:linear-gradient(145deg,#ff8c2b,#ff700b);color:white;box-shadow:0 5px 14px rgba(255,121,15,.18)}
.catalog-hero-icon svg{width:24px;height:24px}
.catalog-hero>div{min-width:0;flex:1}
.catalog-eyebrow{margin-bottom:4px;color:#e96708;font-size:9px;font-weight:800;letter-spacing:.13em}
.catalog-hero h1{margin:0 0 4px;color:var(--ma-navy);font-size:27px;line-height:1.2;letter-spacing:-.035em}
.catalog-hero p{margin:0;color:var(--ma-muted);font-size:12px;line-height:1.5}
.catalog-total{padding:7px 10px;border:1px solid #f7d7bf;border-radius:8px;background:#fff8f2;color:#bd5b12;font-size:11px;font-weight:750;white-space:nowrap}
.catalog-grid,.article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:0 20px 21px}
.catalog-card{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:15px;border:1px solid var(--ma-line);border-radius:12px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 2px 6px rgba(30,67,108,.02);transition:transform .16s,border-color .16s,box-shadow .16s}
.catalog-card:hover,.article-card:hover{transform:translateY(-1px);border-color:#f3bf94;box-shadow:0 7px 19px rgba(30,67,108,.06)}
.catalog-card-icon{display:flex;align-items:center;justify-content:center;flex:0 0 39px;width:39px;height:39px;border-radius:11px;background:var(--ma-pale);color:#e96708}
.catalog-card-icon svg{width:19px;height:19px}
.catalog-card-content{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.catalog-card-content>strong{font-size:13px;line-height:1.45;font-weight:750;color:var(--ma-navy);overflow-wrap:anywhere}
.catalog-card-description{font-size:11px;line-height:1.5;color:var(--ma-muted);overflow-wrap:anywhere}
.catalog-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 11px;margin-top:3px;padding-top:9px;border-top:1px solid #edf2f8;font-size:10px;color:#8194ab}
.catalog-card-meta>span:last-child{margin-left:auto;color:#e96708;font-weight:750}
.code-language,.article-label{padding:4px 7px;border-radius:5px;background:var(--ma-pale);color:#e96708;font-size:9px;font-weight:800}
.article-card{display:flex;flex-direction:column;min-width:0;min-height:175px;padding:16px;border:1px solid var(--ma-line);border-radius:12px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 2px 6px rgba(30,67,108,.02);transition:transform .16s,border-color .16s,box-shadow .16s}
.article-card-top,.article-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.article-read{font-size:10px;color:#8395ab}
.article-card>strong{margin:13px 0 7px;color:var(--ma-navy);font-size:14px;line-height:1.4;letter-spacing:-.015em;overflow-wrap:anywhere}
.article-excerpt{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;flex:1;color:var(--ma-muted);font-size:11px;line-height:1.55}
.article-card-footer{margin-top:14px;padding-top:10px;border-top:1px solid #edf2f8;color:#8395ab;font-size:10px}
.article-arrow{color:#e96708;font-weight:750}
.files-page .empty-state,.articles-page .empty-state,.codes-page .empty-state{margin:0 20px 20px}
.codes-page pre{overflow:auto;padding:18px;border:1px solid #dce7f3;border-radius:11px;background:#f6f9fd;color:#183451}
/* Список тем: метаданные не отрываются от названия */
.forum-topic-list{display:flex;flex-direction:column;gap:9px!important}
.forum-topic-row{grid-template-columns:36px minmax(0,1fr) 90px!important;gap:12px!important;min-height:0!important;padding:13px 15px!important;border:1px solid var(--ma-line)!important;border-radius:12px!important;box-shadow:0 2px 6px rgba(30,67,108,.02)!important}
.forum-topic-row .topic-flag{width:28px;height:28px;border-radius:9px}
.forum-topic-row .topic-row-main{gap:4px!important}
.forum-topic-row .topic-row-main>strong{font-size:13px!important;line-height:1.4}
.forum-topic-row .topic-row-category{font-size:10px}
.forum-topic-row .topic-row-meta{gap:5px 12px}
.forum-topic-row .topic-meta-item{font-size:10px}
.forum-topic-row .topic-row-counts{width:auto;flex-basis:auto;padding-left:10px}
.forum-topic-row .topic-row-counts>b{font-size:14px!important}
.forum-topic-row .topic-row-counts>span,.forum-topic-row .topic-row-counts>small{font-size:9px}
.forum-tree-section{padding:17px 18px;border-color:var(--ma-line);border-radius:13px;box-shadow:0 2px 7px rgba(30,67,108,.02)}
.forum-tree-heading h2{font-size:15px}
.forum-tree-heading p{font-size:11px}
.forum-tree-child{padding:6px 9px;border-color:#e6edf6;border-radius:8px;background:#f7faff}
.forum-tree-child a{font-size:11px}
.forum-last-activity{margin-top:12px;padding:10px 12px;background:#f6f9fd}
.forum-last-label,.forum-last-meta{font-size:10px}
.forum-last-topic{font-size:11px}
.form input,.search input{border-color:#dbe6f2;border-radius:9px}
.form input:focus,.search input:focus{border-color:#f4ad75;box-shadow:0 0 0 3px rgba(255,121,15,.1)}
.form button,.search button{background:var(--ma-orange);border-radius:9px}
:focus-visible{outline:3px solid rgba(255,121,15,.35);outline-offset:2px}
@media(max-width:1000px){.shell-layout{grid-template-columns:205px minmax(0,1fr)}#masteram-page{padding:16px}.catalog-grid,.article-grid{grid-template-columns:1fr}}
@media(max-width:800px){.header-inner{height:58px;padding:0 10px;gap:8px}.shell-layout{display:block}.sidebar-scroll{top:0;max-height:100vh}.sidebar-link[aria-current=page],.sidebar-link.active{box-shadow:inset 3px 0 #ff790f}#masteram-page{padding:12px}.section,.hero{padding:16px;border-radius:13px}.catalog-hero{padding:18px 16px;margin-bottom:16px}.catalog-hero-icon{flex-basis:44px;width:44px;height:44px}.catalog-hero h1{font-size:23px}.catalog-grid,.article-grid{grid-template-columns:1fr;padding:0 12px 14px}.catalog-card{padding:13px}.article-card{min-height:160px;padding:15px}}
@media(max-width:540px){.catalog-hero{align-items:flex-start;gap:11px;padding:16px 13px}.catalog-hero-icon{flex-basis:40px;width:40px;height:40px}.catalog-hero p{font-size:11px}.catalog-total{display:none}.forum-topic-row{grid-template-columns:28px minmax(0,1fr)!important;gap:8px!important;padding:12px!important}.forum-topic-row .topic-row-counts{grid-column:2;display:flex!important;flex-direction:row!important;align-items:baseline!important;justify-content:flex-start!important;border:0;padding:0;margin-top:2px;gap:5px!important}.forum-topic-row .topic-row-counts>b{font-size:11px!important}.forum-topic-row .topic-row-counts>span,.forum-topic-row .topic-row-counts>small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.catalog-card,.article-card,.card,.list-item{transition:none!important}}

/* Детальные страницы — категории, темы, сообщения, статьи, файлы и PHP-код */
.forum-topic-page,.forum-posts-page,.forum-category-page,.file-detail-page,.article-detail-page,.code-detail-page{max-width:1120px}
.forum-topic-page{padding:0!important;overflow:hidden}
.forum-topic-title{display:flex;align-items:flex-start;gap:13px;padding:25px 26px 22px;background:linear-gradient(110deg,#fff 0%,#f8fbff 76%,#fff3e8 100%);border-bottom:1px solid var(--ma-line)}
.forum-topic-title>.topic-flags{display:flex;flex:0 0 auto;gap:6px;padding-top:3px}
.forum-topic-title .topic-flag{width:30px;height:30px;border-radius:10px}
.forum-topic-title h1{margin:0;min-width:0;font-size:27px;line-height:1.3;overflow-wrap:anywhere}
.forum-topic-page>.post{margin:16px 18px;padding:18px 20px;border:1px solid var(--ma-line);border-radius:13px;background:#fff;box-shadow:0 2px 7px rgba(30,67,108,.025)}
.post{display:flex;flex-direction:column;gap:14px}
.post>header{display:flex;align-items:center;gap:11px;min-width:0;padding-bottom:13px;border-bottom:1px solid #edf2f8}
.post>header .avatar,.post>header img{flex:0 0 42px;width:42px;height:42px;border-radius:12px;object-fit:cover}
.post-author{display:flex;flex-direction:column;gap:4px;min-width:0;font-weight:750;color:var(--ma-navy)}
.post-author small{font-size:10px;font-weight:500;color:#8a9bb0}
.post>header time{margin-left:auto;align-self:flex-start;color:#8194ab;font-size:11px;white-space:nowrap}
.post-body{min-width:0;color:#304b6b;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.post-body img{max-width:100%;height:auto;border-radius:9px}
.post-body pre,.code-detail-page pre{max-width:100%;overflow:auto;padding:16px;border:1px solid #dce7f3;border-radius:11px;background:#f5f9fe;color:#193b60;line-height:1.65}
.post-body blockquote{margin:14px 0;padding:10px 14px;border-left:3px solid var(--ma-orange);border-radius:0 8px 8px 0;background:#fff8f2;color:#526b87}
.post-footer{padding-top:10px;border-top:1px solid #edf2f8;font-size:11px}
.post-footer a,.forum-topic-page a,.detail-back{color:#e96708;text-decoration:none}
.post-footer a:hover,.forum-topic-page a:hover,.detail-back:hover{text-decoration:underline}
.forum-topic-page>.pagination,.forum-posts-page>.pagination{margin:18px}
.forum-topic-page .moderator-notice{margin:16px 18px 0;padding:12px 14px;border:1px solid #f4d2b6;border-radius:10px;background:#fff8f2;color:#a65316;font-size:12px}
.forum-posts-page>.recent-post{margin-top:13px;padding:16px;border:1px solid var(--ma-line);border-radius:13px;background:#fff}
.recent-post-heading{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:12px}
.recent-post-heading>a{font-weight:750;color:var(--ma-navy);text-decoration:none}
.recent-post-heading>a:hover{color:#e96708}
.recent-post-heading>small{margin-left:auto;color:#8194ab;font-size:11px}
.recent-post>.post{padding:0;border:0;box-shadow:none}
.forum-category-heading{padding:24px 26px;border-bottom:1px solid var(--ma-line);background:linear-gradient(110deg,#fff,#f8fbff 75%,#fff3e8)}
.forum-category-heading h1{margin:0 0 7px}
.forum-category-heading p{margin:0;color:var(--ma-muted);line-height:1.65}
.forum-category-page .forum-topic-list{padding:18px}
.article-detail-page{line-height:1.8}
.article-detail-header{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--ma-line)}
.article-detail-header h1,.file-detail-header h1,.code-detail-header h1{margin:12px 0;color:var(--ma-navy);font-size:clamp(25px,3vw,34px);line-height:1.25;letter-spacing:-.035em}
.article-detail-excerpt,.file-detail-description,.code-detail-description{color:var(--ma-muted);font-size:15px;line-height:1.7}
.article-detail-body{color:#304b6b;font-size:15px;line-height:1.9;overflow-wrap:anywhere}
.article-detail-body h2,.article-detail-body h3{margin-top:1.7em}
.article-detail-body img{max-width:100%;height:auto;border-radius:12px}
.file-detail-header,.code-detail-header{padding-bottom:19px;margin-bottom:20px;border-bottom:1px solid var(--ma-line)}
.file-detail-icon,.code-detail-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:#fff1e6;color:#e96708}
.file-detail-icon svg,.code-detail-icon svg{width:24px;height:24px}
.file-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.file-detail-actions a,.file-detail-actions button{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border:1px solid #f5d1b4;border-radius:9px;background:#fff4e9;color:#c65d0c;font-size:13px;font-weight:750;text-decoration:none}
.code-detail-page pre{margin-top:20px;font-size:13px}
.code-detail-page code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
@media(max-width:640px){
 .forum-topic-title{padding:19px 15px;gap:10px}
 .forum-topic-title h1{font-size:22px}
 .forum-topic-page>.post{margin:11px;padding:14px}
 .post>header{gap:9px;flex-wrap:wrap}
 .post>header .avatar,.post>header img{flex-basis:36px;width:36px;height:36px}
 .post>header time{font-size:10px}
 .post-body{font-size:13px;line-height:1.75}
 .forum-topic-page>.pagination,.forum-posts-page>.pagination{margin:12px}
 .forum-posts-page>.recent-post{padding:12px}
 .recent-post-heading>small{margin-left:0}
}

/* Дочерние разделы внутри страницы категории форума */
.forum-category-page{padding:0!important;overflow:hidden}
.forum-category-heading{padding:24px 25px 20px;background:linear-gradient(110deg,#fff 0%,#f8fbff 75%,#fff3e8 100%);border-bottom:1px solid var(--ma-line)}
.forum-category-heading h1{margin:4px 0 7px;font-size:27px;line-height:1.3}
.forum-category-heading>p{margin:0;color:var(--ma-muted);font-size:13px;line-height:1.65}
.forum-category-summary{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.forum-category-summary span{padding:5px 9px;border:1px solid #e4edf7;border-radius:7px;background:#fff;color:#7287a1;font-size:10px;font-weight:650}
.forum-subcategories{padding:20px 22px 22px;border-bottom:1px solid #edf2f8}
.forum-subcategories-heading{display:flex;align-items:center;gap:11px;margin-bottom:13px}
.forum-subcategories-icon{display:flex;align-items:center;justify-content:center;width:39px;height:39px;flex:0 0 39px;border-radius:11px;background:#fff1e6;color:#e96708}
.forum-subcategories-icon svg{width:19px;height:19px}
.forum-subcategories-heading>div{min-width:0;flex:1}
.forum-subcategories-heading h2{margin:0 0 3px;font-size:15px;line-height:1.3}
.forum-subcategories-heading p{margin:0;color:#8194ab;font-size:11px;line-height:1.45}
.forum-subcategories-count{display:flex;align-items:center;justify-content:center;min-width:27px;height:27px;padding:0 7px;border-radius:8px;background:#f1f5fa;color:#647c98;font-size:11px;font-weight:750}
.forum-subcategories-list{display:flex;flex-direction:column;gap:8px}
.forum-subcategory-row{display:flex;align-items:center;gap:11px;min-width:0;padding:12px 13px;border:1px solid var(--ma-line);border-radius:11px;background:#fff;color:inherit;text-decoration:none;transition:background .15s,border-color .15s}
.forum-subcategory-row:hover{border-color:#f3bf94;background:#fffaf6}
.forum-subcategory-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#f4f8fd;color:#6c85a2}
.forum-subcategory-icon svg{width:17px;height:17px}
.forum-subcategory-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.forum-subcategory-main strong{color:var(--ma-navy);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.forum-subcategory-main small{color:#8194ab;font-size:10px;line-height:1.4}
.forum-subcategory-stats{flex:none;color:#8194ab;font-size:10px;white-space:nowrap}
.forum-subcategory-stats i{padding:0 3px;color:#c0ccda;font-style:normal}
.forum-subcategory-arrow{color:#e96708;font-size:21px;line-height:1}
.forum-subcategory-nested{display:flex;flex-direction:column;gap:7px;margin-left:28px;padding-left:13px;border-left:2px solid #f3d8c3}
.forum-subcategory-nested .forum-subcategory-row{background:#f9fbfe}
.forum-category-topics{padding:20px 22px}
.forum-category-topics>.section{max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
.forum-category-topics .section-heading{margin-bottom:13px}
@media(max-width:620px){
 .forum-category-heading{padding:19px 15px 16px}
 .forum-category-heading h1{font-size:22px}
 .forum-subcategories{padding:16px 12px}
 .forum-subcategory-row{gap:8px;padding:10px}
 .forum-subcategory-icon{flex-basis:30px;width:30px;height:30px}
 .forum-subcategory-stats{font-size:9px}
 .forum-subcategory-nested{margin-left:14px;padding-left:8px}
 .forum-category-topics{padding:15px 12px}
}

/* MasterAM final polish: styles target the real PHP-rendered shell and markup */
:root{--ma-accent:#ff790f;--ma-accent-dark:#e96708;--ma-ink:#142f52;--ma-muted:#7186a2;--ma-line:#e1ebf6;--ma-canvas:#f4f8fd;--ma-pale:#fff2e7}
html,body{background:var(--ma-canvas);color:var(--ma-ink)}
.shell-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:24px;height:68px;padding:0 clamp(16px,3vw,42px);background:rgba(255,255,255,.96);border-bottom:1px solid var(--ma-line);box-shadow:0 3px 15px rgba(20,47,82,.035);backdrop-filter:blur(14px)}
.shell-header .brand{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;color:#172033;text-decoration:none;font-size:23px;font-weight:850;letter-spacing:-.05em}
.shell-header .brand-logo{width:37px;height:37px;object-fit:contain;border-radius:9px}
.shell-header .brand-word span{color:var(--ma-accent)}
.shell-header nav{display:flex;align-items:center;gap:5px}
.shell-header nav a{padding:9px 13px;border-radius:9px;color:#5c718b;text-decoration:none;font-size:13px;font-weight:650}
.shell-header nav a:hover,.shell-header nav a[aria-current=page]{background:#fff1e6;color:var(--ma-accent-dark)}
#masteram-page{width:100%;max-width:1420px;margin:0 auto;padding:24px clamp(14px,2.5vw,34px) 36px;min-height:calc(100vh - 130px)}
#masteram-page>.section,#masteram-page>.hero{max-width:none;width:100%;margin:0 0 18px;padding:25px;background:#fff;border:1px solid var(--ma-line);border-radius:16px;box-shadow:0 4px 16px rgba(20,47,82,.035)}
#masteram-page>.section>h1,#masteram-page>.hero h1{margin:0 0 10px;color:var(--ma-ink);font-size:clamp(25px,2.5vw,32px);line-height:1.25;letter-spacing:-.04em}
#masteram-page>.section>p{color:var(--ma-muted);line-height:1.7}
#masteram-page .section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}
#masteram-page .section-heading h2{margin:0;font-size:20px}
#masteram-page .section-heading a,#masteram-page a:not(.card){text-underline-offset:3px}
#masteram-page .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
#masteram-page .card{min-width:0;padding:18px;border:1px solid var(--ma-line);border-radius:13px;background:#fff;box-shadow:0 2px 7px rgba(20,47,82,.025);text-decoration:none;overflow-wrap:anywhere}
#masteram-page .card:hover{border-color:#f3bd91;box-shadow:0 8px 22px rgba(20,47,82,.065);transform:translateY(-2px)}
#masteram-page .card h2,#masteram-page .card h3{margin:0 0 7px;color:var(--ma-ink);font-size:15px;line-height:1.45}
#masteram-page .card p{margin:0 0 10px;color:var(--ma-muted);font-size:12px;line-height:1.65}
#masteram-page .card small{color:#8496ad;font-size:10px}
#masteram-page .post{gap:0;margin:14px 0 0;padding:19px;border:1px solid var(--ma-line);border-radius:13px;background:#fff;box-shadow:0 2px 7px rgba(20,47,82,.025)}
#masteram-page .post>header{display:flex;align-items:center;gap:12px;padding:0 0 13px;border-bottom:1px solid #edf2f8;color:var(--ma-ink)}
#masteram-page .post>header strong{font-size:13px;font-weight:800}
#masteram-page .post>header time{margin-left:auto;color:#8496ad;font-size:11px;white-space:nowrap}
#masteram-page .post-body{padding-top:15px;color:#304b6b;font-size:14px;line-height:1.85;overflow-wrap:anywhere}
#masteram-page .post-body img{max-width:100%;height:auto;border-radius:10px}
#masteram-page .post-body blockquote{margin:14px 0;padding:12px 15px;border-left:3px solid var(--ma-accent);border-radius:0 9px 9px 0;background:#fff8f2}
#masteram-page pre{max-width:100%;overflow:auto;padding:18px;border:1px solid #dce7f3;border-radius:12px;background:#f5f9fe;color:#193b60;line-height:1.7}
#masteram-page dl{display:grid;grid-template-columns:minmax(100px,160px) 1fr;gap:10px;padding-top:16px;border-top:1px solid #edf2f8}
#masteram-page dt{color:#8194ab}#masteram-page dd{margin:0;color:var(--ma-ink);font-weight:650}
#masteram-page .forum-category-level{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
#masteram-page .forum-category-level[data-depth]:not([data-depth="0"]){margin-left:20px;padding-left:14px;border-left:2px solid #f5d9c3}
#masteram-page .forum-category-card{display:block}
#masteram-page .forum-category-card h3{font-size:14px}
#masteram-page .forum-category-card p{margin:0 0 9px}
#masteram-page .forum-topic-list{display:grid;gap:9px}
#masteram-page .forum-topic-row{display:grid;grid-template-columns:38px minmax(0,1fr) 100px;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--ma-line);border-radius:12px;background:#fff}
#masteram-page .forum-topic-row .topic-row-counts{width:auto;min-width:0;padding-left:10px;border-left:1px solid #edf2f8;text-align:right}
#masteram-page .forum-topic-row .topic-row-counts b{display:block;color:var(--ma-ink);font-size:14px}
#masteram-page .forum-topic-row .topic-row-counts span,#masteram-page .forum-topic-row .topic-row-counts small{display:block;color:#8496ad;font-size:10px}
#masteram-page .forum-topic-row .topic-row-main>strong{font-size:13px}
#masteram-page .forum-topic-row .topic-row-main>small{color:#8194ab;font-size:10px}
#masteram-page .forum-category-heading{padding:0;background:transparent;border:0}
#masteram-page .forum-subcategories{padding:18px 0;border-bottom:1px solid #edf2f8}
#masteram-page .forum-subcategory-row{min-width:0}
#masteram-page .forum-category-topics{padding:18px 0 0}
#masteram-page .forum-category-topics>.section{padding:0;border:0;box-shadow:none}
.shell-footer{padding:22px;text-align:center;color:#90a0b4;font-size:11px;border-top:1px solid var(--ma-line);background:#fff}
@media(max-width:760px){.shell-header{height:auto;min-height:60px;flex-wrap:wrap;padding:10px 14px;gap:8px}.shell-header .brand{font-size:20px}.shell-header .brand-logo{width:32px;height:32px}.shell-header nav{width:100%;overflow:auto}.shell-header nav a{padding:8px 10px;white-space:nowrap}#masteram-page{padding:13px 10px 25px}#masteram-page>.section,#masteram-page>.hero{padding:17px;border-radius:13px}#masteram-page .grid,#masteram-page .forum-category-level{grid-template-columns:1fr;gap:10px}#masteram-page .forum-topic-row{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:12px}#masteram-page .forum-topic-row .topic-row-counts{grid-column:2;display:flex;align-items:baseline;gap:6px;text-align:left;padding:0;border:0}#masteram-page .forum-topic-row .topic-row-counts b,#masteram-page .forum-topic-row .topic-row-counts span,#masteram-page .forum-topic-row .topic-row-counts small{display:inline;font-size:10px}#masteram-page .post{padding:14px}#masteram-page .post-body{font-size:13px;line-height:1.75}}
@media(prefers-reduced-motion:reduce){#masteram-page .card{transition:none}}

/* Полный форум MasterAM — единый UI для списка разделов, тем и сообщений */
.forum-page{display:flex;flex-direction:column;gap:18px;max-width:none!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.forum-hero{display:flex;align-items:center;gap:18px;padding:26px 28px;border:1px solid var(--ma-line,#e1ebf6);border-radius:17px;background:linear-gradient(112deg,#fff 0%,#f8fbff 72%,#fff1e5 100%);box-shadow:0 4px 16px rgba(20,47,82,.035)}
.forum-hero-mark{display:flex;align-items:center;justify-content:center;flex:0 0 58px;width:58px;height:58px;border-radius:16px;background:linear-gradient(145deg,#ff922e,#ff700b);box-shadow:0 7px 18px rgba(255,121,15,.2);color:white;font-size:30px}
.forum-hero-copy{min-width:0;flex:1}
.forum-hero-copy h1{margin:3px 0 5px;color:#142f52;font-size:30px;line-height:1.2;letter-spacing:-.04em}
.forum-hero-copy p{margin:0;color:#7186a2;font-size:13px;line-height:1.55}
.forum-hero-actions{display:flex;flex-direction:column;gap:7px;flex:none}
.forum-hero-actions a{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:9px 11px;border:1px solid #e2ebf6;border-radius:9px;background:rgba(255,255,255,.85);color:#49627f;text-decoration:none;font-size:11px;font-weight:700}
.forum-hero-actions a span{color:#e96708;font-size:16px}
.forum-hero-actions a:hover{border-color:#f2bd92;color:#e96708}
.forum-quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.forum-quick-links>a{display:flex;align-items:center;gap:12px;min-width:0;padding:15px;border:1px solid #e1ebf6;border-radius:13px;background:#fff;text-decoration:none;transition:border-color .16s,transform .16s,box-shadow .16s}
.forum-quick-links>a:hover{transform:translateY(-1px);border-color:#f2bd92;box-shadow:0 7px 18px rgba(20,47,82,.05)}
.forum-quick-icon{display:flex;align-items:center;justify-content:center;flex:0 0 39px;width:39px;height:39px;border-radius:11px;background:#fff1e6;color:#e96708;font-size:20px}
.forum-quick-links>a>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.forum-quick-links strong{color:#142f52;font-size:12px}
.forum-quick-links small{color:#8194ab;font-size:10px}
.forum-quick-links b{color:#e96708;font-size:17px;font-weight:500}
.forum-index-page>.section,.forum-category-page>.section{max-width:none;width:100%;margin:0;padding:21px;border:1px solid #e1ebf6;border-radius:15px;background:#fff;box-shadow:0 3px 12px rgba(20,47,82,.025)}
.forum-index-page .section-heading,.forum-category-page .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.forum-index-page .section-heading h2,.forum-category-page .section-heading h2{margin:3px 0 0;color:#142f52;font-size:18px;letter-spacing:-.025em}
.forum-index-page .section-heading>a,.forum-category-page .section-heading>a{color:#e96708;font-size:11px;font-weight:750;text-decoration:none;white-space:nowrap}
.forum-category-level{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
.forum-category-level[data-depth]:not([data-depth="0"]){grid-column:1/-1;margin:0 0 0 19px;padding-left:13px;border-left:2px solid #f4d9c4}
.forum-category-card{position:relative;display:flex;flex-direction:column;gap:7px;min-width:0;padding:16px!important;border:1px solid #e1ebf6!important;border-radius:12px!important;background:#fff!important;text-decoration:none;box-shadow:none!important;transition:border-color .16s,background .16s,transform .16s!important}
.forum-category-card:before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:3px;border-radius:0 3px 3px 0;background:#ff8a2b;opacity:.75}
.forum-category-card:hover{transform:translateY(-1px)!important;border-color:#f1bd92!important;background:#fffaf6!important}
.forum-category-card h3{margin:0!important;color:#142f52;font-size:14px!important;font-weight:800}
.forum-category-card p{margin:0!important;color:#7186a2;font-size:11px!important;line-height:1.55}
.forum-category-card small{margin-top:auto;padding-top:9px;border-top:1px solid #edf2f8;color:#8496ad;font-size:10px}
.forum-topic-section{max-width:none!important;width:100%;margin:0!important;padding:21px!important;border:1px solid #e1ebf6!important;border-radius:15px!important;background:#fff!important;box-shadow:0 3px 12px rgba(20,47,82,.025)!important}
.forum-topic-section .section-heading{margin-bottom:15px}
.forum-topic-list{display:flex;flex-direction:column;gap:8px}
.forum-topic-row{display:grid;grid-template-columns:39px minmax(0,1fr) 105px;align-items:center;gap:12px;min-width:0;padding:13px 15px;border:1px solid #e3ecf6;border-radius:12px;background:#fff;transition:border-color .16s,background .16s}
.forum-topic-row:hover{border-color:#f1c29b;background:#fffdfa}
.forum-topic-status{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;background:#f2f7fc;color:#7088a4;font-size:21px}
.forum-topic-row:has(.forum-state-pinned) .forum-topic-status{background:#fff1e6;color:#e96708}
.forum-topic-row:has(.forum-state-new) .forum-topic-status{background:#eaf8f0;color:#218653}
.forum-topic-main{display:flex;flex-direction:column;gap:6px;min-width:0}
.forum-topic-title-link{color:#142f52;font-size:13px;font-weight:800;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
.forum-topic-title-link:hover{color:#e96708}
.forum-topic-state-list{display:flex;flex-wrap:wrap;gap:5px}
.forum-state{display:inline-flex;align-items:center;padding:3px 7px;border-radius:5px;font-size:9px;font-weight:800;line-height:1.2}
.forum-state-pinned{background:#fff1e6;color:#c65d0c}
.forum-state-closed{background:#f0f3f7;color:#697b90}
.forum-state-new{background:#eaf8f0;color:#218653}
.forum-state-open{background:#eaf8f0;color:#218653}
.forum-topic-meta{display:flex;flex-wrap:wrap;gap:5px 12px;color:#8496ad;font-size:10px}
.forum-topic-numbers{display:flex;flex-direction:column;align-items:flex-end;gap:3px;padding-left:11px;border-left:1px solid #edf2f8}
.forum-topic-numbers strong{color:#142f52;font-size:16px;line-height:1.1}
.forum-topic-numbers small,.forum-topic-numbers span{color:#8496ad;font-size:9px}
.forum-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:32px 18px;border:1px dashed #dce7f3;border-radius:12px;background:#f9fbfe;text-align:center}
.forum-empty>span{color:#f18a35;font-size:27px}
.forum-empty strong{color:#294765;font-size:13px}
.forum-empty p{margin:0;color:#8194ab;font-size:11px}
.forum-category-page{padding:0!important;overflow:hidden}
.forum-category-heading{padding:23px 25px 19px!important;background:linear-gradient(112deg,#fff 0%,#f8fbff 72%,#fff1e5 100%)!important;border-bottom:1px solid #e1ebf6!important}
.forum-category-heading h1{margin:3px 0 7px;font-size:27px;line-height:1.25;letter-spacing:-.035em}
.forum-category-heading>p{margin:0;color:#7186a2;font-size:12px;line-height:1.6}
.forum-category-summary{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.forum-category-summary span{padding:5px 9px;border:1px solid #e1ebf6;border-radius:7px;background:#fff;color:#7186a2;font-size:10px;font-weight:700}
.forum-subcategories{padding:20px 22px!important;border-bottom:1px solid #edf2f8}
.forum-subcategories-heading{display:flex;align-items:center;gap:11px;margin-bottom:13px}
.forum-subcategories-icon{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:#fff1e6;color:#e96708;font-size:19px}
.forum-subcategories-heading>div{min-width:0;flex:1}
.forum-subcategories-heading h2{margin:0 0 3px;font-size:15px}
.forum-subcategories-heading p{margin:0;color:#8194ab;font-size:10px}
.forum-subcategories-count{display:grid;place-items:center;min-width:27px;height:27px;padding:0 7px;border-radius:8px;background:#f1f5fa;color:#647c98;font-size:11px;font-weight:800}
.forum-subcategories-list{display:flex;flex-direction:column;gap:7px}
.forum-subcategory-row{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #e1ebf6;border-radius:11px;background:#fff;color:inherit;text-decoration:none;transition:border-color .15s,background .15s}
.forum-subcategory-row:hover{border-color:#f1bd92;background:#fffaf6}
.forum-subcategory-icon{display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;border-radius:9px;background:#f2f7fc;color:#6c85a2}
.forum-subcategory-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.forum-subcategory-main strong{color:#142f52;font-size:12px}
.forum-subcategory-main small{color:#8194ab;font-size:10px;line-height:1.4}
.forum-subcategory-stats{color:#8194ab;font-size:10px;white-space:nowrap}
.forum-subcategory-stats i{padding:0 3px;color:#c0ccda;font-style:normal}
.forum-subcategory-arrow{color:#e96708;font-size:20px}
.forum-subcategory-nested{display:flex;flex-direction:column;gap:7px;margin-left:25px;padding-left:12px;border-left:2px solid #f3d8c3}
.forum-category-topics{padding:20px 22px!important}
.forum-category-topics>.section{padding:0!important;border:0!important;box-shadow:none!important}
.forum-topic-page{gap:14px}
.forum-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:9px;color:#9aa9bb;font-size:11px}
.forum-breadcrumbs a{color:#7186a2;text-decoration:none}
.forum-breadcrumbs a:hover{color:#e96708}
.forum-topic-hero{padding:25px 26px;border:1px solid #e1ebf6;border-radius:15px;background:linear-gradient(112deg,#fff 0%,#f8fbff 72%,#fff1e5 100%)}
.forum-topic-hero h1{margin:5px 0 14px;color:#142f52;font-size:clamp(23px,2.6vw,31px);line-height:1.3;letter-spacing:-.035em;overflow-wrap:anywhere}
.forum-topic-hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.forum-topic-hero-meta>span:not(.forum-state){padding:5px 9px;border:1px solid #e1ebf6;border-radius:7px;background:#fff;color:#7186a2;font-size:10px}
.forum-post-card{display:grid;grid-template-columns:145px minmax(0,1fr);gap:20px;padding:20px;border:1px solid #e1ebf6;border-radius:14px;background:#fff;box-shadow:0 3px 10px rgba(20,47,82,.025)}
.forum-post-author{display:flex;align-items:center;flex-direction:column;gap:7px;padding:5px 12px 12px;border-right:1px solid #edf2f8;text-align:center;overflow-wrap:anywhere}
.forum-post-author img,.forum-avatar-fallback{width:58px;height:58px;object-fit:cover;border-radius:16px}
.forum-avatar-fallback{display:grid;place-items:center;background:linear-gradient(145deg,#fff1e6,#ffe0c6);color:#d9640b;font-size:23px;font-weight:800}
.forum-post-author strong{color:#142f52;font-size:12px}
.forum-post-author small{color:#8496ad;font-size:10px}
.forum-post-content{min-width:0}
.forum-post-content>header{display:flex;align-items:center;gap:10px;min-height:25px;padding-bottom:12px;border-bottom:1px solid #edf2f8;color:#8496ad;font-size:10px}
.forum-post-content>header time{margin-left:auto}
.forum-post-number{font-weight:800}
.forum-post-content .post-body{padding-top:14px;color:#304b6b;font-size:13px;line-height:1.9;overflow-wrap:anywhere}
.forum-post-content .post-body img{max-width:100%;height:auto;border-radius:10px}
.forum-post-content .post-body blockquote{margin:14px 0;padding:12px 15px;border-left:3px solid #ff790f;border-radius:0 9px 9px 0;background:#fff8f2}
.forum-post-card.post-deleted{background:#f8fafc;border-color:#e5eaf1}
.forum-post-card.post-deleted .post-body{color:#8998aa;font-style:italic}
@media(max-width:850px){.forum-hero{flex-wrap:wrap}.forum-hero-actions{width:100%;flex-direction:row}.forum-hero-actions a{flex:1}.forum-category-level{grid-template-columns:1fr}.forum-category-level[data-depth]:not([data-depth="0"]){grid-column:1}.forum-post-card{grid-template-columns:105px minmax(0,1fr);gap:13px}.forum-post-author{padding-right:10px;padding-left:0}.forum-post-author img,.forum-avatar-fallback{width:46px;height:46px;border-radius:12px}}
@media(max-width:600px){.forum-page{gap:12px}.forum-hero{gap:12px;padding:18px 15px;border-radius:13px}.forum-hero-mark{flex-basis:43px;width:43px;height:43px;border-radius:12px;font-size:23px}.forum-hero-copy h1{font-size:24px}.forum-hero-copy p{font-size:11px}.forum-hero-actions{flex-direction:column}.forum-quick-links{grid-template-columns:1fr;gap:8px}.forum-quick-links>a{padding:12px}.forum-index-page>.section,.forum-category-page>.section,.forum-topic-section{padding:15px!important;border-radius:13px!important}.forum-index-page .section-heading h2,.forum-category-page .section-heading h2{font-size:16px}.forum-category-heading{padding:18px 15px 15px!important}.forum-category-heading h1{font-size:23px}.forum-subcategories{padding:15px 12px!important}.forum-subcategory-row{gap:7px;padding:9px}.forum-subcategory-icon{flex-basis:29px;width:29px;height:29px}.forum-subcategory-stats{font-size:9px}.forum-subcategory-nested{margin-left:12px;padding-left:7px}.forum-category-topics{padding:15px 12px!important}.forum-topic-row{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:11px}.forum-topic-status{width:29px;height:29px;font-size:17px}.forum-topic-numbers{grid-column:2;flex-direction:row;align-items:baseline;gap:5px;padding:0;border:0}.forum-topic-numbers strong{font-size:11px}.forum-topic-numbers small,.forum-topic-numbers span{font-size:9px}.forum-post-card{grid-template-columns:1fr;gap:12px;padding:13px}.forum-post-author{display:grid;grid-template-columns:40px minmax(0,1fr);justify-items:start;align-items:center;column-gap:10px;padding:0 0 11px;border-right:0;border-bottom:1px solid #edf2f8;text-align:left}.forum-post-author img,.forum-avatar-fallback{grid-row:span 2;width:40px;height:40px;border-radius:10px;font-size:17px}.forum-post-author strong{align-self:end}.forum-post-author small{align-self:start}.forum-topic-hero{padding:18px 15px;border-radius:13px}.forum-topic-hero h1{font-size:23px}.forum-post-content .post-body{font-size:12px;line-height:1.8}}


/* Суперфорум: три рабочие колонки и компактные виджеты */
.forum-dashboard{max-width:1440px;margin:0 auto;padding:0 2px 28px}
.forum-dashboard .forum-hero{max-width:none;margin:0 0 18px;display:flex;align-items:center;gap:18px;padding:24px 28px;background:linear-gradient(115deg,#fff 0%,#fffaf3 68%,#fff1dc 100%);border:1px solid #f1dfc6;border-radius:18px}
.forum-hero-mark{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;border-radius:15px;background:#fff0d9;color:#e98208;font-size:28px}
.forum-hero-copy{min-width:0;flex:1}
.forum-hero-copy .catalog-eyebrow{font-size:10px;font-weight:800;letter-spacing:.12em;color:#c87916}
.forum-hero-copy h1{margin:2px 0;font-size:30px;line-height:1.2;color:#17253b;letter-spacing:-.7px}
.forum-hero-copy p{margin:4px 0 0;color:#687386;font-size:14px}
.forum-hero-actions{display:grid;gap:7px;min-width:185px}
.forum-hero-actions a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid #eadfce;border-radius:10px;background:rgba(255,255,255,.85);color:#374151;text-decoration:none;font-size:12px;font-weight:700}
.forum-hero-actions a span{color:#e98208;font-size:17px}
.forum-dashboard-grid{display:grid;grid-template-columns:minmax(210px, .82fr) minmax(400px, 1.8fr) minmax(190px, .72fr);align-items:start;gap:16px}
.forum-side-column,.forum-main-column,.forum-right-column{min-width:0;display:grid;gap:16px}
.forum-dashboard .section{max-width:none;margin:0 0 16px;padding:18px;border-radius:15px}
.forum-widget{min-width:0;padding:15px;background:#fff;border:1px solid #e4e8ef;border-radius:15px;box-shadow:0 4px 16px rgba(22,34,52,.035)}
.forum-widget>header{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:11px;border-bottom:1px solid #edf0f4}
.forum-widget>header h2{min-width:0;flex:1;margin:0;color:#1d2b40;font-size:14px;line-height:1.35;font-weight:800}
.forum-widget>header>a{color:#e98208;text-decoration:none;font-size:19px}
.forum-widget-icon{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:9px;background:#fff3e2;color:#db7b0a;font-size:16px}
.forum-widget-empty{margin:0;padding:10px 2px;color:#8490a0;font-size:12px;line-height:1.5}
.forum-active-topic{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid #f0f2f5;text-decoration:none}
.forum-active-topic:last-child{border-bottom:0;padding-bottom:0}
.forum-active-topic strong{color:#27364b;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.forum-active-topic:hover strong{color:#d97706}
.forum-active-topic span,.forum-active-topic small{font-size:10px;line-height:1.4;color:#8791a0}
.forum-active-topic small{color:#b56d16}
.forum-member-row{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #f0f2f5;text-decoration:none;min-width:0}
.forum-member-row:last-child{border-bottom:0;padding-bottom:0}
.forum-member-row>img,.forum-member-avatar{width:34px;height:34px;flex:0 0 34px;object-fit:cover;border-radius:50%}
.forum-member-avatar{display:grid;place-items:center;background:#fff0d9;color:#b96905;font-size:13px;font-weight:800}
.forum-member-details{min-width:0;flex:1;display:grid;gap:2px}
.forum-member-details strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#27364b;font-size:12px}
.forum-member-details small{color:#8993a1;font-size:10px;line-height:1.35}
.forum-member-level{align-self:flex-start;padding:2px 5px;border-radius:6px;background:#f1f3f7;color:#727c8a;font-size:9px;font-weight:800}
.forum-shortcuts>a{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #f0f2f5;color:#536073;text-decoration:none;font-size:12px}
.forum-shortcuts>a:last-child{border-bottom:0;padding-bottom:0}
.forum-shortcuts>a span{color:#e98208;font-size:16px}
.forum-shortcuts>a:hover{color:#c87510}
.forum-forum-note{background:linear-gradient(150deg,#fff,#fff8ed);border-color:#f0dfc7}
.forum-note-mark{width:38px;height:38px;display:grid;place-items:center;margin-bottom:10px;border-radius:12px;background:#f59e0b;color:white;font-weight:900;font-size:20px}
.forum-forum-note h2{margin:0 0 6px;font-size:14px;color:#25334a}
.forum-forum-note p{margin:0;color:#778293;font-size:12px;line-height:1.55}
.forum-main-column>.section{margin-bottom:0}
.forum-main-column .forum-topic-row{padding:13px 0}
@media(max-width:1180px){.forum-dashboard-grid{grid-template-columns:minmax(190px,.78fr) minmax(360px,1.6fr)}.forum-right-column{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.forum-dashboard{padding:0}.forum-dashboard .forum-hero{align-items:flex-start;flex-wrap:wrap;padding:18px;gap:12px}.forum-hero-mark{width:42px;height:42px;flex-basis:42px;font-size:23px}.forum-hero-copy h1{font-size:25px}.forum-hero-copy p{font-size:12px}.forum-hero-actions{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.forum-hero-actions a{font-size:11px}.forum-dashboard-grid{grid-template-columns:minmax(0,1fr);gap:12px}.forum-side-column{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.forum-right-column{grid-column:auto;grid-template-columns:repeat(2,minmax(0,1fr))}.forum-dashboard .section{padding:15px}.forum-widget{padding:13px}}
@media(max-width:520px){.forum-side-column,.forum-right-column{grid-template-columns:minmax(0,1fr)}.forum-dashboard .forum-hero{display:grid;grid-template-columns:42px minmax(0,1fr)}.forum-hero-actions{grid-column:1/-1}.forum-hero-actions a{padding:8px 10px}}


/* MasterAM approved forum mockup — October 2026 */
:root{--ma-orange:#ff790f;--ma-orange-dark:#f26700;--ma-orange-soft:#fff0e5;--ma-ink:#102b4d;--ma-muted:#66809f;--ma-line:#e4edf7;--ma-card:#fff;--ma-canvas:#f5f9fe}
html,body{background:var(--ma-canvas);color:var(--ma-ink)}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.shell-header{height:78px;position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:28px;padding:0 clamp(20px,2.5vw,42px);background:rgba(255,255,255,.97);border-bottom:1px solid #e7eef7;box-shadow:0 3px 16px rgba(29,73,117,.035)}
.shell-header nav{display:none}
.brand{flex:0 0 244px;display:flex;align-items:center;gap:12px;text-decoration:none;color:#10223c}
.brand-logo{width:44px;height:44px;object-fit:contain;border-radius:11px}
.brand-word{font-size:28px;letter-spacing:-1.1px;font-weight:800;white-space:nowrap}
.brand-word span{color:#10223c}
.topbar-search{height:44px;display:flex;align-items:center;gap:12px;flex:1;max-width:840px;background:#f4f8fd;border:1px solid #e8f0fa;border-radius:13px;padding:0 16px;color:#234d7a}
.topbar-search>span{font-size:25px;line-height:1}
.topbar-search input{flex:1;min-width:0;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;padding:8px 0!important;color:#19395e;font-size:14px}
.topbar-search button{border:0;background:transparent;color:#244c78;font-size:23px;cursor:pointer}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:22px}
.topbar-actions>a{position:relative;color:#17375c;text-decoration:none;font-size:23px;display:flex;align-items:center;gap:10px}
.topbar-actions>a>i{position:absolute;width:7px;height:7px;right:0;top:0;background:var(--ma-orange);border-radius:50%}
.topbar-account{font-size:13px!important;font-weight:650}
.topbar-avatar{width:36px;height:36px;object-fit:cover;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e9f1fb;color:#17375c}
.topbar-avatar-fallback{font-size:14px}
.account-chevron{font-size:17px;color:#66809f}
.site-layout{width:min(100%,1920px);margin:0 auto;display:grid;grid-template-columns:260px minmax(0,1fr);gap:0;align-items:start;min-height:calc(100vh - 78px)}
.site-sidebar{position:sticky;top:78px;align-self:start;min-height:calc(100vh - 78px);padding:26px 18px 28px;background:#fbfdff;border-right:1px solid #e8f0fa;display:flex;flex-direction:column;gap:24px}
.sidebar-title{padding:0 16px 4px;color:#6a84a2;font-size:12px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}
.side-menu{display:flex;flex-direction:column;gap:5px}
.side-menu a{min-height:48px;display:flex;align-items:center;gap:15px;padding:0 16px;border-radius:12px;color:#385a80;text-decoration:none;font-size:14px;font-weight:550;transition:background .16s,color .16s}
.side-menu a:hover{background:#f2f7fd;color:#173d68}
.side-menu a.active{color:#f36e09;background:#fff0e5;box-shadow:inset 3px 0 0 var(--ma-orange);font-weight:750}
.side-menu-icon{width:20px;text-align:center;font-size:20px;line-height:1;color:#42688f}
.side-menu a.active .side-menu-icon{color:var(--ma-orange)}
.sidebar-online,.sidebar-promo{padding:17px 18px;background:#fff;border:1px solid #e5eef8;border-radius:14px;box-shadow:0 5px 18px rgba(34,78,124,.035);font-size:12px;color:#66809f}
.sidebar-online{margin-top:auto;display:flex;flex-direction:column;gap:12px}
.sidebar-online>div{display:flex;align-items:center;gap:8px}
.sidebar-online>div>span:first-of-type{flex:1}
.sidebar-online strong{font-size:12px;color:#5079a4;font-weight:650}
.online-dot{width:8px;height:8px;background:#44c5ae;border-radius:50%;display:inline-block}
.sidebar-promo{padding:20px 18px 18px}
.promo-star{font-size:18px;color:var(--ma-orange)}
.sidebar-promo p{margin:8px 0 10px;line-height:1.65}
.sidebar-promo strong{font-size:12px;font-weight:600;color:#52769b}
#masteram-page{min-width:0;width:100%;max-width:none;padding:20px clamp(16px,1.5vw,28px) 40px}
.forum-dashboard{width:100%;max-width:1600px;margin:0 auto}
.forum-breadcrumbs{display:flex;align-items:center;gap:9px;color:#718aa8;font-size:12px;margin:0 0 10px;padding-left:6px}
.forum-breadcrumbs a{color:#6886a8;text-decoration:none}
.forum-breadcrumbs a:hover{color:var(--ma-orange)}
.forum-hero{display:flex;align-items:center;gap:20px;padding:24px 26px;background:linear-gradient(115deg,#fff 0%,#fff 70%,#fff8f2 100%);border:1px solid #e4edf7;border-radius:15px;box-shadow:0 5px 18px rgba(35,79,126,.035)}
.forum-hero-mark{width:60px;height:60px;flex:0 0 60px;border-radius:14px;background:linear-gradient(145deg,#ff8b24,#ff6900);color:#fff;display:flex;align-items:center;justify-content:center;font-size:32px;box-shadow:0 8px 18px rgba(255,120,15,.18)}
.forum-hero-copy{min-width:0;flex:1}
.forum-hero h1{font-size:30px;line-height:1.15;letter-spacing:-.7px;margin:0 0 5px;color:#102c4f;font-weight:800}
.forum-hero p{margin:0;color:#6682a3;font-size:14px}
.forum-create-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 21px;background:linear-gradient(135deg,#ff8a1c,#ff7000);border:1px solid #ff790f;border-radius:12px;color:#fff;text-decoration:none;font-size:14px;font-weight:750;box-shadow:0 5px 12px rgba(255,120,15,.13);white-space:nowrap}
.forum-create-button:hover{background:#f26700;color:#fff}
.forum-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0 10px;padding:0 6px}
.forum-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.forum-tabs a{display:inline-flex;align-items:center;min-height:38px;padding:0 17px;border-radius:10px;text-decoration:none;color:#56789e;font-size:13px;font-weight:600}
.forum-tabs a:hover{background:#fff4eb;color:#ed6d0b}
.forum-tabs a.active{background:linear-gradient(135deg,#ff8a1b,#ff7000);color:#fff;box-shadow:0 4px 9px rgba(255,120,15,.12)}
.forum-sort-button{display:flex;align-items:center;gap:9px;min-height:38px;padding:0 13px;border:1px solid #e2ecf7;border-radius:10px;background:#fff;color:#5c7b9e;text-decoration:none;font-size:13px;white-space:nowrap}
.forum-dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.forum-main-column{min-width:0}
.forum-main-column>.section{padding:0;background:transparent;border:0;box-shadow:none}
.forum-main-column .forum-categories,.forum-main-column .categories-list{display:flex;flex-direction:column;gap:0;overflow:hidden;border:1px solid #e2ecf7;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(35,79,126,.035)}
.forum-main-column .forum-category-card,.forum-main-column .category-card,.forum-main-column .forum-section-row{border:0;border-bottom:1px solid #e7eff8;border-radius:0;box-shadow:none;background:#fff}
.forum-main-column .forum-category-card:last-child,.forum-main-column .category-card:last-child,.forum-main-column .forum-section-row:last-child{border-bottom:0}
.forum-main-column .forum-category-card:hover,.forum-main-column .category-card:hover{background:#fffaf6}
.forum-right-column{min-width:0;display:flex;flex-direction:column;gap:14px}
.forum-widget{min-width:0;padding:18px 18px 12px;background:#fff;border:1px solid #e3edf8;border-radius:15px;box-shadow:0 5px 18px rgba(35,79,126,.035)}
.forum-widget>header{display:flex;align-items:center;gap:10px;margin:0 0 13px;padding:0 0 2px;border:0;background:transparent}
.forum-widget>header h2{flex:1;margin:0;color:#153252;font-size:15px;font-weight:800;letter-spacing:-.15px}
.forum-widget-icon{width:22px;color:var(--ma-orange);font-size:20px;text-align:center}
.forum-active-topic{display:flex;align-items:center;gap:10px;min-height:64px;padding:9px 0;border-top:1px solid #f0f4f9;color:#153252;text-decoration:none}
.forum-active-topic:first-of-type{border-top:0}
.forum-active-topic>img,.forum-active-topic>.forum-member-avatar{width:34px;height:34px;flex:0 0 34px;object-fit:cover;border-radius:50%}
.forum-active-topic-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.forum-active-topic-copy strong{font-size:12px;line-height:1.4;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.forum-active-topic-copy small{font-size:11px;color:#7c96b4}
.forum-topic-count{display:flex;align-items:center;gap:8px;color:#7792b1;font-size:11px;white-space:nowrap}
.forum-topic-count b,.forum-popular-author b{font-size:21px;font-weight:400;color:#6f8bac}
.forum-popular-authors{padding-bottom:10px}
.forum-popular-author{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0;border-top:1px solid #f0f4f9;text-decoration:none;color:#153252}
.forum-popular-author:first-of-type{border-top:0}
.forum-popular-author img,.forum-popular-author .forum-member-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;object-fit:cover}
.forum-popular-author strong{flex:1;min-width:0;font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.forum-popular-author>span:not(.forum-member-avatar){font-size:11px;color:#6e8caf}
.forum-widget-empty{font-size:12px;color:#7890ac;padding:8px 0}
.forum-category-card,.forum-section-row{display:flex;align-items:center;gap:16px;padding:15px 16px;min-height:92px}
.forum-category-card>a,.forum-section-row>a{color:inherit;text-decoration:none}
.forum-category-card h2,.forum-section-row h2{font-size:15px;color:#143253}
.forum-category-card p,.forum-section-row p{font-size:12px;color:#7b94b1}
.forum-main-column .forum-category-topics{margin-top:16px}
.forum-main-column .forum-topic-list,.forum-main-column .topic-list{background:#fff;border:1px solid #e2ecf7;border-radius:14px;overflow:hidden}
.forum-main-column .forum-topic-row{border-bottom:1px solid #e7eff8;padding:12px 16px}
.shell-footer{margin-left:260px;padding:18px 28px;color:#91a4ba;font-size:12px;background:transparent}
@media(max-width:1180px){.site-layout{grid-template-columns:220px minmax(0,1fr)}.brand{flex-basis:220px}.forum-dashboard-grid{grid-template-columns:minmax(0,1fr) 285px}.site-sidebar{padding-inline:14px}.shell-footer{margin-left:220px}}
@media(max-width:900px){.shell-header{gap:14px;padding-inline:16px}.brand{flex-basis:auto}.brand-word{font-size:23px}.site-layout{grid-template-columns:76px minmax(0,1fr)}.site-sidebar{padding:20px 9px}.sidebar-title,.side-menu a>span:last-child,.sidebar-online>div>span,.sidebar-promo p,.sidebar-promo strong{display:none}.side-menu a{justify-content:center;padding:0}.sidebar-online,.sidebar-promo{padding:12px 8px;text-align:center}.sidebar-online>div{justify-content:center}.sidebar-online strong{font-size:10px}.forum-dashboard-grid{grid-template-columns:minmax(0,1fr) 260px}.shell-footer{margin-left:76px}}
@media(max-width:700px){.shell-header{height:auto;min-height:68px;flex-wrap:wrap;gap:10px;padding:10px 14px}.brand-logo{width:36px;height:36px}.brand-word{font-size:22px}.topbar-search{order:3;flex-basis:100%;max-width:none;height:38px}.topbar-actions{gap:12px}.topbar-account>span:not(.topbar-avatar){display:none}.site-layout{display:block;min-height:calc(100vh - 68px)}.site-sidebar{position:static;min-height:0;display:block;padding:7px 12px;border-right:0;border-bottom:1px solid #e7eef7;overflow-x:auto}.side-menu{flex-direction:row;gap:5px;width:max-content}.side-menu a{min-height:40px;padding:0 12px;gap:7px}.side-menu a>span:last-child{display:inline}.side-menu-icon{font-size:16px;width:auto}.sidebar-title,.sidebar-online,.sidebar-promo{display:none}#masteram-page{padding:14px 12px 28px}.forum-hero{padding:17px;gap:12px;flex-wrap:wrap}.forum-hero-mark{width:48px;height:48px;flex-basis:48px;font-size:26px}.forum-hero h1{font-size:25px}.forum-hero p{font-size:12px}.forum-create-button{width:100%;min-height:40px}.forum-toolbar{align-items:flex-start;flex-direction:column}.forum-tabs{gap:2px}.forum-tabs a{padding:0 11px;font-size:12px;min-height:35px}.forum-dashboard-grid{grid-template-columns:minmax(0,1fr)}.forum-right-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.forum-widget{padding:13px 12px 8px}.forum-widget>header h2{font-size:13px}.forum-active-topic{gap:7px}.forum-active-topic>img,.forum-active-topic>.forum-member-avatar{width:28px;height:28px;flex-basis:28px}.forum-topic-count{display:none}.shell-footer{margin-left:0;padding:16px}}
@media(max-width:460px){.forum-right-column{grid-template-columns:minmax(0,1fr)}.topbar-actions>a:not(.topbar-account){display:none}.forum-hero-copy{flex-basis:calc(100% - 62px)}.forum-sort-button{align-self:stretch;justify-content:center}.forum-category-card,.forum-section-row{gap:10px;padding:12px}.forum-main-column .forum-category-card h2,.forum-main-column .forum-section-row h2{font-size:13px}}

/* Forum section rows follow the reference screenshot: icon, hierarchy, counts, latest activity. */
.forum-categories-section>.section-heading{padding:8px 4px 12px}
.forum-categories-section>.section-heading h2{font-size:17px;color:#173453;font-weight:800}
.forum-category-level{display:flex;flex-direction:column;gap:0;overflow:hidden;background:#fff;border:1px solid #e3edf8;border-radius:15px;box-shadow:0 5px 18px rgba(35,79,126,.035)}
.forum-category-level .forum-category-level{border:0;border-radius:0;box-shadow:none;overflow:visible}
.forum-category-card{display:grid!important;grid-template-columns:58px minmax(0,1fr) minmax(160px,240px) 20px;align-items:center;gap:17px;min-height:94px;padding:13px 17px!important;margin:0!important;border:0!important;border-bottom:1px solid #e8f0f8!important;border-radius:0!important;background:#fff!important;text-decoration:none;color:#153453;box-shadow:none!important}
.forum-category-level>.forum-category-card:last-of-type{border-bottom:1px solid #e8f0f8!important}
.forum-category-card:hover{background:#fffaf6!important}
.forum-category-card[data-depth="1"]{padding-left:35px!important;background:#fcfdff!important}
.forum-category-card[data-depth="2"]{padding-left:53px!important;background:#fafcff!important}
.forum-category-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:13px;background:#fff0e5;color:var(--ma-orange);font-size:29px;text-decoration:none;font-weight:600}
.forum-category-copy{min-width:0}
.forum-category-copy h3{margin:0 0 5px;font-size:14px;line-height:1.35;font-weight:800;color:#153453}
.forum-category-copy h3 a{color:inherit;text-decoration:none}
.forum-category-copy h3 a:hover{color:#f16e0a}
.forum-category-copy p{margin:0 0 5px;font-size:11px;line-height:1.45;color:#7c96b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forum-category-copy>small{font-size:11px;color:#6e8bac}
.forum-category-last{min-width:0;display:flex;flex-direction:column;gap:4px;padding-left:12px}
.forum-category-last>small{font-size:10px;color:#8ba0b8}
.forum-category-last>a{font-size:12px;line-height:1.35;font-weight:700;color:#25496f;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forum-category-last>a:hover{color:#f16e0a}
.forum-category-last>span{font-size:10px;color:#7e97b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forum-category-last-empty{justify-content:center;min-height:45px}
.forum-category-last-empty>span{font-size:11px;color:#91a4ba}
.forum-category-arrow{font-size:27px;color:#6788ab;text-decoration:none;text-align:center}
.forum-category-level[data-depth="1"]{border:0}
.forum-category-level[data-depth="1"]>.forum-category-card{border-bottom:1px solid #edf2f8!important}
.forum-category-level[data-depth="1"]>.forum-category-card .forum-category-icon{width:42px;height:42px;font-size:23px}
.forum-category-level[data-depth="1"]>.forum-category-card{grid-template-columns:42px minmax(0,1fr) minmax(130px,210px) 18px;min-height:76px}
.forum-category-level[data-depth="2"]>.forum-category-card{grid-template-columns:34px minmax(0,1fr) minmax(110px,180px) 18px;min-height:65px}
.forum-category-level[data-depth="2"]>.forum-category-card .forum-category-icon{width:34px;height:34px;font-size:19px}
.forum-category-level[data-depth="2"]>.forum-category-card .forum-category-copy h3{font-size:12px}
.forum-category-level[data-depth="2"]>.forum-category-card .forum-category-copy p{display:none}
.spa-loading #masteram-page{opacity:.72;transition:opacity .12s}
@media(max-width:1180px){.forum-category-card{grid-template-columns:48px minmax(0,1fr) minmax(130px,190px) 18px;gap:12px;padding-inline:13px!important}.forum-category-icon{width:48px;height:48px}.forum-category-copy h3{font-size:13px}}
@media(max-width:900px){.forum-category-card{grid-template-columns:42px minmax(0,1fr) 18px;gap:10px}.forum-category-last{display:none}.forum-category-icon{width:42px;height:42px;font-size:23px}.forum-category-card[data-depth="1"]{padding-left:24px!important}.forum-category-card[data-depth="2"]{padding-left:35px!important}}
@media(max-width:460px){.forum-category-card{grid-template-columns:36px minmax(0,1fr) 16px;min-height:78px;padding:10px!important}.forum-category-icon{width:36px;height:36px;font-size:20px}.forum-category-copy h3{font-size:12px}.forum-category-copy p{font-size:10px}.forum-category-copy>small{font-size:10px}.forum-category-card[data-depth="1"]{padding-left:16px!important}.forum-category-card[data-depth="2"]{padding-left:23px!important}}


/* Форум: широкая рабочая область и три компактных блока активности справа. */
.site-layout{width:100%;max-width:none;grid-template-columns:248px minmax(0,1fr)}
#masteram-page{min-width:0;width:100%;padding:28px clamp(20px,2.1vw,42px) 42px}
.forum-dashboard{width:100%;max-width:none;margin:0}
.forum-dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(250px,290px);gap:22px}
.forum-main-column{min-width:0}
.forum-main-column .forum-category-card{grid-template-columns:48px minmax(220px,1fr) minmax(200px,300px) 24px;gap:16px;padding:19px 22px}
.forum-main-column .forum-category-copy h3{font-size:16px}
.forum-main-column .forum-category-copy p{font-size:13px;max-width:680px}
.forum-right-column{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.forum-widget{padding:17px 16px 12px;border-radius:16px}
.forum-widget>header h2{font-size:14px}
.forum-active-topic{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #edf1f6;text-decoration:none}
.forum-active-topic:last-child,.forum-popular-author:last-child,.forum-active-file:last-child{border-bottom:0}
.forum-active-topic>img,.forum-active-topic>.forum-member-avatar{width:34px;height:34px;border-radius:11px;object-fit:cover}
.forum-active-topic-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.forum-active-topic-copy strong{font-size:12px;line-height:1.4;font-weight:750;color:#22354d;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.forum-active-topic-copy small{font-size:10px;color:#8493a6}
.forum-topic-count{display:flex;align-items:center;gap:5px;color:#8b98a8;font-size:10px}
.forum-popular-author{display:grid;grid-template-columns:34px minmax(0,1fr) auto 12px;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #edf1f6;text-decoration:none}
.forum-popular-author img,.forum-popular-author>.forum-member-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover}
.forum-popular-author strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#263950}
.forum-popular-author>span{font-size:10px;color:#8a98a9}
.forum-active-file{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #edf1f6;text-decoration:none}
.forum-file-mini-icon{width:32px;height:36px;display:grid;place-items:center;border-radius:9px;background:#fff2e7;color:#f07816;font-size:17px}
.forum-active-file>span:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}
.forum-active-file strong{font-size:12px;line-height:1.35;color:#263950;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.forum-active-file small{font-size:10px;line-height:1.4;color:#8493a6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(min-width:1600px){.site-layout{grid-template-columns:270px minmax(0,1fr)}#masteram-page{padding-inline:clamp(32px,2.5vw,58px)}.forum-dashboard-grid{grid-template-columns:minmax(0,1fr) 310px;gap:26px}.forum-main-column .forum-category-card{padding:22px 26px;grid-template-columns:52px minmax(260px,1fr) minmax(240px,340px) 24px}}
@media(max-width:1100px){.forum-dashboard-grid{grid-template-columns:minmax(0,1fr) 260px;gap:14px}.forum-main-column .forum-category-card{grid-template-columns:42px minmax(0,1fr) 24px}.forum-category-last{grid-column:2/-1}.site-layout{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:900px){.site-layout{grid-template-columns:76px minmax(0,1fr)}#masteram-page{padding:20px 16px 30px}.forum-dashboard-grid{grid-template-columns:minmax(0,1fr)}.forum-right-column{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.forum-main-column .forum-category-card{grid-template-columns:42px minmax(0,1fr) 24px}.forum-category-last{grid-column:2/-1}}
@media(max-width:650px){#masteram-page{padding:14px 10px 24px}.forum-right-column{grid-template-columns:minmax(0,1fr)}.forum-main-column .forum-category-card{grid-template-columns:36px minmax(0,1fr) 18px;padding:14px 12px;gap:10px}.forum-category-last{grid-column:2/-1}}

/* BBCode: исторические теги и безопасные современные блоки */
.bbcode-size-1,.bbcode-size-2{font-size:.85em}.bbcode-size-3{font-size:1em}.bbcode-size-4{font-size:1.15em}.bbcode-size-5{font-size:1.3em}.bbcode-size-6{font-size:1.5em}.bbcode-big{font-size:1.25em}.bbcode-color-red{color:#c62828}.bbcode-color-green{color:#218739}.bbcode-color-blue{color:#1769c2}.bbcode-rule{border:0;border-top:1px solid #dce3ec;margin:1.25em 0}.bbcode-spoiler{margin:12px 0;border:1px solid #e2e7ef;border-radius:9px;overflow:hidden}.bbcode-spoiler>summary{padding:10px 13px;background:#f5f7fa;cursor:pointer;font-weight:650}.bbcode-spoiler>div{padding:12px 14px}.bbcode-code{margin:14px 0;overflow:hidden;border:1px solid #dce3ec;border-radius:10px;background:#f5f8fc}.bbcode-code__bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px;border-bottom:1px solid #dce3ec;background:#edf2f8;color:#526176;font-size:11px;font-weight:700}.bbcode-code__copy{border:1px solid #d1d9e5;border-radius:6px;padding:4px 8px;background:#fff;color:#344054;cursor:pointer;font:inherit}.bbcode-code pre{margin:0;padding:14px;overflow:auto;white-space:pre;line-height:1.6}.bbcode-code code{font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.bbcode-external-link::after{content:" ↗";font-size:.8em}.bbcode-entity-missing{color:#7b8492;font-style:italic}.bbcode-youtube{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:8px;background:#fff1f1;color:#b42318;text-decoration:none;font-weight:650}.post-body ul,.post-body ol{padding-left:1.7em}.post-body li{margin:.25em 0}.post-body audio,.post-body video{display:block;max-width:100%;margin:12px 0}

/* Нумерация строк и копирование BBCode-кода */
.bbcode-code pre{counter-reset:bbcode-line;tab-size:4;line-height:1.25}
.bbcode-code pre code{display:block;min-width:max-content}
.bbcode-code__line{display:block;min-height:1.25em;padding-left:3.8em;position:relative;white-space:pre;line-height:1.25}
.bbcode-code__line::before{counter-increment:bbcode-line;content:counter(bbcode-line);position:absolute;left:0;width:2.8em;padding-right:.8em;text-align:right;color:#8994a5;border-right:1px solid #dce3ec;user-select:none}
.bbcode-code__copy{white-space:nowrap}
.bbcode-code__copy:focus-visible{outline:2px solid #6366f1;outline-offset:2px}

/* Подсветка синтаксиса IDE без изменения исходного светлого оформления блока. */
.bbcode-code pre code{display:block;color:#243247;background:transparent}
.bbcode-code .bbcode-code__line{display:block;min-height:1.25em;padding-right:1rem;white-space:pre;line-height:1.25}
.bbcode-code .hljs-comment,.bbcode-code .hljs-quote{color:#7b8492;font-style:italic}
.bbcode-code .hljs-keyword,.bbcode-code .hljs-selector-tag,.bbcode-code .hljs-literal,.bbcode-code .hljs-meta{color:#b42318;font-weight:600}
.bbcode-code .hljs-string,.bbcode-code .hljs-attr,.bbcode-code .hljs-template-variable{color:#067647}
.bbcode-code .hljs-title,.bbcode-code .hljs-function,.bbcode-code .hljs-name,.bbcode-code .hljs-section{color:#6941c6}
.bbcode-code .hljs-number,.bbcode-code .hljs-symbol,.bbcode-code .hljs-bullet{color:#175cd3}
.bbcode-code .hljs-built_in,.bbcode-code .hljs-type,.bbcode-code .hljs-variable,.bbcode-code .hljs-params{color:#b54708}
.bbcode-code .hljs-property,.bbcode-code .hljs-attribute{color:#026aa2}
.bbcode-code .hljs-operator,.bbcode-code .hljs-punctuation{color:#475467}

/* Плотная межстрочная высота в блоках кода: переопределяем базовые line-height темы. */
.bbcode-code pre,.bbcode-code pre code,.bbcode-code pre code .bbcode-code__line,.bbcode-code .bbcode-code__line{line-height:1.05!important}
.bbcode-code pre code .bbcode-code__line{min-height:1.05em!important;padding-top:0!important;padding-bottom:0!important}


/* Постраничная навигация форума */
.pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:22px auto 0;padding:0}
.pagination-number,.pagination-arrow{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:38px;min-height:38px;padding:0 11px;border:1px solid #e0e8f1;border-radius:10px;background:#fff;color:#385675;text-decoration:none;font-size:13px;font-weight:700;transition:background .15s,border-color .15s,color .15s}
.pagination-number:hover,.pagination-arrow:not(.is-disabled):hover{border-color:#f07816;background:#fff6ed;color:#d85e00}
.pagination-number.is-current{border-color:#f07816;background:#f07816;color:#fff;box-shadow:0 3px 9px rgba(240,120,22,.18)}
.pagination-arrow.is-disabled{color:#a8b4c2;background:#f8fafc;border-color:#e8edf3}
.pagination-ellipsis{padding:0 3px;color:#8a9bb0}
.pagination-summary{text-align:center;margin:9px 0 2px;color:#8798ac;font-size:11px}
@media(max-width:460px){.pagination{gap:5px}.pagination-number,.pagination-arrow{min-width:33px;min-height:35px;padding:0 8px;font-size:12px}.pagination-arrow span{display:none}.pagination-summary{font-size:10px}}


/* Авторизация и регистрация: адаптивная форма с живой проверкой. */
.auth-panel{max-width:560px;margin:clamp(22px,5vh,56px) auto;padding:0 18px}.auth-card{background:#fff;border:1px solid #e6eaf0;border-radius:22px;padding:clamp(22px,4vw,38px);box-shadow:0 16px 48px rgba(24,32,42,.06)}.auth-mark{width:46px;height:46px;display:grid;place-items:center;margin-bottom:18px;border-radius:15px;background:#fff3e4;color:#e87512;font-size:24px;font-weight:900}.auth-card h1{margin:0;font-size:clamp(25px,4vw,32px);line-height:1.2;letter-spacing:-.6px}.auth-intro{margin:10px 0 24px;color:#778194;font-size:14px}.auth-form{display:grid;gap:15px}.auth-field{display:grid;gap:7px;color:#303949;font-size:13px;font-weight:700}.auth-field input{width:100%;min-height:48px;padding:12px 14px;border:1px solid #dfe5ed;border-radius:11px;background:#fff;color:#202536;font:inherit;font-weight:400;outline:none;transition:border-color .15s}.auth-field input:focus,.auth-field input:focus-visible{border-color:#b7c0ce;box-shadow:none;outline:none}.auth-field input[aria-invalid="true"]{border-color:#dc6262}.auth-field input[aria-invalid="false"]{border-color:#31a878}.field-hint{min-height:0;color:#788293;font-size:11px;font-weight:500}.field-hint:empty{display:none}.field-hint.is-error{color:#c0392b}.field-hint.is-success{color:#16845b}.auth-submit{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin-top:4px;padding:12px 18px;border:0;border-radius:12px;background:#f07816;color:white;font:inherit;font-weight:750;cursor:pointer;transition:background .15s}.auth-submit:hover{background:#df680b}.auth-submit:disabled{opacity:.7;cursor:wait}.auth-spinner{display:none;width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:auth-spin .7s linear infinite}.auth-submit[aria-busy="true"] .auth-spinner{display:block}@keyframes auth-spin{to{transform:rotate(360deg)}}.form-message{padding:0;font-size:13px}.form-message:not(:empty){padding:11px 13px;border-radius:10px;background:#f3f6fa;color:#475467}.form-message.is-error{background:#fff0f0;color:#b42318}.form-message.is-success{background:#ecfdf3;color:#067647}.auth-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:20px;padding-top:17px;border-top:1px solid #edf0f4;font-size:12px;color:#778194}.auth-links a{color:#b85c08;font-weight:750;text-decoration:none}.auth-links a:hover{text-decoration:underline}@media(max-width:480px){.auth-panel{padding:0 12px;margin:20px auto}.auth-card{border-radius:17px;padding:22px 18px}}
/* У поиска намеренно нет оранжевой рамки/свечения при наведении и фокусе. */
.header-search form:hover,.header-search form:focus-within{border-color:#e1e6ee!important;box-shadow:none!important;outline:none!important}.header-search input:hover,.header-search input:focus,.header-search input:focus-visible{outline:none!important;box-shadow:none!important;border-color:transparent!important}

.turnstile-box{min-height:0}.turnstile-box:empty{display:none}

.auth-field[hidden]{display:none!important}

.admin-registration hr{border:0;border-top:1px solid #edf0f4;margin:25px 0}.admin-registration h2{font-size:19px;margin:12px 0}.registration-request{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #edf0f4}.registration-request small{display:block;color:#778194;margin-top:5px}.registration-request-actions{display:flex;gap:7px;flex-wrap:wrap}.registration-request-actions button,[data-copy-invite]{border:1px solid #dfe5ed;background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer}.registration-request-actions button:first-child{color:#16845b}.registration-request code{display:inline-block;overflow-wrap:anywhere;padding:8px;background:#f3f6fa;border-radius:8px}@media(max-width:560px){.registration-request{align-items:flex-start;flex-direction:column}}
