.crop-editor{margin-bottom:24px;min-width:0}.crop-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.crop-heading h3{margin:0}.crop-sides{gap:3px}.crop-sides button{font-size:12px;min-height:34px;padding:6px 10px}.crop-sides button[aria-pressed=true],.crop-fit button[aria-pressed=true]{color:var(--accent);background:var(--tint);border-color:var(--accent)}
#cropCanvas{display:block;width:100%;height:auto;aspect-ratio:12/7;border-radius:18px;touch-action:none;cursor:grab}#cropCanvas:active{cursor:grabbing}#cropCanvas:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.crop-editor .crop-hint{display:block;font-size:12px;margin:10px 0;line-height:1.5}.crop-tools{border:0;padding:0;margin:14px 0 0;min-width:0}.crop-scale{display:flex;align-items:center;justify-content:space-between;font-size:12px}.crop-scale label{font-size:12px;margin:0}.crop-scale output{font-variant-numeric:tabular-nums;color:var(--muted)}#cropZoom{width:100%;height:32px;min-height:32px;padding:0;margin:3px 0 8px;border:0;background:transparent;accent-color:var(--accent);box-shadow:none;cursor:ew-resize}.crop-fit{display:flex;flex-wrap:wrap;gap:6px}.crop-fit button{font-size:12px;min-height:36px;padding:7px 10px}.crop-fit button:last-child{margin-left:auto;color:var(--muted)}
.editor-preview{position:static}.editor-preview .section-heading{margin-bottom:12px}.editor-preview .canvas-slot canvas{max-height:160px}.editor-preview .editor-motion{display:block;width:100%;max-width:270px;height:auto;margin:16px auto 0;border-radius:18px}.editor-motion[hidden]{display:none!important}.editor-preview .help{line-height:1.5}.design-thumb canvas{width:100%;height:auto;display:block;border-radius:12px}.design-card .inline-actions{flex-wrap:wrap}.design-card .inline-actions button{min-height:36px}.danger-text{color:var(--accent)}.danger-button{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.delete-title{font-size:18px;font-weight:600;margin-bottom:12px}.delete-dialog .inline-actions{justify-content:flex-end;margin-top:24px}.crop-editor fieldset:disabled{opacity:.5}
@media(max-width:720px){.crop-heading{gap:8px}.crop-heading h3{font-size:14px}.crop-sides button{font-size:11px;min-height:36px;padding:6px 9px}.crop-fit button{min-height:40px;font-size:11px;flex:1}.crop-fit button:last-child{margin-left:0}.editor-preview .crop-hint{display:block}.editor-preview .canvas-slot canvas{max-height:150px}.editor-dialog .modal-body{padding:15px}.editor-preview{padding:12px}.editor-dialog .editor-grid{gap:18px}.design-card .inline-actions button{min-height:40px}.crop-fit{gap:4px}}
@media(prefers-reduced-motion:reduce){.editor-motion{scroll-behavior:auto}}

.editor-proof-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.editor-proof-grid .canvas-slot+.canvas-slot{margin-top:0}.editor-proof-grid .canvas-slot canvas{max-height:none}.editor-proof-grid #editorEmpty{font-size:11px}.editor-proof-grid #editorEmpty span{font-size:10px}@media(max-width:720px){.editor-proof-grid{grid-template-columns:1fr}.editor-proof-grid .canvas-slot canvas{max-height:150px}}

.artifact-dialog{width:min(480px,calc(100vw - 24px))}.artifact-preview{text-align:center}.artifact-preview img{display:block;width:auto;max-width:100%;height:auto;max-height:55dvh;margin:0 auto 18px;border-radius:18px}.artifact-preview .help{margin-top:12px}
/* Certificate files and optional greeting fields use the existing palette. */
.file-actions{display:inline-flex;gap:6px;align-items:center;max-width:100%}
.file-actions .icon-button{flex:none;min-width:42px;min-height:42px}
.view-actions>.file-actions{flex:1 1 220px}
.view-actions>[data-action="sync"]{flex:1 1 100%}
.greeting-editor{border-top:1px solid var(--line);padding-top:14px}
.greeting-editor summary{cursor:pointer;font-weight:600;padding:8px 0}
.greeting-fields{display:grid;gap:16px;margin-top:14px}
.greeting-field{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px;align-items:end}
.greeting-field textarea{resize:vertical;min-height:76px;width:100%;line-height:1.45}
.greeting-field .field{min-width:0;margin:0}
.greeting-field select{width:100%}
.greeting-field label{font-size:12px}
.report-total{font-weight:600;padding:16px 0;border-bottom:1px solid var(--line)}
.artifact-preview .inline-actions{justify-content:center;flex-wrap:wrap}
@media(max-width:560px){.greeting-field{grid-template-columns:minmax(0,1fr)}.greeting-field select{width:auto;min-width:140px}.file-actions{flex:1}.file-actions>button:first-child{flex:1}.view-actions{flex-wrap:wrap}.report-total{line-height:1.6}}
