/* Keep grid children within the available width; catalog categories may scroll
   inside their own rail without widening the document. */
.catalog-layout{grid-template-columns:220px minmax(0,1fr)}.catalog-layout>*,.template-grid>*{min-width:0}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-list{max-width:100%;min-width:0}.category-list button{overflow-wrap:anywhere}.category-list button:focus-visible{outline-offset:-3px}.category-list small{flex-shrink:0}.template-mobile-category{display:none}.template-clear{flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:7px;background:transparent;color:inherit;font-size:23px;line-height:1}.template-clear:hover{background:#659bc21a}#template-reset{margin-top:16px}.search-bar{min-width:0}.search-bar .search{min-width:0}.template-card h2{hyphens:auto;overflow-wrap:anywhere}
.lab-heading h1{font-size:20px;line-height:1.4;letter-spacing:-.3px;font-weight:700;margin:2px 0 0}.lab-window-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.lab-window-actions .plain-button{min-height:40px;padding:8px 12px;border:1px solid #8eacc6;border-radius:8px;font-size:12px;background:#f7fbff;color:#234b70}.lab-shortcuts{display:flex;gap:7px;align-items:center;flex-wrap:wrap;max-width:1800px;margin:0 auto 12px}.lab-shortcut{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid #aec3d6;border-radius:8px;background:#f8fbff;color:#2b4c6b;font-size:12px;font-weight:600}.lab-shortcut:hover{border-color:#557c9c;background:#e7f2fc;color:#153c60}.lab-shortcut[aria-current=page]{background:#e1edf8;border-color:#507b9f;color:#173f63}.lab-shortcut:focus-visible,.lab-expand:focus-visible{outline:3px solid #4e9cdc;outline-offset:3px}#lab-frame{height:calc(100dvh - 248px)}
html[data-theme=gozwars] .lab-window-actions .plain-button,html[data-theme=gozwars] .lab-shortcut{background:#243a52;color:#e7f2ff;border-color:#819eb9}html[data-theme=gozwars] .lab-shortcut:hover,html[data-theme=gozwars] .lab-shortcut[aria-current=page]{background:#3a5773;color:#fff;border-color:#b0d8f3}html[data-theme=gozwars] .template-mobile-category{color:#d4e3f3}html[data-theme=gozwars] .template-mobile-category select{background:#233a53;color:#f0f6ff;border-color:#819cb8}
.lab-expanded{overflow:hidden}.lab-expanded .header,.lab-expanded .footer{display:none!important}.lab-expanded #lab-workspace-view{position:fixed;inset:0;z-index:1000;padding:12px 16px!important;display:flex;flex-direction:column;max-width:none;margin:0;background:#edf3fa}.lab-expanded .lab-heading,.lab-expanded .lab-shortcuts{width:100%;max-width:none;flex-shrink:0}.lab-expanded #lab-frame{height:0;min-height:0;flex:1}.lab-expanded .lab-heading h1{font-size:18px}html[data-theme=gozwars] .lab-expanded #lab-workspace-view{background:#0d1929}
@media(max-width:900px){.catalog-layout{grid-template-columns:minmax(0,1fr)}.template-grid{grid-template-columns:minmax(0,1fr)}.catalog-layout>aside{max-width:100%}}
@media(max-width:760px){.template-mobile-category{display:flex;flex-direction:column;gap:7px;margin:12px 0 20px;color:#34536e;font-size:12px;font-weight:650}.template-mobile-category select{width:100%;min-width:0;min-height:46px;border:1px solid #9fb8cc;border-radius:9px;padding:10px 12px;background:#fff;color:#213f5a}.catalog-layout>aside:has(.category-list){display:none}html[data-theme] #main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px}.search-bar{align-items:flex-start;flex-direction:column;gap:9px}.search-bar .search{max-width:none}.search-bar .muted{white-space:normal}.lab-heading{gap:8px;flex-wrap:wrap}.lab-heading>div:first-child{min-width:0}.lab-window-actions{gap:6px;margin-left:auto}.lab-window-actions .plain-button{min-height:40px;font-size:11px;padding:8px}.lab-shortcuts{gap:6px}.lab-shortcut{padding:8px 10px;min-height:40px;font-size:11px}.lab-expanded #lab-workspace-view{padding:8px!important}.lab-expanded .lab-heading h1{font-size:16px}.lab-expanded .lab-shortcuts{margin-bottom:8px}.lab-expanded .lab-heading{margin-bottom:8px}}
@media(max-width:450px){.lab-window-actions{width:100%;justify-content:stretch}.lab-window-actions>*{flex:1;text-align:center}.lab-shortcut{flex:1 1 auto}.lab-heading h1{font-size:19px}}
@media(prefers-reduced-motion:reduce){.lab-shortcut,.template-clear{transition:none}}
#lab-workspace-title{font-size:20px;line-height:1.4;letter-spacing:-.3px;font-weight:700;margin:2px 0 0}.lab-expanded #lab-workspace-title{font-size:18px}@media(max-width:450px){#lab-workspace-title{font-size:19px}.lab-expanded #lab-workspace-title{font-size:16px}}

.account-shortcuts .dlp-account-shortcut{border-color:#d7b653;background:linear-gradient(125deg,#fff9e6,#fffdf6);color:#543d1e}.dlp-account-shortcut .shortcut-icon{background:#ffe69b;color:#b73324;font-weight:900}.header nav .dlp-nav-link{color:#9b4b16}html[data-theme=gozwars] .account-shortcuts .dlp-account-shortcut{background:linear-gradient(125deg,#2b2b27,#283347);border-color:#b3944b;color:#f5dfb1}html[data-theme=gozwars] .dlp-account-shortcut small{color:#dbcaac}html[data-theme=gozwars] .header nav .dlp-nav-link{color:#f2ce8c}
