/* Sidebar-first font selector with compact, aligned tool presentation. */
#pg58-library[hidden]{display:none!important}#pg58-library{display:flex;flex-direction:column;gap:14px;padding:4px 2px 22px;min-width:0}#quick-sidebar.pg58-open #panel{display:none!important}#pg58-library .pg58-heading{display:flex;justify-content:space-between;align-items:start;gap:8px}#pg58-library .pg58-heading h2{font-size:19px!important;margin:5px 0 0!important}#pg58-library .pg58-heading small{letter-spacing:.1em;color:var(--muted);font-size:10px}#pg58-library .pg58-close{font-size:24px;padding:0;width:34px;min-height:34px;border-radius:10px}#pg58-library input{width:100%;min-height:40px;padding:9px 12px!important;border-radius:12px}#pg58-library .pg58-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin}#pg58-library .pg58-chips button{min-height:30px;flex-shrink:0;padding:5px 10px;font-size:11px;border-radius:10px}#pg58-library .pg58-chips button.active{background:var(--brand)!important;color:white!important;border-color:var(--brand)!important}#pg58-library .pg58-section h3{display:flex;justify-content:space-between;font-size:15px;margin:3px 0 10px}#pg58-library .pg58-section h3 small{font-size:10px;color:var(--muted);font-weight:400}#pg58-library .pg58-recents,#pg58-library .pg58-themes,#pg58-library .pg58-fonts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#pg58-library .pg58-card{display:flex;align-items:stretch;flex-direction:column;text-align:left;min-width:0;min-height:98px;padding:10px;gap:5px;border-radius:13px;background:var(--tint);color:var(--ink);overflow:hidden}#pg58-library .pg58-card.selected{outline:2px solid var(--brand)}#pg58-library .pg58-sample{font-size:31px;line-height:1.4}#pg58-library .pg58-card strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#pg58-library .pg58-theme{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;padding:10px;border-radius:13px;text-align:left}#pg58-library .pg58-theme b{font-size:12px}#pg58-library .pg58-theme span{display:flex;gap:2px;height:21px}#pg58-library .pg58-theme i{flex:1;min-width:0;border-radius:3px}#pg58-library .pg58-hint{font-size:11px;color:var(--muted)}#pg58-font-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#panel #pg58-open-gallery{width:100%;min-height:46px;justify-content:center;background:var(--brand)!important;color:white!important;font-weight:700;border-radius:13px;margin:5px 0 12px}
@media(min-width:901px){main{min-width:0!important;grid-template-columns:76px minmax(215px,265px) minmax(0,1fr) minmax(270px,315px)!important;gap:10px!important;padding:10px!important}#tools{align-items:stretch!important;gap:4px!important}#tools button{width:100%!important;min-height:58px!important;height:auto!important;flex-shrink:0!important;padding:6px 3px!important;display:flex!important;justify-content:center!important;align-items:center!important;flex-direction:column!important}#tools button span{font-size:10px!important;line-height:1.15!important;white-space:normal;text-align:center}#top-tools{min-width:0!important;overflow-x:auto!important;gap:6px!important;scrollbar-width:thin}#top-tools button{flex-shrink:0!important;white-space:nowrap!important;min-height:39px!important;padding:7px 11px!important}#quick-sidebar,#sidebar{min-width:0!important}#panel .quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important}#panel .quick-grid button{min-width:0!important}}
@media(max-width:900px){#pg58-library .pg58-fonts{grid-template-columns:repeat(2,minmax(0,1fr))}#quick-sidebar.pg58-open{display:block!important;overflow-y:auto!important}#pg58-library .pg58-card{min-height:82px}#pg58-library .pg58-sample{font-size:25px}#mobile-create-dock{align-items:center!important;grid-template-rows:70px!important}#mobile-create-dock button{min-width:0!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}#mobile-create-dock button span{white-space:nowrap!important}#workspace{min-width:0!important}}
