/* 4Download mobile web-app layer: intentionally separate from the desktop theme. */
@media (max-width:767px){
html,body{width:100%;overflow-x:hidden;}
body{font-size:14px;-webkit-tap-highlight-color:transparent;}
body,input,button,select,textarea{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;}
.wrapper__container,.top-banner-inner,.main-content-container,.footer__one{padding-left:14px;padding-right:14px;}
.top-banner-inner{padding-left:0!important;padding-right:0!important;max-width:none!important;width:100%!important;}
.header{width:100%;}
.header{min-height:72px;padding-bottom:8px;}
.header__top-row{min-height:70px;padding:12px 26px 15px 18px;gap:13px;flex-wrap:wrap;position:relative;}
.header__top-row:after{content:"";position:absolute;left:18px;right:26px;bottom:0;height:1px;background:rgba(255,255,255,.34);box-shadow:0 1px 0 rgba(15,23,42,.16);}
.header__logo{gap:6px;font-size:14px;}
.header__top-row .header__logo{min-width:0;flex:1 1 auto;}
.header__top-row .header__logo .logo__text{min-width:0;}
.header__top-row .header__user-dropdown{position:absolute;right:70px;top:10px;}
.header__top-row .header__btn-login{margin-right:50px;}
.header__top-row .header__user-btn{max-width:122px;}
.home .d-grid-items-5{transform:translateY(-65px);margin-bottom:-65px;}
.site-info-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px!important;border:1px solid var(--bdc)!important;border-radius:10px;background:var(--bg-darker)!important;color:var(--tt)!important;font-size:15px!important;font-weight:800!important;cursor:pointer!important;}
.site-info-toggle-icon{display:inline-flex;color:var(--accent-primary);font-size:22px;line-height:1;transition:transform .2s ease;}
.site-info-toggle[aria-expanded="true"] .site-info-toggle-icon{transform:rotate(45deg);}
.site-info-content[hidden]{display:none!important;}
.site-info-content.site-info-content-mobile-open{display:block!important;margin-top:12px;}
.header__top-row .theme-toggle{position:absolute;right:calc(70px + 122px + 8px);top:15px;z-index:2;width:34px!important;height:34px!important;padding:4px!important;border:1px solid rgba(255,255,255,.32)!important;border-radius:50%!important;background:rgba(255,255,255,.14)!important;}
.header__top-row .theme-toggle svg{width:24px!important;height:24px!important;}
.header__top-row .theme-toggle .icon-sun{display:block!important;}
.header__top-row .theme-toggle .icon-moon{display:none!important;}
body.dt-is-active .header__top-row .theme-toggle .icon-sun{display:none!important;}
body.dt-is-active .header__top-row .theme-toggle .icon-moon{display:block!important;}
html.mobile-menu-open,body.mobile-menu-open{overflow:hidden!important;overscroll-behavior:none;}
body.mobile-menu-open{touch-action:none;}
.mobile-menu-drawer{overscroll-behavior:contain;touch-action:pan-y;}
.header__top-row .header__user-avatar>.fd-avatar-badge,.mobile-menu-account-avatar>.fd-avatar-badge{display:none!important;}
.header__search{order:3;width:100%;max-width:none;}
.header__top-row .header__search{order:10;flex:0 0 92%;width:92%;max-width:none;margin:10px auto 3px;}
.header__top-row .search-block__input{height:44px;font-size:13px;background:rgba(255,255,255,.22);}
.header__top-row .search-block__btn{right:0;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;}
.header__top-row .search-block__btn svg{width:16px;height:16px;}
.header__top-row .search-block__input{border-radius:11px!important;}
.header__top-row .header__user-btn{border-radius:13px!important;}
.header__inner{flex-wrap:wrap;}
.header__actions{margin-left:auto;margin-right:50px;gap:11px;padding-left:12px;border-left:1px solid rgba(255,255,255,.2);}
.header__btn-menu{position:absolute!important;right:26px;top:10px;width:38px!important;height:38px!important;min-width:38px!important;margin:0!important;padding:7px!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:8px!important;display:flex!important;align-items:center;justify-content:center;}
.header__btn-menu svg{width:22px!important;height:22px!important;stroke-width:2.5;}
.header__btn-login,.header__btn-register{padding:8px 10px;font-size:11px;}
.main-content-container{padding-top:12px;}
.speedbar{font-size:11px;padding:8px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.page__cols{display:block;}
.page__cols-main{width:100%;}
.page__cols-side{display:none!important;}
.page__header{padding:14px;gap:12px;border-radius:12px;flex-wrap:wrap;}
.page__header-left{width:100%;display:flex;justify-content:center;}
.page__img{width:108px;height:108px;}
.page__header-info{width:100%;}
.page__header-title h1{font-size:17px;text-align:center;}
.page__archive-filename{justify-content:center;font-size:11px;}
.page__meta-row{font-size:12px;gap:8px;}
.page__meta-label{width:126px;min-width:126px;}
.page__actions{justify-content:center;flex-wrap:wrap;}
.page__header-reputation{width:100%;min-width:0;border-left:0;border-top:1px solid var(--bdc);padding:12px 0 0;display:grid;grid-template-columns:auto 52px auto 1fr;align-items:center;justify-items:center;gap:8px;}
.page__header-reputation .reputation-label{font-size:9px;white-space:nowrap;}
.page__header-reputation .reputation-circle{width:48px;height:48px;font-size:16px;}
.page__header-reputation .reputation-stars{justify-self:end;}
.page__header-ctrl{justify-content:center;gap:6px;margin-top:14px;}
.page__header-ctrl a,.page__header-ctrl button{min-height:34px;padding:8px 12px;font-size:11px;}
.page__meta-table{gap:5px;margin-top:10px;}
.page__meta-row{min-height:20px;}
.page__meta-label{width:132px;min-width:132px;font-size:11px;}
.page__meta-val{font-size:11px;}
.archive-heading{padding:14px 16px;margin-bottom:12px;}
.archive-heading h1{font-size:19px;}
.archive-list{gap:10px;}
.archive-list-item{grid-template-columns:56px minmax(0,1fr);gap:9px;padding:12px;border-radius:10px;}
.archive-list-thumb{width:56px;height:56px;}
.archive-list-main h2{font-size:14px;}
.archive-list-main p{font-size:11px;}
.archive-list-meta{gap:7px;}
.archive-list-reputation,.archive-list-size{grid-column:2;border:0;padding:0;text-align:left;}
.archive-list-reputation{display:none;}
.archive-list-size{font-size:13px;}
.d-grid-items-4,.d-grid-items-5{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.item-card{min-height:280px;padding:12px 8px;}
.item-card .item__img{width:78px;height:78px;}
.footer__menu{display:none;}
.fd-back-to-top{bottom:16px;right:14px;}
.sidebar-card{border-radius:12px;}
.dl__btn,.mirror-direct,.dl-gateway-wrapper .btn-green-download{width:100%!important;max-width:none!important;display:flex!important;justify-content:center;align-self:stretch;}
.dl{flex-direction:column!important;align-items:stretch!important;}
.dl form{display:block!important;width:100%!important;flex:1 1 100%!important;}
.mobile-menu-drawer{width:min(88vw,340px)!important;padding:18px 16px 24px!important;background:var(--bg,#fff)!important;border-right:1px solid var(--bdc)!important;box-shadow:18px 0 45px rgba(15,23,42,.28)!important;}
body.dt-is-active .mobile-menu-drawer{background:var(--bg-darker,#172b3d)!important;}
.mobile-menu-drawer>div:first-child{margin-bottom:18px!important;padding:4px 0 16px!important;border-bottom:1px solid var(--bdc)!important;}
.mobile-menu-drawer .logo__title{font-size:17px!important;font-weight:900!important;letter-spacing:.3px;}
.mobile-menu-drawer .logo__subtitle{font-size:11px!important;color:var(--accent-primary)!important;font-weight:800!important;}
.mobile-menu-drawer #mobile-close{width:36px;height:36px;border:1px solid var(--bdc)!important;border-radius:10px;background:var(--bg-darker)!important;color:var(--tt)!important;font-size:20px!important;}
.mobile-menu-drawer>ul{gap:5px!important;margin:0!important;padding:0!important;}
.mobile-menu-drawer>ul>li{border:0!important;padding:0!important;margin:0!important;}
.mobile-menu-drawer>ul>li>a{min-height:44px;padding:10px 12px!important;border-radius:10px;font-size:13px!important;color:var(--tt)!important;gap:11px!important;}
.mobile-menu-drawer>ul>li>a:hover,.mobile-menu-drawer>ul>li>a:active{background:color-mix(in srgb,var(--accent-primary) 13%,transparent)!important;color:var(--accent-primary)!important;}
.mobile-menu-drawer>ul>li>a svg{width:17px!important;height:17px!important;color:var(--accent-primary)!important;flex:0 0 17px;}
.mobile-menu-dropdown-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;margin:0!important;padding:10px 12px!important;border:0;background:transparent;color:var(--tt)!important;font-size:13px!important;font-weight:700;text-transform:none;letter-spacing:0!important;cursor:pointer;min-height:44px;}
.mobile-menu-dropdown-toggle span{display:inline-flex;align-items:center;gap:7px;}
.mobile-menu-dropdown-toggle svg{color:var(--accent-primary)!important;}
.mobile-menu-dropdown>ul{display:flex!important;flex-direction:column;max-height:0;opacity:0;overflow:hidden;transform:translateY(-5px);transition:max-height .28s ease,opacity .22s ease,transform .28s ease;}
.mobile-menu-dropdown.is-open>ul{max-height:360px;opacity:1;transform:translateY(0);}
.mobile-menu-dropdown.is-open .mobile-menu-dropdown-toggle>svg{transform:rotate(180deg);}
.mobile-menu-dropdown-toggle>svg{transition:transform .25s ease;}
.mobile-menu-dropdown>ul a{transition:background-color .18s ease,color .18s ease,transform .18s ease;}
.mobile-menu-dropdown>ul a:hover,.mobile-menu-dropdown>ul a:active,.mobile-menu-dropdown>ul a:focus-visible{background:color-mix(in srgb,var(--accent-primary) 14%,transparent)!important;color:var(--accent-primary)!important;transform:translateX(3px);outline:none;}
.mobile-menu-dropdown>ul li a{color:var(--tt)!important;opacity:1!important;}
.mobile-menu-dropdown>ul li a:hover,.mobile-menu-dropdown>ul li a:active,.mobile-menu-dropdown>ul li a:focus-visible{background:color-mix(in srgb,var(--accent-primary) 18%,transparent)!important;color:var(--accent-primary)!important;}
.fd-comments-lazy{box-sizing:border-box;width:calc(100% + 28px);max-width:none;margin:20px -14px 0;padding:8px;border:0;border-radius:12px;background:transparent;overflow:hidden;}
.fd-comments-container,.fd-comments-section{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;}
.fd-comments-section{margin-top:0!important;padding:16px 12px!important;border-radius:12px!important;}
.fd-comments-header{margin-bottom:16px!important;padding-bottom:14px!important;}
.fd-comments-title{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px!important;font-size:16px!important;line-height:1.25;}
.fd-comments-title>svg{grid-column:1;}
.fd-comments-title>span:not(.fd-comments-badge){grid-column:2;min-width:0;}
.fd-comments-title>.fd-comments-badge{grid-column:3;justify-self:end;}
.fd-comments-subtitle{font-size:12px!important;line-height:1.5;}
.fd-comment-composer-box{display:grid!important;grid-template-columns:42px minmax(0,1fr);align-items:center!important;gap:10px!important;width:100%!important;min-width:0;margin-bottom:22px!important;}
.fd-composer-avatar-col{grid-column:1;grid-row:1;width:42px!important;align-self:start;}
.fd-composer-avatar,.fd-composer-avatar img{width:42px!important;height:42px!important;}
.fd-composer-form-col,.fd-composer-form{display:contents!important;}
.fd-composer-user-bar{grid-column:2;grid-row:1;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px;min-width:0;margin:0!important;}
.fd-composer-user-name{min-width:0;line-height:1.35;}
.fd-composer-logout-link{flex:0 0 auto;margin-left:0!important;font-size:11px;text-align:right;}
.fd-composer-editor-wrap{grid-column:1/-1;grid-row:2;width:100%!important;min-width:0;}
.fd-composer-textarea{min-height:112px!important;padding:12px!important;}
.fd-composer-guest-row{grid-column:1/-1;grid-row:3;min-width:0;}
.fd-composer-bottom-bar{grid-column:1/-1;grid-row:5;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;width:100%!important;min-width:0;margin-top:2px!important;}
.fd-composer-bottom-left{width:100%!important;min-width:0!important;overflow:hidden;}
.fd-composer-captcha-slot{width:100%;max-width:100%;overflow:hidden;}
.fd-composer-submit-wrap{display:grid!important;grid-template-columns:minmax(0,1fr);width:100%!important;min-width:0;margin:0!important;}
.fd-submit-btn{box-sizing:border-box;width:100%!important;min-width:0;min-height:44px;justify-content:center!important;padding:11px 14px!important;}
.fd-reply-composer-box .fd-composer-bottom-bar,.fd-reply-composer-box .fd-composer-submit-wrap{width:100%!important;margin-left:0!important;}
.fd-reply-composer-box .fd-composer-submit-wrap{grid-template-columns:1fr 1fr!important;}
.fd-reply-composer-box .fd-btn-cancel-flat,.fd-reply-composer-box .fd-submit-btn{width:100%!important;justify-content:center!important;}
.fd-comments-empty{box-sizing:border-box;width:100%;padding:20px 14px!important;}
.fd-composer-ajax-notice,.fd-composer-ajax-error{grid-column:1/-1;grid-row:4;width:100%!important;max-width:none!important;margin:2px 0!important;padding:11px 12px!important;}
.fd-comments-filter-bar{align-items:flex-start!important;margin:16px 0 12px!important;padding:10px!important;}
.fd-filter-bar-title{width:100%;}
.fd-comments-sort-wrap{width:100%;min-width:0;}
.fd-comments-sort-select{width:100%;min-height:42px;padding-top:9px;padding-bottom:9px;font-size:13px;}
.fd-comments-chat-stream{gap:14px!important;}
.fd-comment-bubble-wrap{gap:8px!important;min-width:0;}
.fd-comment-avatar,.fd-comment-avatar img{width:38px!important;height:38px!important;}
.fd-comment-bubble{min-width:0;padding:12px!important;border-radius:4px 13px 13px 13px!important;}
.fd-comment-header{display:grid!important;grid-template-columns:minmax(0,1fr);gap:5px!important;}
.fd-comment-author-info{min-width:0;flex-wrap:wrap;gap:5px!important;}
.fd-comment-author-name{min-width:0;overflow-wrap:anywhere;}
.fd-comment-time{display:block;width:100%;}
.fd-comment-content{font-size:13px!important;line-height:1.55!important;}
.fd-comment-actions{justify-content:flex-start!important;flex-wrap:wrap;}
.fd-chat-comment.is-reply-comment{padding-left:14px!important;}
.fd-comments-pagination{gap:8px;flex-wrap:wrap;}
.fd-comments-load{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;border:1px solid var(--fd-accent-readable,#334155);border-radius:8px;background:transparent;color:var(--fd-accent-readable,#334155);font-weight:800;cursor:pointer;}
.fd-comments-load:hover{background:var(--fd-accent-action-bg,#3730a3);border-color:var(--fd-accent-action-bg,#3730a3);color:#fff;}
.mobile-menu-dropdown-toggle:focus{outline:none!important;box-shadow:none!important;}
.header__user-dropdown.is-mobile-open .header__user-menu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;}
.header__user-menu{right:0;top:calc(100% + 8px);max-width:calc(100vw - 28px);}
.mobile-menu-drawer>ul>li>ul{gap:2px!important;padding-left:8px!important;}
.mobile-menu-drawer>ul>li>ul a{min-height:38px;padding:8px 12px!important;border-radius:8px;font-size:12px!important;color:var(--tt-fade)!important;}
.mobile-menu-drawer>ul>li>ul a svg{color:var(--accent-primary)!important;width:15px!important;height:15px!important;}
.mobile-menu-telegram{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:auto;padding:13px 14px;border-radius:11px;background:var(--accent-primary)!important;color:#fff!important;font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 6px 16px color-mix(in srgb,var(--accent-primary) 28%,transparent);}
.mobile-menu-telegram svg{width:17px;height:17px;}
.mobile-menu-telegram:hover{background:var(--fd-color-primary-hover,var(--accent-primary))!important;color:#fff!important;}
.mobile-menu-account{margin-top:10px;padding-top:10px;border-top:1px solid var(--bdc);}
.mobile-menu-account-link{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--tt)!important;font-size:13px;font-weight:700;line-height:1.2;font-family:inherit;text-decoration:none;cursor:pointer;text-align:left;}
.mobile-menu-account-link svg{width:17px;height:17px;color:var(--accent-primary);flex:0 0 17px;}
.mobile-menu-account-link:hover,.mobile-menu-account-link:active,.mobile-menu-account-link:focus-visible{background:color-mix(in srgb,var(--accent-primary) 14%,transparent);color:var(--accent-primary)!important;outline:none;}
.mobile-menu-account-toggle{display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:10px;width:100%;min-height:58px;padding:8px 10px;border:1px solid var(--bdc);border-radius:11px;background:var(--bg-darker);color:var(--tt);font:inherit;text-align:left;cursor:pointer;}
body.dt-is-active .mobile-menu-account-toggle{background:#102136;border-color:#294663;}
.mobile-menu-account-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;position:relative;}
.mobile-menu-account-avatar>img{display:block;width:38px;height:38px;object-fit:cover;border-radius:50%;border:2px solid var(--fd-accent-readable,var(--accent-primary));}
.mobile-menu-account-meta{display:flex;flex-direction:column;min-width:0;line-height:1.25;}
.mobile-menu-account-meta strong{overflow:hidden;color:var(--tt);font-size:13px;font-weight:800;text-overflow:ellipsis;white-space:nowrap;}
.mobile-menu-account-meta small{overflow:hidden;color:#64748b;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap;}
body.dt-is-active .mobile-menu-account-meta small{color:#cbd5e1;}
.mobile-menu-account-chevron{display:flex;align-items:center;justify-content:center;color:var(--fd-accent-readable,var(--accent-primary));transition:transform .25s ease;}
.mobile-menu-account.is-open .mobile-menu-account-chevron{transform:rotate(180deg);}
.mobile-menu-account-panel{display:flex;flex-direction:column;gap:2px;max-height:0;margin-top:0;overflow:hidden;opacity:0;transform:translateY(-5px);transition:max-height .3s ease,opacity .22s ease,transform .3s ease,margin-top .3s ease;}
.mobile-menu-account.is-open .mobile-menu-account-panel{max-height:320px;margin-top:6px;opacity:1;transform:translateY(0);}
.mobile-menu-account-panel .mobile-menu-account-link{padding-left:12px;}
.mobile-menu-account-panel .mobile-menu-account-link.logout{margin-top:4px;border-top:1px solid var(--bdc);border-radius:0 0 8px 8px;color:#dc2626!important;}
body.dt-is-active .mobile-menu-account-panel .mobile-menu-account-link.logout{color:#fca5a5!important;}

/* Profile pages: use the mobile viewport instead of nesting desktop gutters. */
.fd-profile-page-wrapper,.fd-public-profile-wrapper{box-sizing:border-box;width:calc(100% + 28px)!important;max-width:none!important;margin-left:-14px!important;margin-right:-14px!important;padding:8px 8px 28px!important;overflow-x:clip;}
.fd-profile-container,.fd-public-profile-container{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
.fd-profile-header-card,.fd-public-hero-card,.fd-profile-sidebar,.fd-profile-content,.fd-public-activity-section{box-sizing:border-box;width:100%!important;max-width:none!important;}
.fd-profile-header-card,.fd-public-hero-card{margin-bottom:12px!important;border-radius:14px!important;overflow:visible!important;}
.fd-profile-cover-banner,.fd-public-cover-banner{height:150px!important;border-radius:13px 13px 0 0!important;}
.fd-cover-actions{top:10px!important;right:10px!important;}
.fd-btn-cover-action{min-height:36px;padding:7px 10px!important;}
.fd-profile-header-inner,.fd-public-hero-inner{padding:0 12px 16px!important;}
.fd-profile-hero-top-bar,.fd-public-hero-top-bar{display:block!important;margin-bottom:12px!important;}
.fd-profile-avatar-wrap,.fd-public-avatar-wrap{width:92px!important;height:92px!important;margin-top:-46px!important;}
.fd-profile-avatar-wrap>.fd-avatar-badge,.fd-public-avatar-wrap>.fd-avatar-badge,.fd-public-avatar-wrap>.fd-public-avatar-badge{display:none!important;}
.fd-profile-header-actions,.fd-public-hero-actions{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center!important;gap:6px!important;width:100%!important;margin:12px 0 0!important;}
.fd-profile-header-actions .fd-hero-share-wrap,.fd-public-hero-actions .fd-hero-share-wrap{width:38px!important;}
.fd-profile-header-actions .fd-btn-hero-share,.fd-public-hero-actions .fd-btn-hero-share{width:38px!important;min-width:38px!important;padding:0!important;}
.fd-profile-header-actions .fd-btn-hero-share>span,.fd-public-hero-actions .fd-btn-hero-share>span{display:none!important;}
.fd-profile-header-actions .fd-btn-hero,.fd-public-hero-actions .fd-btn-hero{min-width:0;padding:0 10px;font-size:12px;}
.fd-profile-public-label{display:none!important;}
.fd-profile-header-actions .fd-hero-share-menu,.fd-public-hero-actions .fd-hero-share-menu{left:0!important;right:auto!important;max-width:calc(100vw - 32px)!important;}
.fd-profile-info-block,.fd-public-info-block{gap:9px!important;}
.fd-profile-name,.fd-public-name{font-size:20px!important;}
.fd-profile-title-row,.fd-public-name-row{gap:7px!important;}
.fd-profile-meta-row,.fd-public-meta-row{display:grid!important;grid-template-columns:1fr;gap:8px!important;min-width:0;}
.fd-meta-item,.fd-public-meta-item{min-width:0;overflow-wrap:anywhere;}
.fd-profile-dashboard{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;min-width:0;}
.fd-profile-sidebar{padding:7px!important;min-width:0;}
.fd-profile-nav{width:100%;min-width:0;}
.fd-pnav-btn{box-sizing:border-box;width:100%;min-width:0;}
.fd-pnav-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fd-pnav-badge{flex:0 0 auto;}
.fd-profile-content,.fd-public-activity-section{min-width:0;padding:14px 12px!important;border-radius:12px!important;overflow:hidden;}
.fd-pane-header{margin-bottom:16px!important;padding-bottom:12px!important;}
.fd-pane-title{font-size:17px!important;}
.fd-pane-subtitle{overflow-wrap:anywhere;}

/* Public profile activity: cards must remain fully contained on mobile. */
.fd-public-tabs-nav{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%;}
.fd-pub-tab-btn{box-sizing:border-box;width:100%!important;min-width:0;min-height:42px;justify-content:center!important;padding:9px 10px!important;white-space:normal!important;text-align:center;}
.fd-pub-tab-pane,.fd-public-software-grid{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;}
.fd-public-software-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
.fd-pub-software-card{box-sizing:border-box;display:grid!important;grid-template-columns:52px minmax(0,1fr);align-items:center!important;width:100%!important;min-width:0;gap:10px!important;padding:10px!important;overflow:hidden;}
.fd-pub-soft-thumb{width:52px!important;height:52px!important;border-radius:10px!important;}
.fd-pub-soft-info{width:100%;min-width:0!important;overflow:hidden;}
.fd-pub-soft-title{display:-webkit-box!important;max-width:100%;margin-bottom:6px!important;overflow:hidden!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;text-overflow:ellipsis;font-size:13px!important;line-height:1.3!important;}
.fd-pub-soft-meta{display:grid!important;grid-template-columns:minmax(0,1fr);align-items:start!important;gap:5px!important;width:100%;min-width:0;}
.fd-pub-soft-cat{display:block;max-width:100%;min-width:0;}
.fd-pub-soft-meta>div{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap;gap:6px!important;min-width:0;}
.fd-pub-soft-date{font-size:11px;white-space:nowrap;}
.fd-pub-soft-size{max-width:100%;font-size:10.5px!important;}
.fd-public-comment-item{box-sizing:border-box;width:100%;min-width:0;padding:11px!important;overflow:hidden;}
.fd-comment-item-header{align-items:flex-start!important;gap:6px!important;}
.fd-comment-post-title{min-width:0;}
.fd-post-target-link{overflow-wrap:anywhere;}
.fd-pub-pagination{max-width:100%;gap:5px!important;flex-wrap:wrap;}

/* Transaction history contrast and compact mobile layout. */
.fd-vip-transactions-section{min-width:0!important;margin-top:24px!important;}
.fd-txns-header{align-items:flex-start!important;}
.fd-txns-header h3{max-width:calc(100% - 82px);font-size:15px!important;line-height:1.25!important;}
.fd-txns-count{flex:0 0 auto;}
.fd-txns-table-wrap{max-width:100%;-webkit-overflow-scrolling:touch;}
body.dt-is-active .fd-txns-count{background:#1e293b!important;border-color:#475569!important;color:#e2e8f0!important;}
body.dt-is-active .fd-txns-empty{background:#0f172a!important;border-color:#475569!important;color:#e2e8f0!important;}
body.dt-is-active .fd-txns-empty h4{color:#f8fafc!important;}
body.dt-is-active .fd-txns-empty p{color:#cbd5e1!important;}
body.dt-is-active .fd-txns-empty-icon{background:#16334d!important;color:#7dd3fc!important;}

/* Library cards become a contained two-column mobile card. */
.fd-library-pane-header{display:flex!important;align-items:flex-start!important;flex-direction:column!important;gap:10px!important;}
.fd-library-toolbar,.fd-library-search-wrap{width:100%!important;max-width:none!important;min-width:0!important;}
.fd-library-grid{width:100%;min-width:0;}
.fd-lib-card{box-sizing:border-box;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;align-items:center!important;width:100%!important;min-width:0!important;gap:10px!important;padding:10px!important;overflow:hidden;}
.fd-lib-card-thumb-wrap{grid-column:1;grid-row:1;width:48px!important;height:48px!important;}
.fd-lib-card-body{grid-column:2;grid-row:1;width:100%;min-width:0!important;overflow:hidden;}
.fd-lib-card-meta{gap:4px!important;max-width:100%;overflow:hidden;}
.fd-lib-cat-tag,.fd-lib-meta-chip{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.fd-lib-card-title{max-width:100%;white-space:normal!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;}
.fd-lib-card-actions{grid-column:1/-1;grid-row:2;display:grid!important;grid-template-columns:minmax(0,1fr) 38px;width:100%!important;margin:0!important;padding-top:9px!important;border-top:1px solid var(--bdc)!important;}
.fd-btn-lib-download{justify-content:center;width:100%;min-height:36px;}
.fd-btn-lib-remove{width:38px!important;height:36px!important;}
/* Shared mobile header grid: every control occupies one predictable column. */
.header__top-row{display:grid!important;grid-template-columns:minmax(0,1fr) 36px minmax(0,122px) 38px;align-items:center;gap:8px;min-height:70px;padding:12px 14px 15px!important;flex-wrap:nowrap!important;}
.header__top-row .header__logo{grid-column:1;min-width:0;width:auto;flex:initial;}
.header__top-row .theme-toggle{position:static!important;grid-column:2;grid-row:1;justify-self:center;}
.header__top-row .header__user-dropdown{position:static;grid-column:3;grid-row:1;justify-self:stretch;}
.header__top-row .header__user-btn{width:100%;max-width:none;justify-content:flex-start;}
.header__top-row .header__user-btn .header__user-name,.header__top-row .header__user-btn .header__user-chevron{display:none!important;}
body.logged-in .header__top-row{grid-template-columns:minmax(0,1fr) 36px 40px 38px;}
body.logged-in .header__top-row .header__user-dropdown{width:40px;justify-self:center;}
body.logged-in .header__top-row .header__user-btn{width:40px;height:40px;max-width:40px;padding:3px!important;justify-content:center;border-radius:10px!important;}
body.logged-in .header__top-row .header__user-avatar,body.logged-in .header__top-row .header__user-avatar img{width:32px;height:32px;}
.header__top-row .header__user-menu{display:none!important;}
.header__top-row .header__btn-login{grid-column:3;grid-row:1;margin:0;justify-self:stretch;}
.header__top-row .header__btn-login .header__login-label{display:none;}
body:not(.logged-in) .header__top-row{grid-template-columns:minmax(0,1fr) 36px 40px 38px;}
body:not(.logged-in) .header__top-row .header__btn-login{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;justify-self:center;justify-content:center;gap:0;border-radius:9px;}
body:not(.logged-in) .header__top-row .header__btn-login svg{width:20px;height:20px;}
.header__top-row .header__btn-menu{grid-column:4;grid-row:1;position:static!important;justify-self:end;}
.header__top-row .header__search{grid-column:1/-1;grid-row:2;order:initial;flex:initial;width:100%;margin:8px 0 2px;}
@media (max-width:380px){.header__top-row{grid-template-columns:minmax(0,1fr) 32px 82px 36px;gap:6px;padding-left:10px!important;padding-right:10px!important;}.header__top-row .theme-toggle{width:30px!important;height:30px!important;}.header__top-row .header__btn-menu{width:36px!important;min-width:36px!important;height:36px!important;}.header__top-row .header__user-btn{padding-left:3px;padding-right:5px;}.header__top-row .header__user-avatar,.header__top-row .header__user-avatar img{width:27px;height:27px;}}
.fdl-card{padding:14px!important;border-radius:14px!important;}
.fdl-header{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:start!important;gap:12px!important;}
.fdl-icon{width:72px!important;min-width:72px!important;}
.fdl-icon img{width:72px!important;height:72px!important;}
.fdl-meta{min-width:0!important;display:contents!important;}
.fdl-title-row{grid-column:2;grid-row:1;min-width:0;}
.fdl-title-row{display:grid!important;grid-template-columns:16px minmax(0,1fr) auto!important;align-items:center!important;gap:5px!important;width:100%!important;transform:translateY(5px);}
.fdl-title-row .fdl-checkmark{grid-column:1;grid-row:1;width:16px!important;height:16px!important;}
.fdl-title-row h1{grid-column:2;grid-row:1;margin:0!important;}
.fdl-title-row .fdl-badge-ready,.fdl-title-row .fdl-badge-archived{grid-column:3;grid-row:1;align-self:start;}
.fdl-title-row{margin-bottom:6px!important;align-items:flex-start!important;}
.fdl-title-row h1{font-size:13px!important;line-height:1.25!important;}
.fdl-meta-grid{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:4px!important;}
.fdl-meta-pill{min-width:0!important;padding:7px 8px!important;font-size:10px!important;}
.pill-label{font-size:10px!important;gap:3px!important;}
.pill-val{font-size:10px!important;}
}
@media (max-width:380px){
.header__top-row{padding-left:12px;padding-right:14px;gap:8px;}
.header__top-row .header__logo{gap:5px;}
.header__top-row .logo__icon{width:32px;height:32px;}
.header__top-row .logo__icon svg{width:18px;height:18px;}
.header__top-row .logo__title{font-size:16px;letter-spacing:-.5px;}
.header__top-row .logo__subtitle{font-size:11px;}
.header__top-row .header__user-dropdown{right:56px;top:13px;}
.header__top-row .header__user-btn{max-width:72px;padding:3px 8px 3px 4px;gap:4px;}
.header__top-row .header__user-name{display:none;}
.header__top-row .header__user-avatar,.header__top-row .header__user-avatar img{width:28px;height:28px;}
.header__top-row .header__user-chevron{display:none;}
.header__top-row .theme-toggle{right:104px;top:12px;width:30px!important;height:30px!important;}
.header__top-row .theme-toggle svg{width:21px!important;height:21px!important;}
.header__btn-menu{right:14px;top:11px;width:34px!important;height:34px!important;min-width:34px!important;}
.header__btn-menu svg{width:20px!important;height:20px!important;}
.header__top-row .header__search{width:100%;flex-basis:100%;}
.hero__title{font-size:21px;line-height:1.12;}
.hero__text{font-size:11.5px;line-height:1.5;}
.home .d-grid-items-5{gap:8px;}
}

@media (max-width:767px){
  .hero{padding:24px 0 34px;text-align:center;}
  .hero__inner{display:flex;flex-direction:column;align-items:center;gap:14px;}
  .hero__graphic{display:block;position:relative;right:auto;bottom:auto;order:-1;width:180px;height:180px;animation:none;}
  .hero__title{font-size:28px;line-height:1.15;margin:0;max-width:100%;text-align:left;}
  .hero__text{font-size:13px;line-height:1.55;max-width:330px;margin:0;}
  .hero__title span{margin-left:0;padding:0 8px;}
  .hero--decor .hero__inner::before{width:230px;height:230px;right:auto;bottom:auto;top:-12px;z-index:1;}
  .hero__graphic,.hero__title,.hero__text{z-index:2;}
  .home .main-content-container{margin-top:0!important;padding-top:18px!important;}
  .home .hero{padding-bottom:46px!important;}
}

@media (max-width:767px){
  .page__header{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:10px;}
  .page__header-left{width:72px;display:block;}
  .page__img{width:72px;height:72px;}
  .page__header-info{width:auto;min-width:0;}
  .page__header-info{display:contents;}
  .page__header-title{display:contents;}
  .page__header-title h1{grid-column:2;grid-row:1;min-width:0;}
  .page__header-title h1{padding-right:38px;}
  .page__archive-filename{grid-column:1/-1;grid-row:2;}
  .page__header-title h1{text-align:left;}
  .page__archive-filename{justify-content:flex-start;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .page__meta-table{width:100%;}
  .page__header-ctrl{justify-content:flex-start;}
  .page__header-ctrl{display:flex;flex-direction:column;align-items:stretch;width:100%;}
  .page__header-ctrl .btn-green-download,.page__header-ctrl .btn-report-broken{width:100%;justify-content:center;}
  .page__header-ctrl .sc-wrap{align-self:flex-start;}
  .page__header-ctrl .sc-wrap{position:absolute;top:12px;right:12px;z-index:4;}
  .page__header-ctrl .btn-share-icon{width:34px;height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;}
  .page__header-ctrl .sc-menu{position:absolute;top:38px;right:0;left:auto;width:220px;max-width:calc(100vw - 28px);max-height:300px;overflow-y:auto;z-index:99999;transform:none;}
  .page__header-ctrl .sc-menu.active{transform:none;}
  .page__meta-table,.page__header-ctrl{grid-column:1/-1;}
  .page__meta-table{justify-self:stretch;text-align:left;}
  .page__meta-table{margin-top:-8px;}
  .page__header{row-gap:6px;}
  .page__meta-row{justify-content:flex-start;text-align:left;}
  .page__meta-label{justify-content:flex-start;text-align:left;}
  .page__header-reputation{grid-column:1/-1;}
}
@media (max-width:380px){
  .header__top-row{padding-left:12px;padding-right:14px;gap:8px;}
  .header__top-row .header__logo{gap:5px;}
  .header__top-row .logo__icon{width:32px;height:32px;}
  .header__top-row .logo__icon svg{width:18px;height:18px;}
  .header__top-row .logo__title{font-size:16px;letter-spacing:-.5px;}
  .header__top-row .logo__subtitle{font-size:11px;}
  .header__top-row .header__user-dropdown{right:56px;top:13px;}
  .header__top-row .header__user-btn{max-width:72px;padding:3px 8px 3px 4px;gap:4px;}
  .header__top-row .header__user-name,.header__top-row .header__user-chevron{display:none;}
  .header__top-row .header__user-avatar,.header__top-row .header__user-avatar img{width:28px;height:28px;}
  .header__top-row .theme-toggle{right:104px;top:12px;width:30px!important;height:30px!important;}
  .header__top-row .theme-toggle svg{width:21px!important;height:21px!important;}
  .header__btn-menu{right:14px;top:11px;width:34px!important;height:34px!important;min-width:34px!important;}
  .header__btn-menu svg{width:20px!important;height:20px!important;}
  .header__top-row .header__search{width:100%;flex-basis:100%;}
  .hero__title{font-size:21px!important;line-height:1.12;}
  .hero__text{font-size:11.5px!important;line-height:1.5;}
  .home .d-grid-items-5{gap:8px;}
}
