/* LuaDock 1.11.02 Template & Asset System V1 */
.templateModal{position:fixed;inset:0;z-index:10040;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(2,10,18,.76);backdrop-filter:blur(7px)}.templateModal[hidden]{display:none!important}.templateDialog{width:min(1080px,96vw);max-height:88vh;overflow:auto;border:1px solid #2a4b67;border-radius:16px;background:#0b1722;color:#eaf4fb;box-shadow:0 28px 80px rgba(0,0,0,.5);padding:18px}.templateDialogHead{display:flex;gap:18px;align-items:flex-start}.templateDialogHead>div{flex:1}.templateDialogHead h2{margin:2px 0 4px;font-size:22px}.templateDialogHead p{margin:0;color:#8ea4b6}.templateEyebrow{font-size:10px;letter-spacing:.14em;color:#5ca4ff}.templateClose{font-size:25px;line-height:1;width:38px;height:38px;border-radius:10px}.templateToolbar{display:flex;gap:8px;margin:16px 0 10px;flex-wrap:wrap}.templateToolbar button{border:1px solid #294d6b;background:#102334;color:#dcebf5;border-radius:9px;padding:8px 12px}.templateToolbar button.active{background:#2269d9;border-color:#4d91ee;color:#fff}.templateModeOptions{display:flex;gap:16px;flex-wrap:wrap;padding:9px 0;color:#b6c7d4;font-size:12px}.templateState{min-height:24px;color:#9cb0bf;font-size:12px}.templateGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.templateCard{overflow:hidden;border:1px solid #243e53;border-radius:12px;background:#101e2a}.templatePreview{height:126px;display:grid;place-items:center;background:#07111a center/cover no-repeat;color:#54738b;font-size:11px;font-weight:800;letter-spacing:.14em}.templateCardBody{padding:12px}.templateCardBody strong{display:block;font-size:14px}.templateCardBody p{min-height:35px;margin:6px 0;color:#9eb1bf;font-size:11px;line-height:1.45}.templateCardBody span{display:block;color:#718da2;font-size:9px}.templateUse{width:100%;margin-top:10px;min-height:34px;border-radius:8px;background:#1f66ce!important;border-color:#4a8ce3!important;color:white!important}.templateQuickCard{margin:0 0 10px;padding:10px;border:1px solid #27455e;border-radius:10px;background:rgba(19,36,51,.82)}.templateQuickCard>strong{display:block;margin-bottom:4px;color:#edf6fb}.templateQuickCard>p,.templateQuickState{margin:4px 0 8px;color:#91a7b8;font-size:9px;line-height:1.4}.templateQuickActions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.templateQuickActions button{min-height:34px}.templateQuickCard label{display:block;margin-top:8px}.templateCheck{display:flex!important;align-items:center;gap:7px}.hubCreateModeChoice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.hubCreateModeButton{min-height:130px;padding:18px!important;text-align:left;border-radius:14px!important;border:1px solid #2a506e!important;background:linear-gradient(180deg,#11283a,#0b1b29)!important}.hubCreateModeButton:hover{border-color:#4e92d0!important;transform:translateY(-1px)}.hubCreateModeButton strong{display:block;font-size:15px;color:#edf7fd}.hubCreateModeButton span{display:block;margin-top:8px;color:#93a9ba;font-size:11px;line-height:1.45}.hubCreateCard{width:min(620px,94vw)!important}
body.ui-studio .studioLeftTabs{grid-template-columns:repeat(5,minmax(0,1fr))!important}body.ui-studio .studioLeftTabs button{font-size:9px!important;padding-inline:3px!important}.featureLocked.templateUse{opacity:.45;pointer-events:none}
html[data-luadock-theme="light"] .templateDialog{background:#f7fbfe;color:#173047;border-color:#b9ccda}.templateDialog html[data-luadock-theme="light"],html[data-luadock-theme="light"] .templateCard{background:#fff;border-color:#c7d7e2}.templateDialog html[data-luadock-theme="light"],html[data-luadock-theme="light"] .templateCardBody p,html[data-luadock-theme="light"] .templateDialogHead p{color:#60798c}html[data-luadock-theme="light"] .templateQuickCard{background:#f3f8fb;border-color:#c7d7e2}
@media(max-width:700px){.hubCreateModeChoice{grid-template-columns:1fr}.templateGrid{grid-template-columns:1fr}.templateQuickActions{grid-template-columns:1fr}}

/* RC3 built-in background library navigation */
.templateLibraryNav:empty{display:none}.templateLibraryTools{display:flex;align-items:center;gap:12px;margin:8px 0}.templateLibraryTools strong{font-size:11px;color:#b7cbd9;white-space:nowrap}.templateLibraryTools input{flex:1;min-width:180px;border:1px solid #294d6b;border-radius:8px;background:#091723;color:#e9f5fc;padding:8px 10px}.templateCategoryRow{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 12px}.templateCategoryRow button{border:1px solid #294d6b;border-radius:999px;background:#0c1d2a;color:#a9bdcb;padding:6px 10px;font-size:10px}.templateCategoryRow button.active{background:#1f66ce;border-color:#4a8ce3;color:#fff}.templateBuiltin{border-color:#2d5674}.templateBuiltin .templatePreview{height:132px}.templateBuiltin .templateCardBody span{text-transform:none;letter-spacing:0}.templateBuiltin::after{content:"PRESET";position:absolute;margin:8px;padding:3px 6px;border-radius:5px;background:rgba(0,0,0,.66);color:#8ec6ff;font-size:8px;font-weight:800;letter-spacing:.12em}.templateCard{position:relative}
html[data-luadock-theme="light"] .templateLibraryTools input{background:#fff;color:#173047;border-color:#b9ccda}html[data-luadock-theme="light"] .templateCategoryRow button{background:#f3f8fb;color:#49677c;border-color:#b9ccda}
@media(max-width:700px){.templateLibraryTools{align-items:stretch;flex-direction:column}.templateLibraryTools input{width:100%}}
