.flow-submit{margin-top:1rem;min-height:52px}.motif-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:.6rem;max-height:310px;overflow:auto;padding:.3rem}.motif-choice{background:white;border:2px solid transparent;border-radius:14px;padding:5px;cursor:pointer;text-align:left;color:inherit;font:inherit}.motif-choice[aria-pressed=true]{border-color:var(--primary,#008cff)}.motif-choice img{width:100%;height:105px;object-fit:cover;border-radius:9px}.motif-choice span{display:block;font-size:.75rem}.flow-dialog{border:1px solid #e4e4f1;border-radius:24px;padding:1.5rem;width:min(92vw,480px);max-height:90dvh;overflow:auto;color:inherit;box-shadow:0 20px 70px #23233b33}.flow-dialog::backdrop{background:#18223380}.flow-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:1.25rem 0}.flow-actions .btn{min-height:48px}.flow-close{float:right;border:0;background:none;font-size:1.6rem;cursor:pointer}.flow-status{min-height:1.5em;margin:.75rem 0}.received-card{max-width:550px;margin:2rem auto;padding:0 1rem;text-align:center}.received-card h1{font-size:1.4rem;margin-bottom:1rem}.card-message,.card-signature{white-space:pre-wrap}.flow-email{margin-top:1rem}.flow-editor .card-preview{max-height:none}.flow-editor summary{cursor:pointer;padding:.75rem 0;font-weight:600}@media(max-width:700px){.flow-editor .editor-grid{display:flex;flex-direction:column}.flow-editor .flow-design{order:-1}.flow-editor .card-preview{max-height:none}.motif-picker{max-height:200px}.flow-dialog{padding:1.1rem}}

.flow-control-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}.flow-control-row .field{min-width:0}.flow-control-row input[type=color]{width:100%;height:44px;padding:5px}

.motif-choice{min-width:0;overflow-wrap:anywhere}.flow-actions{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:639px){.motif-picker{grid-template-columns:minmax(0,1fr)}.motif-choice{display:flex;align-items:center;gap:.75rem}.motif-choice img{width:72px;height:90px;flex-shrink:0}.flow-actions{grid-template-columns:minmax(0,1fr)}}
