#piTemplatePicker{padding:18px;margin-bottom:24px;border:1px solid var(--input-border,#ddd);border-radius:12px;background:var(--card-bg,#fafafa);color:var(--text-primary,#282828)}
.pi-template-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.pi-template-heading h3{margin:0;font-size:15px}.pi-template-heading span,.pi-template-meta{font-size:11px;color:#757575}#piTemplatePicker strong{font-size:13px}#piTemplatePicker p{font-size:12px;line-height:1.7;color:var(--text-secondary,#666);margin:6px 0 14px}
.pi-template-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 16px}.pi-template-strip button{padding:0;border:0;background:none;border-radius:5px;overflow:hidden;cursor:pointer}.pi-template-strip img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}.pi-template-primary,.pi-template-apply{border:1px solid #272927;border-radius:7px;background:#272927;color:#fff;padding:11px 16px;font-size:13px;font-weight:600;cursor:pointer;min-height:44px}#piTemplatePicker .pi-template-primary{width:100%}.pi-template-clear,.pi-template-close,.pi-template-back{border:1px solid #d5d5d0;background:#fff;color:#353535;border-radius:6px;cursor:pointer;min-height:40px;padding:8px 14px}.pi-template-clear{margin-top:8px;width:100%;background:transparent;color:inherit}#piTemplatePicker .pi-template-status{margin:10px 0 0}.pi-template-status:empty{display:none}
.pi-template-dialog{margin:auto;box-sizing:border-box;width:min(1120px,calc(100vw - 32px));max-width:none;max-height:90vh;max-height:90dvh;padding:0;border:1px solid #deded9;border-radius:12px;background:#f7f7f4;color:#282a29;overflow:auto}.pi-template-dialog::backdrop{background:rgba(0,0,0,.52)}.pi-template-dialog *{box-sizing:border-box}.pi-template-dialog-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f7f7f4;border-bottom:1px solid #deded9;padding:24px 28px}.pi-template-dialog-header h2{font-size:23px;font-weight:650;margin:0 0 8px;letter-spacing:-.5px}.pi-template-dialog-header p{margin:0;font-size:12px;line-height:1.7;color:#686b67}.pi-template-close{flex-shrink:0}.pi-template-content{padding:22px 28px 28px}.pi-template-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.pi-template-filters button{min-height:36px;padding:8px 14px;border:1px solid #deded9;border-radius:18px;background:transparent;color:#555;cursor:pointer;font-size:12px}.pi-template-filters button[aria-pressed=true]{background:#272927;color:white;border-color:#272927}.pi-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px}.pi-template-card{min-width:0}.pi-template-preview{display:block;border:0;background:#e7e7e2;border-radius:5px;padding:0;width:100%;cursor:zoom-in;overflow:hidden}.pi-template-preview img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}.pi-template-card-meta{display:flex;justify-content:space-between;color:#72756e;font-size:10px;margin:12px 0 6px}.pi-template-card h3{font-size:16px;line-height:1.3;margin:0}.pi-template-card p{font-size:12px;line-height:1.7;color:#686b67;min-height:41px;margin:8px 0 12px}.pi-template-apply{width:100%;background:transparent;color:#353a33;border-color:#c9ccc5;font-size:12px}.pi-template-apply:hover{background:#272927;color:#fff}.pi-template-note{font-size:12px;line-height:1.8;color:#777c74;margin-top:24px}.pi-template-back{margin-bottom:18px}.pi-template-detail{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:start}.pi-template-detail>img{width:100%;height:auto;border:1px solid #deded9;border-radius:5px}.pi-template-detail-info{padding:20px 0}.pi-template-detail-info h3{font-size:32px;margin:12px 0 16px}.pi-template-detail-info h4{font-size:14px;margin:28px 0 10px}.pi-template-detail-info p,.pi-template-detail-info li{font-size:13px;line-height:1.9}.pi-template-detail-info ol{padding-left:20px}.pi-template-detail-info li{padding:6px 0}.pi-template-detail-info .pi-template-primary{width:100%;margin-top:16px}.pi-template-dialog button:focus-visible,#piTemplatePicker button:focus-visible{outline:3px solid #82958b;outline-offset:3px}
@media(max-width:900px){.pi-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pi-template-detail{gap:24px}}
@media(max-width:600px){.pi-template-dialog{width:calc(100vw - 16px);max-height:94dvh;border-radius:10px}.pi-template-dialog-header{padding:18px 16px;align-items:flex-start;gap:10px}.pi-template-dialog-header h2{font-size:19px}.pi-template-dialog-header p{font-size:11px}.pi-template-content{padding:16px}.pi-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.pi-template-card h3{font-size:15px}.pi-template-card p{font-size:11px;min-height:38px}.pi-template-detail{grid-template-columns:1fr;gap:8px}.pi-template-detail-info{padding-top:12px}.pi-template-detail-info h3{font-size:26px}.pi-template-filters{gap:6px}.pi-template-filters button{padding:7px 11px}}
