/* הספרייה שלי · phone layout (25.11): clean header, one-line rows of books/tags/folders, compact list */
@media(max-width:760px){
 .ml-top{flex-wrap:wrap!important;gap:8px!important;padding:10px 14px!important;height:auto!important;row-gap:10px!important}
 .ml-top .ml-brand{width:auto!important;height:auto!important;gap:8px!important;order:0}
 .ml-top .ml-brand img{width:30px;height:30px}
 .ml-top .ml-brand span{display:flex!important;flex-direction:column;line-height:1.1}
 .ml-top .ml-brand span b{display:none!important}
 .ml-top .ml-brand span small{display:block!important;font:800 19px Rubik,sans-serif!important;color:#141826!important;opacity:1!important}
 .ml-top .ml-sp{flex:1!important;width:auto!important}
 .ml-top .tms-btn,.ml-top .ml-add>button{height:38px!important;font-size:13.5px!important;padding:0 12px!important}
 .ml-top .ml-q{order:10!important;flex:1 1 100%!important;width:100%!important;height:44px!important;border-radius:14px!important;font-size:15px!important;padding:0 14px!important}
 .ml-tree{overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none;padding:8px 12px!important;gap:6px!important;height:auto!important}
 .ml-tree::-webkit-scrollbar{display:none}
 .ml-tree .ml-f{flex:none!important;height:36px!important;font-size:13.5px!important}
 .ml-main{padding:12px 14px 20px!important}
 .ml-wip{padding:10px 12px!important;font-size:14px!important;border-radius:14px!important}
 .ml-h{margin:16px 0 8px!important}
 .ml-h h2{font-size:18px!important}
 .ml-shelf{display:flex!important;grid-template-columns:none!important;gap:10px!important;overflow-x:auto!important;scrollbar-width:none;padding:2px 2px 8px!important;scroll-snap-type:x proximity}
 .ml-shelf::-webkit-scrollbar{display:none}
 .ml-shelf .bk{flex:0 0 92px!important;width:92px!important;height:118px!important;min-height:0!important;scroll-snap-align:start;font-size:12px!important;padding:8px 6px!important}
 .ml-shelf .bk *{font-size:inherit}
 .ml-shelf .bk b,.ml-shelf .bk strong{font-size:12.5px!important;line-height:1.2!important}
 .ml-bar{gap:8px!important;height:auto!important}
 .ml-bar .ml-seg{overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap!important;max-width:100%}
 .ml-bar .ml-seg::-webkit-scrollbar{display:none}
 .ml-bar .ml-seg button{flex:none;white-space:nowrap}
 .ml-tags{flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none;max-height:none!important;height:auto!important;padding-bottom:4px}
 .ml-tags::-webkit-scrollbar{display:none}
 .ml-tags>*{flex:none!important;white-space:nowrap}
 /* cards (if chosen): smaller picture, tighter text */
 .ml-grid{gap:10px!important}
 .ml-grid .cd .th{height:78px!important;min-height:0!important}
 .ml-grid .cd{min-height:0!important}
 /* list rows: compact and even */
 .ml-items{display:flex!important;flex-direction:column;gap:8px!important}
 .ml-items .it{display:flex!important;align-items:center!important;gap:12px!important;padding:10px 12px!important;border-radius:14px!important;background:#fff!important;border:1px solid rgba(201,160,74,.18)!important;min-height:64px}
 .ml-items .it .k{flex:none;width:42px!important;height:42px!important;border-radius:12px!important;display:grid!important;place-items:center;background:#F6EFE0!important;font-size:19px!important}
 .ml-items .it .t{flex:1;min-width:0}
 .ml-items .it .t b{display:block;font:600 15px/1.3 Rubik,sans-serif!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#141826}
 .ml-items .it .t small{display:block;font-size:12.5px!important;color:#7a7f8c!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:760px){
 .ml-items .it{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;grid-template-areas:"k t t" "k d mv";column-gap:12px!important;row-gap:3px!important;align-items:center}
 .ml-items .it .k{grid-area:k;grid-row:1 / 3}
 .ml-items .it .t{grid-area:t}
 .ml-items .it .t small{display:none!important}
 .ml-items .it .d{grid-area:d;font-size:12px!important;color:#8a8f9c}
 .ml-items .it .mt{display:none!important}
 .ml-items .it .mv{grid-area:mv;height:28px!important;min-height:0!important;padding:0 8px!important;font-size:12px!important;border-radius:9px!important;max-width:112px;background:#FBF8F1!important}
 .ml-top .tms-btn{width:40px!important;padding:0!important;justify-content:center;overflow:hidden;font-size:0!important}
 .ml-top .tms-btn kbd{display:none!important}
 .ml-top .tms-btn::before{content:'📜';font-size:17px}
 .ml-top .ml-add>button{height:40px!important;padding:0 14px!important}
}
