.template-library{padding-bottom:90px}.template-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}.template-filters button,.template-toolbar button,.template-toolbar>a,.pdf-controls button{min-height:44px;padding:11px 18px;border:1px solid #cbd8e5;border-radius:999px;background:#fff;color:#223b7f;font:600 14px/1.4 var(--sans)}.template-filters button[aria-pressed=true]{background:#223b7f;color:white;border-color:#223b7f}.template-search-label{display:block;font-size:14px;font-weight:600;color:#223b7f;max-width:460px}.template-search-label input{display:block;margin-top:8px;width:100%;padding:14px 18px;border:1px solid #cbd8e5;border-radius:12px;background:#fff;font:400 16px var(--sans)}.template-count{color:var(--muted);font-size:14px;margin:20px 0}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.template-card{position:relative;border:1px solid #d6e0eb;border-radius:22px;background:#fff;padding:30px;display:flex;flex-direction:column;min-height:310px;transition:box-shadow .2s,transform .2s}.template-card[hidden]{display:none}.template-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #1528450d}.template-card .eyebrow{font-size:11px;margin-bottom:18px}.template-format{font-size:12px;color:#223b7f;font-weight:700;line-height:1.7}.template-format span{font-weight:400;color:var(--muted)}.template-card h2{font:500 27px/1.25 var(--serif);margin:16px 0}.template-card h2 a{color:#152845}.template-card>p:not(.eyebrow){font-size:15px;line-height:1.75;color:var(--muted);margin-bottom:25px}.template-open{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:auto;font-size:14px;font-weight:600;color:#223b7f;min-height:44px}.template-back{display:inline-block;font-size:14px;color:#223b7f;margin-bottom:28px;min-height:32px}.template-detail .resource-page-heading h1{max-width:1000px;font-size:clamp(35px,4.8vw,62px)}.template-primary-actions{display:flex;flex-wrap:wrap;margin-top:28px}.template-primary-actions .button{border-radius:999px;gap:24px}.template-notice{padding:18px 22px;background:#fff5dc;border:1px solid #e9d6a5;border-radius:14px;font-size:14px!important;max-width:950px!important;margin-top:26px;color:#59451b!important}.template-workspace{padding-bottom:85px;min-width:0}.template-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:18px;background:#e9eff6;border:1px solid #d1ddea;border-radius:18px 18px 0 0}.template-toolbar label{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:#223b7f;margin-left:auto}.template-toolbar select{background:#fff;padding:10px;border:1px solid #cbd8e5;border-radius:10px;min-height:44px;font-size:16px}.template-instructions{padding:18px 22px;background:#fff;border:1px solid #d1ddea;border-top:0;margin:0;font-size:14px;line-height:1.8;color:#52657d}#template-viewer{border:1px solid #d1ddea;border-top:0;background:#fff;border-radius:0 0 18px 18px;overflow:hidden;min-height:300px}#template-viewer>p{padding:24px}.template-status{font-size:14px;line-height:1.7;color:#52657d;min-height:24px;margin-top:14px}.document-editor{width:100%;height:78vh;min-height:580px;border:0;display:block;background:#eaf0f6}.workbook-tabs{display:flex;overflow-x:auto;gap:6px;padding:14px;background:#f1f5fa}.workbook-tabs button{white-space:nowrap;min-height:44px;padding:10px 18px;border-radius:12px;background:white;border:1px solid #cbd8e5;color:#223b7f;font-size:14px}.workbook-tabs button[aria-selected=true]{background:#223b7f;color:white}.sheet-formula-bar{background:#fbfcfe;padding:12px 18px!important;font:400 13px/1.6 var(--sans);color:#52657d;margin:0;border-bottom:1px solid #d1ddea;overflow-wrap:anywhere}.sheet-scroll{max-height:78vh;overflow:auto;position:relative;overscroll-behavior:contain}.template-sheet{table-layout:fixed;border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font:400 14px/1.6 var(--sans);color:#152845}.template-sheet th{background:#edf2f8;color:#536a85;font-size:12px;position:sticky;z-index:3}.template-sheet thead th{top:0;height:33px}.template-sheet tbody th{left:0}.template-sheet td,.template-sheet th{border-right:1px solid #e0e7ef;border-bottom:1px solid #e0e7ef;padding:7px 10px;min-height:34px;height:34px;vertical-align:middle;overflow-wrap:break-word;white-space:pre-wrap}.template-sheet .editable-cell{outline:1px dashed #7699bf55;outline-offset:-3px;cursor:text}.template-sheet .editable-cell:focus{outline:2px solid #456eaa;outline-offset:-2px;background:#edf5ff!important;min-width:80px}.template-sheet .formula-cell{background:#edf4fa;font-variant-numeric:tabular-nums;color:#223b7f}.template-sheet .formula-error{color:#9a342f}.pdf-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:18px;background:#f1f5fa;font-size:14px}.pdf-controls label{display:flex;align-items:center;gap:8px}.pdf-controls input{padding:10px;border:1px solid #cbd8e5;border-radius:10px;min-height:44px;font-size:16px;width:70px}.pdf-controls input[type=search]{width:220px}.pdf-controls button:disabled{opacity:.4}.pdf-page-wrap{overflow:auto;max-height:85vh;background:#eaf0f6;padding:20px}.pdf-page-wrap img{display:block;max-width:none;height:auto;margin:auto;box-shadow:0 6px 22px #15284518}.pdf-text{padding:20px 24px}.pdf-text summary{cursor:pointer;font-size:14px;color:#223b7f;min-height:32px}.pdf-text>div{white-space:pre-wrap;font-size:15px;line-height:1.8;margin-top:16px}.template-toolbar button:focus-visible,.template-filters button:focus-visible,.workbook-tabs button:focus-visible,.template-toolbar a:focus-visible{outline:3px solid #6b98ca;outline-offset:3px}
@media(max-width:1024px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.template-grid{grid-template-columns:1fr}.template-card{min-height:260px;padding:26px}.template-toolbar{padding:14px;gap:8px}.template-toolbar button,.template-toolbar>a{font-size:13px;padding:10px 14px}.template-toolbar label{margin-left:0}.document-editor{height:75vh;min-height:480px}.pdf-controls{padding:14px;gap:10px}.pdf-controls label{flex-wrap:wrap}.pdf-page-wrap{padding:10px}.template-detail .resource-page-heading{padding-bottom:32px}}
@media(prefers-reduced-motion:reduce){.template-card{transition:none}.template-card:hover{transform:none}}
@media print{body.printing-template-sheet header,body.printing-template-sheet footer,body.printing-template-sheet .resource-page-heading,body.printing-template-sheet .template-toolbar,body.printing-template-sheet .template-instructions,body.printing-template-sheet .workbook-tabs,body.printing-template-sheet .sheet-formula-bar,body.printing-template-sheet .template-status,body.printing-template-sheet .skip{display:none!important}body.printing-template-sheet .sheet-scroll{max-height:none;overflow:visible}body.printing-template-sheet .container{width:100%;max-width:none}body.printing-template-sheet .template-sheet{font-size:9px;zoom:.7!important}body.printing-template-sheet .template-sheet td{outline:none}body.printing-template-sheet .template-sheet th{position:static}}
