/* Model setup is separate from everyday document entry. */
.template-steps{display:flex;gap:24px;list-style:none;padding:0;margin:28px 0}.template-steps li{display:flex;align-items:center;gap:10px;font-size:14px}.template-steps b{display:grid;place-items:center;background:#171717;color:#fff;width:30px;height:30px;border-radius:50%;flex-shrink:0}.template-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px;align-items:start}.template-layout>*,.template-layout section{min-width:0}.template-layout section{margin-bottom:22px}.templates .template-guide{margin-top:24px;line-height:1.75;border-top:1px solid #ddd;padding-top:18px}.templates summary{cursor:pointer;min-height:44px;display:list-item;font-weight:600}.templates code{background:#f0f0eb;padding:2px 5px;font-size:12px;overflow-wrap:anywhere}.templates .template-field-guide{display:flex;flex-wrap:wrap;gap:8px}.templates .template-field-guide button{padding:8px;font-size:12px;letter-spacing:0;min-height:44px}.templates .model-warning{border-left:3px solid #a9773f;padding:12px 16px;background:#f8f2e8;line-height:1.6;font-size:13px}.templates .saved-label{flex:1 1 160px}.templates .model-info{padding:18px 0;overflow-wrap:anywhere}.templates .model-values{margin-top:18px;max-height:330px;overflow:auto;border:1px solid #ddd;padding:12px}.templates .model-values dt{font-size:12px;color:#555;margin-top:12px}.templates .model-values dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.templates .template-pdf{position:relative;width:100%;margin:20px 0;background:#efefec;border:1px solid #ccc;touch-action:pan-y;cursor:crosshair}.templates .template-pdf canvas{display:block;width:100%;height:auto}.templates #pdfZones{position:absolute;inset:0;pointer-events:none}.templates .template-zone{position:absolute;border:1px solid #735a2c;background:rgba(192,163,100,.16);font:11px sans-serif;color:#422f08;overflow:hidden;box-sizing:border-box}.templates .template-zone span{background:#fff9e7;display:block;width:max-content;max-width:100%;overflow:hidden}.templates .placement-row{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #ddd;padding:10px 0;font-size:13px;overflow-wrap:anywhere}.templates .placement-row>span{min-width:0}.templates .model-backup{margin-top:22px}.templates .model-backup>label{margin-top:22px}.templates #generateModel{width:100%}.templates #valuesPreview:empty{display:none}.templates .actions a{display:inline-flex;align-items:center;justify-content:center}.templates .template-intro{border-left:3px solid #a68a52;padding-left:15px}.templates hr{border:0;border-top:1px solid #ddd;margin:25px 0}.templates input[type=file]{font-size:12px}.templates .model-summary{border:1px solid #ccc;padding:15px;line-height:1.8;margin-top:18px}
@media(max-width:900px){.template-layout{grid-template-columns:1fr}.template-steps{gap:12px;flex-wrap:wrap}.template-layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}}
@media(max-width:600px){.template-layout>aside{display:block}.template-steps li{font-size:12px}.template-steps{gap:10px}.template-steps b{width:25px;height:25px}.templates .metier-panel{padding:18px 12px}.templates .placement-row{align-items:flex-start}.templates .placement-row .btn{padding:10px}.templates .metier-main h1{font-size:34px}}
