.certificate-entry{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:16px;border:1px solid #cddcf9;border-radius:13px;background:#f3f7ff;margin:0 0 20px}.certificate-entry strong{font-size:16px}.certificate-entry p,.certificate-note{font-size:13px;color:var(--muted);line-height:1.7;margin-top:5px}.certificate-entry>button{flex:none}.certificate-panel{border:1px solid #dce5f4;border-radius:14px;padding:17px;margin-bottom:20px;min-width:0}.certificate-note{margin:0 0 15px}.certificate-pickers,.certificate-image-actions,.certificate-progress{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:14px 0}.certificate-pickers label{cursor:pointer}.certificate-pickers>span{font-size:12px;color:var(--muted);flex-basis:100%}.certificate-image{display:flex;justify-content:center;background:#e8edf5;border-radius:10px;padding:10px;max-height:360px;overflow:hidden}.certificate-image canvas{display:block;max-width:100%;max-height:340px;width:auto;height:auto;object-fit:contain}.certificate-image-actions>button{flex:1;min-width:100px;padding:10px;font-size:13px}.certificate-progress progress{flex:1;min-width:100px;accent-color:var(--blue)}.certificate-status{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.certificate-status.error{color:var(--red)}.certificate-review{border-top:1px solid var(--line);margin-top:17px;padding-top:17px}.certificate-review h3{font-size:17px;margin-bottom:8px}.certificate-warnings{padding:12px 12px 12px 30px;background:#fff7e8;border-radius:10px;color:#92591c;font-size:13px;line-height:1.7}.certificate-fields,.certificate-private-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0}.certificate-field{min-width:0}.certificate-field>span{display:block;font-size:13px;color:#596d8c;margin-bottom:6px}.certificate-field input{font-size:14px;min-width:0}.certificate-field:has([data-certificate-field=address]),.certificate-field:has([data-certificate-field=unitNumber]),.certificate-field:has([data-certificate-field=certificateNumber]){grid-column:1/-1}.certificate-private,.certificate-raw{border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0}.certificate-private summary,.certificate-raw summary{cursor:pointer;font-size:13px;color:#5c6f8e}.certificate-raw label{font-size:12px;color:var(--muted);margin:12px 0 6px}.certificate-raw textarea{font-size:13px;min-height:150px;margin-bottom:10px}.certificate-check{display:flex;align-items:flex-start;gap:10px;margin:15px 0;font-size:13px;line-height:1.7}.certificate-check input{flex:none;margin:2px 0 0}.certificate-tax-hint{margin-bottom:15px}.certificate-review>[data-certificate-action=apply]{width:100%}.certificate-close{margin-top:13px;padding-left:0}.certificate-applied{background:#eef8f4;border:1px solid #cfe9dc;border-radius:11px;padding:13px;margin:0 0 20px;color:#28614c;font-size:13px;line-height:1.7}@media(max-width:540px){.certificate-entry{align-items:flex-start;flex-wrap:wrap;padding:14px}.certificate-entry>button{width:100%}.certificate-panel{padding:13px}.certificate-fields,.certificate-private-fields{grid-template-columns:1fr}.certificate-field{grid-column:1/-1}.certificate-pickers>label{flex:1}.certificate-image-actions>button{min-width:85px}.certificate-progress>button{padding:10px 12px}.certificate-image{max-height:280px}.certificate-image canvas{max-height:260px}}
.certificate-status.review-needed{padding:12px;border:1px solid #efd5a4;border-radius:10px;background:#fff7e8;color:#86511c}.certificate-raw[open]>summary{margin-bottom:8px}
.certificate-canvas-wrap{position:relative;display:block;width:100%;max-width:calc(340px * var(--certificate-ratio));line-height:0;flex:none}.certificate-crop-overlay{position:absolute;inset:0;overflow:visible;touch-action:none;user-select:none;-webkit-user-select:none}.certificate-crop-box{position:absolute;border:2px solid #fff;outline:1px solid #2464dc;box-shadow:0 0 0 1200px #12254180;cursor:move;touch-action:none;min-width:1px;min-height:1px}.certificate-crop-handle{position:absolute;width:36px;height:36px;min-width:0;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;touch-action:none;transform:translate(-50%,-50%);box-shadow:none!important}.certificate-crop-handle:after{content:"";position:absolute;width:12px;height:12px;left:12px;top:12px;border:2px solid #fff;background:#2464dc;border-radius:3px;box-shadow:0 0 0 1px #2464dc}.certificate-crop-handle:focus-visible{outline:3px solid #ffb638!important;outline-offset:-3px}.crop-nw{left:0;top:0;cursor:nwse-resize}.crop-n{left:50%;top:0;cursor:ns-resize}.crop-ne{left:100%;top:0;cursor:nesw-resize}.crop-e{left:100%;top:50%;cursor:ew-resize}.crop-se{left:100%;top:100%;cursor:nwse-resize}.crop-s{left:50%;top:100%;cursor:ns-resize}.crop-sw{left:0;top:100%;cursor:nesw-resize}.crop-w{left:0;top:50%;cursor:ew-resize}.certificate-crop-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.certificate-crop-actions>p{flex-basis:100%;font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 4px}.certificate-crop-actions>button{flex:1;min-width:85px;font-size:13px;padding:10px}

.certificate-image{align-items:flex-start}.certificate-image canvas{width:100%;height:auto;max-width:none;max-height:none}.certificate-image.crop-editing{padding:18px;max-height:376px}@media(max-width:540px){.certificate-canvas-wrap{max-width:calc(260px * var(--certificate-ratio))}.certificate-image.crop-editing{max-height:296px}}
.certificate-unit-choice,.certificate-address-choice{padding:12px;border:1px solid #efd5a4;border-radius:10px;background:#fff7e8;color:#86511c}.certificate-unit-choice strong,.certificate-address-choice strong{font-weight:700}
