.template-library{min-height:100svh;background:#fafafa;color:#222225;letter-spacing:0}.template-library a{text-decoration:none}.template-library button,.template-library select{cursor:pointer}.template-library :is(a,button,input,select):focus-visible{outline:2px solid #347467;outline-offset:4px}.template-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid #e5e5e8;background:#fff;gap:20px}.template-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700}.template-header nav{display:flex;align-items:center;gap:32px;font-size:14px}.template-current-nav{gap:8px;color:#347467}.template-current-nav,.template-home-link{display:inline-flex;align-items:center;min-height:44px}.template-draft-link:hover,.template-home-link:hover{color:#347467}.template-content{max-width:1440px;margin:0 auto;padding:44px 40px 64px}.template-title-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:36px}.template-title-row h1{font-size:30px;font-weight:700;line-height:1.4;margin:0 0 8px}.template-title-row p{font-size:14px;color:#6b6b73}.template-draft-link{display:flex;align-items:center;gap:14px;min-height:44px;min-width:0;font-size:14px}.template-draft-link span{color:#6b6b73;white-space:nowrap}.template-draft-link strong{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.template-controls{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #e5e5e8}.template-categories{display:flex;flex-wrap:wrap;gap:6px}.template-categories button{min-height:44px;padding:0 16px;border-radius:6px;color:#62626c;font-size:14px;transition:background .15s,color .15s}.template-categories button:hover{background:#ededee;color:#222225}.template-categories button[aria-pressed=true]{background:#242426;color:#fff}.template-search{display:flex;align-items:center;gap:10px;width:228px;height:44px;flex-shrink:0;padding:0 12px;border:1px solid #dedee3;border-radius:6px;background:#fff;color:#686870}.template-search input{width:100%;min-width:0;height:42px;background:transparent;color:#222225;font-size:14px;outline:none}.template-search:focus-within{outline:2px solid #347467;outline-offset:2px}.template-search input:focus-visible{outline:none}.template-results-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;font-size:13px;color:#686870}.template-results-bar label{display:flex;align-items:center;gap:8px}.template-results-bar select{height:44px;max-width:160px;background:transparent;color:#333338;padding:0 4px}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 28px}.template-card{min-width:0;overflow:hidden;border:1px solid #e1e1e5;border-radius:8px;background:#fff;transition:border-color .15s}.template-card:hover{border-color:#347467}.template-preview{width:100%;aspect-ratio:2.18;position:relative;overflow:hidden;background:#eef0f2;pointer-events:none}.template-preview-deck{position:absolute;top:50%;left:50%;transform-origin:center}.template-preview-layout{background:#eef0f2}.template-preview-layout .template-preview-deck{box-shadow:0 8px 32px #2222251a}.template-card-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;-moz-column-gap:12px;column-gap:12px;row-gap:7px;padding:18px 20px;border-top:1px solid #e8e8ec}.template-card-name{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.template-card h2{font-size:16px;font-weight:600;line-height:1.5}.template-badge{font-size:11px;line-height:22px;padding:0 7px;background:#f0f0f2;color:#62626c;border-radius:4px;white-space:nowrap}.template-badge.is-new{color:#2c6a5a;background:#e8f3ed}.template-card-action{display:flex;align-items:center;gap:5px;color:#4f655e;font-size:13px;white-space:nowrap}.template-card-info p{grid-column:1/-1;font-size:12px;color:#72727b}.template-card-info p span{padding:0 5px;color:#b1b1b8}.template-empty{display:flex;min-height:300px;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#686870}.template-empty h2{font-size:16px}.template-empty button{display:inline-flex;min-height:44px;align-items:center;gap:6px;padding:0 14px;border:1px solid #dedee3;border-radius:6px;background:#fff}@media (min-width:1600px){.template-content{padding-top:52px}}@media (max-width:900px){.template-controls{flex-wrap:wrap}.template-search{width:100%;max-width:360px}.template-header{padding:0 24px}.template-content{padding:32px 24px 48px}.template-grid{gap:24px 18px}.template-card-info{padding:14px}}@media (max-width:600px){.template-header{height:64px;padding:0 16px;gap:12px}.template-brand{font-size:16px;gap:7px}.template-brand img{width:26px;height:26px}.template-header nav{gap:12px}.template-current-nav{display:none}.template-content{padding:28px 16px 40px}.template-title-row{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:22px}.template-title-row h1{font-size:26px}.template-draft-link{width:100%}.template-draft-link strong{flex:1}.template-categories{gap:4px;width:100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px}.template-categories button{flex-shrink:0;padding:0 11px;font-size:13px}.template-controls{gap:14px}.template-search{max-width:none}.template-grid{grid-template-columns:minmax(0,1fr);gap:22px}}@media (prefers-reduced-motion:reduce){.template-library *{transition:none!important}}