/* project templates — Project Templates + Professional Sample Projects */
.project-templates-dialog{position:fixed;inset:auto;left:50%;top:calc(var(--nav-h,52px) + 22px);transform:translateX(-50%);width:min(1040px,calc(100vw - 34px));height:min(760px,calc(100dvh - var(--nav-h,52px) - 42px));max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:visible;color:#25304a;z-index:6900;}
.project-templates-dialog::backdrop{background:rgba(15,23,42,.34);backdrop-filter:blur(2px);}
.project-templates-shell{height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid #dce3ed;border-radius:20px;box-shadow:0 30px 90px rgba(15,23,42,.30);overflow:hidden;}
.project-templates-head{display:grid;grid-template-columns:48px minmax(0,1fr) 38px;gap:13px;align-items:start;padding:17px 19px;border-bottom:1px solid #e5eaf1;background:#fff;cursor:move;touch-action:none;}
.project-templates-head-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#eef2ff;color:#1e2a78;font-size:19px;}
.project-templates-head small{display:block;text-transform:uppercase;letter-spacing:.09em;color:#6f7ec2;font-size:9px;font-weight:900;}
.project-templates-head h2{margin:3px 0 3px;color:#18245c;font-size:20px;line-height:1.2;}
.project-templates-head p{margin:0;color:#788397;font-size:11px;line-height:1.45;}
.project-templates-head>button{width:36px;height:36px;border:1px solid #dce3ec;border-radius:10px;background:#f8fafc;color:#536078;cursor:pointer;}
.project-templates-notice{display:flex;gap:9px;align-items:flex-start;padding:9px 18px;background:#1e2a78;color:#eef2ff;font-size:10px;line-height:1.55;}
.project-templates-notice i{margin-top:2px;color:#4bcffa;}
.project-templates-toolbar{display:flex;align-items:center;gap:12px;padding:11px 18px 8px;background:#fff;border-bottom:1px solid #edf0f5;}
.project-templates-tabs{display:flex;gap:6px;}
.project-templates-tabs button,.project-templates-category button{border:1px solid #dce3ed;border-radius:10px;background:#fff;color:#667085;padding:8px 11px;font:inherit;font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap;}
.project-templates-tabs button.active,.project-templates-category button.active{border-color:#6f7fcf;background:#eef2ff;color:#1e2a78;}
.project-templates-search{margin-left:auto;min-width:260px;display:flex;align-items:center;gap:7px;border:1px solid #d9e0ea;border-radius:10px;background:#fff;padding:0 10px;color:#8994a6;}
.project-templates-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;padding:9px 0;color:#25304a;font:inherit;font-size:11px;}
.project-templates-category{display:flex;gap:6px;overflow:auto;padding:8px 18px;background:#fbfcfe;border-bottom:1px solid #edf0f5;}
.project-templates-category button{padding:6px 9px;font-size:9px;}
.project-templates-body{flex:1;min-height:0;overflow:auto;padding:15px 18px 18px;background:#f7f9fc;}
.project-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.project-template-card{display:flex;flex-direction:column;min-height:236px;border:1px solid #dde5ef;border-radius:15px;background:#fff;padding:14px;box-shadow:0 5px 18px rgba(30,42,120,.035);}
.project-template-card.demo{border-color:#d8def2;background:linear-gradient(180deg,#fff,#fbfcff);}
.project-template-card-head{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;}
.project-template-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eef2ff;color:#1e2a78;font-size:16px;}
.project-template-card.demo .project-template-icon{background:#e9f9ff;color:#0879a5;}
.project-template-card-head small{display:block;color:#8791a4;font-size:8px;text-transform:uppercase;letter-spacing:.07em;font-weight:900;}
.project-template-card h3{margin:2px 0 0;color:#23305f;font-size:14px;line-height:1.25;}
.project-template-card>p{margin:11px 0 9px;color:#6f7a8d;font-size:10px;line-height:1.55;}
.project-template-tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:9px;}
.project-template-tags span{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-radius:999px;background:#f1f4f8;color:#667085;font-size:8px;font-weight:800;}
.project-template-spec{display:flex;gap:12px;margin-top:auto;padding:8px 0 3px;color:#59667b;font-size:9px;font-weight:800;}
.project-template-spec span{display:inline-flex;gap:5px;align-items:center;}
.project-template-card-foot{margin-top:auto;padding-top:10px;border-top:1px solid #edf0f4;display:flex;gap:10px;align-items:center;justify-content:space-between;}
.project-template-card-foot>small{max-width:60%;color:#8a94a5;font-size:8px;line-height:1.35;}
.project-template-limit{color:#a15c16!important;}
.project-template-card-foot button{border:0;border-radius:9px;background:#1e2a78;color:#fff;padding:8px 11px;font:inherit;font-size:9px;font-weight:900;cursor:pointer;white-space:nowrap;}
.project-template-card.demo .project-template-card-foot button{background:#0879a5;}
.project-template-card-foot button:disabled{background:#cbd3df;color:#778296;cursor:not-allowed;}
.project-template-empty{min-height:260px;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:#8791a4;}
.project-template-empty i{font-size:24px;color:#8796d9;}.project-template-empty strong{color:#44506a;font-size:12px}.project-template-empty span{font-size:10px;}
.project-templates-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-top:1px solid #e5eaf1;background:#fff;}
.project-templates-footer span{color:#768195;font-size:9px;}
.project-templates-footer button{border:1px solid #d8e0ea;border-radius:9px;background:#fff;color:#49566c;padding:8px 12px;font:inherit;font-size:10px;font-weight:800;cursor:pointer;}
.project-workspace-btn.templates{border-color:#cad4f2;background:#f5f7ff;color:#1e2a78;}
.project-wizard-inline-note.template-source{background:#f4f7ff;border-color:#d8e1ff;color:#536184;}
@media(max-width:760px){
  .project-templates-dialog{left:4px;right:4px;top:calc(var(--nav-h,52px) + 4px);transform:none;width:auto;height:calc(100dvh - var(--nav-h,52px) - 8px);}
  .project-templates-shell{border-radius:14px;}
  .project-templates-head{grid-template-columns:40px minmax(0,1fr) 36px;padding:12px;cursor:default;touch-action:auto;}
  .project-templates-head-icon{width:40px;height:40px;}
  .project-templates-notice{padding:8px 11px;}
  .project-templates-toolbar{display:grid;grid-template-columns:1fr;padding:9px 10px;gap:8px;}
  .project-templates-tabs{display:grid;grid-template-columns:1fr 1fr;}
  .project-templates-search{min-width:0;margin:0;width:100%;}
  .project-templates-category{padding:7px 10px;}
  .project-templates-body{padding:10px;}
  .project-template-grid{grid-template-columns:1fr;}
  .project-template-card{min-height:0;}
  .project-template-card-foot{align-items:stretch;flex-direction:column;}
  .project-template-card-foot>small{max-width:none;}
  .project-template-card-foot button{width:100%;}
  .project-templates-footer{padding:9px 10px;}
}
